| Issue |
52957
|
| Summary |
Building clang/stage2 with compiler-rt with coverage flags fails with `Please use architecture with 4 or 8 byte pointers.`
|
| Labels |
coverage
|
| Assignees |
|
| Reporter |
sylvestre
|
On a linux amd64.
with:
```
cmake -S llvm/ -B build -DLLVM_ENABLE_PROJECTS="clang" \
-DLLVM_ENABLE_RUNTIMES="compiler-rt" \
-DCMAKE_CXX_FLAGS=" -coverage" \
-DCMAKE_SHARED_LINKER_FLAGS=" -coverage -lgcov" \
-DCMAKE_MODULE_LINKER_FLAGS=" -coverage -lgcov" \
-DCMAKE_EXE_LINKER_FLAGS=" -coverage -lgcov" \
-DCLANG_ENABLE_BOOTSTRAP=On
cmake --build build -j $(nproc) --target stage2
```
```
-- Performing Test COMPILER_RT_HAS_VERSION_SCRIPT - Failed
CMake Error at /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-project/compiler-rt/cmake/config-ix.cmake:207 (message):
Please use architecture with 4 or 8 byte pointers.
Call Stack (most recent call first):
```
The error in the log is a bit cryptic:
`Error opening link script "CMakeFiles/cmTC_775bd.dir/link.txt"`
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs