Issue 173223
Summary clang-21.1.0.tar.xz PACKAGE INCOMPLETE -> Does not build
Labels new issue
Assignees
Reporter dettus
    

So, I tried
```


wget -c https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.0/clang-21.1.0.src.tar.xz
xz -d clang-21.1.0.src.tar.xz
tar xvf clang-21.1.0.src.tar
cd clang-21.1.0.src/
mkdir build
cd build
cmake ../


```

And the result was

```

CMake Error at CMakeLists.txt:7 (include):
  include could not find requested file:

 ~/tmp/clang-21.1.0.src/../cmake/Modules/CMakePolicy.cmake


-- The C compiler identification is Clang 19.1.7
-- The CXX compiler identification is Clang 19.1.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:26 (include):
  include could not find requested file:

 GetDarwinLinkerVersion


CMake Error at CMakeLists.txt:40 (find_package):
  Could not find a package configuration file provided by "LLVM" with any of
  the following names:

    LLVMConfig.cmake
 llvm-config.cmake

  Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
  "LLVM_DIR" to a directory containing one of the above files.  If "LLVM"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!

```

So, first error I spotted was that the directory ../cmake/Modules is wrong. It should be ../cmake/modules 
Second: Why does it insist on DARWIN? My OS is OpenBSD 7.8.
Third: If the clang cannot be build on its own... Why does the pacakge exist?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to