| Issue |
185438
|
| Summary |
CMAKE_PREFIX_PATH not properly propogated to runtime
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
smuzaffar
|
While building llvm 21.1.4 , I noticed following warnings
```
[6387/6391] cd <build-dir>/runtimes/runtimes-bins && <dir>/cmake/3.31.7-62f307011423a7f6b44229944c8e4c9c/bin/cmake --no-warn-unused-cli -DCMAKE_C_COMPILER=<build-dir>/./bin/clang -DCMAKE_CXX_COMPILER=<build-dir>/./bin/clang++ -DCMAKE_ASM_COMPILER=<build-dir>/./bin/clang -DCMAKE_LINKER=<build-dir>/./bin/ld.lld -DCMAKE_AR=<build-dir>/./bin/llvm-ar -DCMAKE_RANLIB=<build-dir>/./bin/llvm-ranlib -DCMAKE_NM=<build-dir>/./bin/llvm-nm -DCMAKE_OBJDUMP=<build-dir>/./bin/llvm-objdump -DCMAKE_OBJCOPY=<build-dir>/./bin/llvm-objcopy -DCMAKE_STRIP=<build-dir>/./bin/llvm-strip -DCMAKE_READELF=<build-dir>/./bin/llvm-readelf -DCMAKE_C_COMPILER_TARGET=x86_64-redhat-linux-gnu -DCMAKE_CXX_COMPILER_TARGET=x86_64-redhat-linux-gnu -DCMAKE_Fortran_COMPILER_TARGET=x86_64-redhat-linux-gnu -DCMAKE_ASM_COMPILER_TARGET=x86_64-redhat-linux-gnu -DCMAKE_INSTALL_PREFIX=<install-dir> -DLLVM_BINARY_DIR=<build-dir> -DLLVM_CONFIG_PATH=<build-dir>/bin/llvm-config -DLLVM_ENABLE_WERROR=OFF -DLLVM_HOST_TRIPLE=x86_64-redhat-linux-gnu -DLLVM_HAVE_LINK_VERSION_SCRIPT=1 -DLLVM_USE_RELATIVE_PATHS_IN_DEBUG_INFO=OFF -DLLVM_USE_RELATIVE_PATHS_IN_FILES=OFF -DLLVM_LIT_ARGS=-sv -DLLVM_SOURCE_PREFIX= -DPACKAGE_VERSION=21.1.4 -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=<dir>/ninja/1.11.1-f55f9cac3b60a3f7ef65d610d7e6c02c/bin/ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCOMPILER_RT_BUILD_BUILTINS=Off -DLLVM_INCLUDE_TESTS=ON -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-redhat-linux-gnu -DLLVM_ENABLE_PROJECTS_USED=ON -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON -DLLVM_BUILD_TOOLS=ON -DCMAKE_C_COMPILER_WORKS=ON -DCMAKE_CXX_COMPILER_WORKS=ON -DCMAKE_Fortran_COMPILER_WORKS=ON -DCMAKE_ASM_COMPILER_WORKS=ON -DHAVE_LLVM_LIT=ON -DCLANG_RESOURCE_DIR= -DCMAKE_PREFIX_PATH=<dir>/zlib/1.2.13-589f6bb51bbeba38a7adf5a10ea8a093 <dir>/libxml2/2.9.10-028886c4bfbe27f656c04f0d4ecc9d4c <dir>/zstd/1.5.7-06370988946837b634b6dbd71385514f <dir>/libunwind/1.8.1-master-f32df36d9538c7aa97e7979da5c3b30a "-DLLVM_ENABLE_RUNTIMES=libcxx;libcxxabi;libunwind" -DFFI_INCLUDE_DIR= -DFFI_LIBRARY_DIR= -GNinja -C<build-dir>/projects/runtimes/tmp/runtimes-cache-Release.cmake -S <llvm-src>/llvm/runtimes/../../runtimes -B <build-dir>/runtimes/runtimes-bins && <dir>/cmake/3.31.7-62f307011423a7f6b44229944c8e4c9c/bin/cmake -E touch <build-dir>/runtimes/runtimes-stamps/runtimes-configure
CMake Warning:
Ignoring extra path from command line:
"<dir>/libxml2/2.9.10-028886c4bfbe27f656c04f0d4ecc9d4c"
Not searching for unused variables given on the command line.
CMake Warning:
Ignoring extra path from command line:
"<dir>/libunwind/1.8.1-master-f32df36d9538c7aa97e7979da5c3b30a"
```
Looks like `CMAKE_PREFIX_PATH` was passed with spaces instead of `;`. I have checked the ninja build file too and it also contains
```
-DCMAKE_PREFIX_PATH=/build/muz/iwyu/inst/w/el8_amd64_gcc13/external/zlib/1.2.13-589f6bb51bbeba38a7adf5a10ea8a093 /build/muz/iwyu/inst/w/el8_amd64_gcc13/external/libxml2/2.9.10-028886c4bfbe27f656c04f0d4ecc9d4c /build/muz/iwyu/inst/w/el8_amd64_gcc13/external/zstd/1.5.7-06370988946837b634b6dbd71385514f /build/muz/iwyu/inst/w/el8_amd64_gcc13/external/libunwind/1.8.1-master-f32df36d9538c7aa97e7979da5c3b30a
```
Is there any fix for this?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs