Issue |
148363
|
Summary |
Build fails with Ninja Multi-Config generator
|
Labels |
new issue
|
Assignees |
|
Reporter |
RougherO
|
Trying to build [llvm 20.1.8](https://github.com/llvm/llvm-project/releases/tag/llvmorg-20.1.8) using `Ninja Multi-Config` as generator fails with error:
```sh
FAILED: Debug/lib/Debug/libbenchmark_main.so.0.0.0
: && /usr/bin/clang++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Wextra -Wshadow -Wfloat-equal -Wold-style-cast -Wsuggest-override -pedantic -pedantic-errors -Wshorten-64-to-32 -fstrict-aliasing -Wno-deprecated-declarations -fno-exceptions -Wstrict-aliasing -Wthread-safety -g -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics -Xlinker --dependency-file=third-party/benchmark/src/CMakeFiles/benchmark_main.dir/Debug/link.d -shared -Wl,-soname,libbenchmark_main.so.0 -o "\${CONFIGURATION}/lib/Debug/libbenchmark_main.so.0.0.0" third-party/benchmark/src/CMakeFiles/benchmark_main.dir/Debug/benchmark_main.cc.o -Wl,-rpath,"/home/roughero/Programming/Cpp/llvm-tutorial/LLVM/llvm/build_temp/\${CONFIGURATION}/lib/Debug" "Debug/lib/Debug/libbenchmark.so.0.0.0" && :
clang++: error: no such file or directory: 'Debug/lib/Debug/libbenchmark.so.0.0.0'
```
Build command:
```sh
$ cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ -DLLVM_BUILD_TESTS=ON \
-DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_OPTIMIZED_TABLEGEN=ON \
-DLLVM_ENABLE_PROJECTS=clang -DLLVM_USE_LINKER=lld \
-DLLVM_USE_SPLIT_DWARF=ON -G "Ninja Multi-Config" \
-B build_temp
```
I have a preinstalled clang from pacman:
```sh
clang version 20.1.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs