Issue 181598
Summary CMake Error in runtimes build when specifying -DLLVM_LIBDIR_SUFFIX=64
Labels new issue
Assignees
Reporter makatsuka
    ```
LLVM version: 22.1.0-rc1
```
Description:
When building LLVM 22.1.0-rc1 with -DLLVM_LIBDIR_SUFFIX=64, the runtimes build (compiler-rt) fails with a CMake Error.
Error message:
```
CMake Error at <...>/compiler-rt/test/builtins/CMakeLists.txt:110 (file):
file failed to open for reading (No such file or directory):
<...>/build/./lib64/../lib64/clang/22/lib/aarch64-unknown-linux-gnu/clang_rt.builtins.sources.txt
```
However, the actual file exists here:
```
<...>/build/lib/clang/22/lib/aarch64-unknown-linux-gnu/clang_rt.builtins.sources.txt
```
Our investigation found that reverting PR #159758 successfully avoided this issue.
CMake options used:
```
-DLLVM_LIBDIR_SUFFIX=64 \
-DLLVM_TARGETS_TO_BUILD="AArch64" \
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;mlir;polly;flang" \
-DLLVM_ENABLE_RUNTIMES="libunwind;libcxxabi;libcxx;compiler-rt;openmp;flang-rt" \
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to