| Issue |
52925
|
| Summary |
clang-14 always_inline topic
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
ErichLoew
|
Compiler
root:/home/SETUP/clang/LATEST/LLVMBUILD> clang --version
clang version 14.0.0 (https://github.com/llvm/llvm-project.git 6d702a1e6a069e22e4b7f679a408e95bcc7db66c)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Topic: compiler-rt not building
Module: compiler-rt/lib/scudo/CMakeFiles/clang_rt.scudo_minimal-dynamic-x86_64.dir/scudo_crc32.cpp
Compiler messages:
[ 71%] Building CXX object compiler-rt/lib/scudo/CMakeFiles/clang_rt.scudo_minimal-dynamic-x86_64.dir/scudo_crc32.cpp.o
/home/SETUP/clang/LATEST/llvm/compiler-rt/lib/scudo/scudo_crc32.cpp:20:10: error: always_inline function '_mm_crc32_u64' requires target feature 'crc32', but would be inlined without support for 'crc32'
return CRC32_INTRINSIC(Crc, Data);
^
/home/SETUP/clang/LATEST/llvm/compiler-rt/lib/scudo/scudo_crc32.h:27:27: note: expanded from macro 'CRC32_INTRINSIC'
# define CRC32_INTRINSIC FIRST_32_SECOND_64(_mm_crc32_u32, _mm_crc32_u64)
^
/home/SETUP/clang/LATEST/llvm/compiler-rt/lib/scudo/../sanitizer_common/sanitizer_platform.h:130:36: note: expanded from macro 'FIRST_32_SECOND_64'
# define FIRST_32_SECOND_64(a, b) (b)
^
1 error generated.
make[5]: *** [compiler-rt/lib/scudo/CMakeFiles/clang_rt.scudo_minimal-dynamic-x86_64.dir/build.make:93: compiler-rt/lib/scudo/CMakeFiles/clang_rt.scudo_minimal-dynamic-x86_64.d
make[4]: *** [CMakeFiles/Makefile2:9157: compiler-rt/lib/scudo/CMakeFiles/clang_rt.scudo_minimal-dynamic-x86_64.dir/all] Error 2
make[3]: *** [Makefile:147: all] Error 2
make[2]: *** [runtimes/CMakeFiles/runtimes.dir/build.make:130: runtimes/runtimes-stamps/runtimes-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:236233: runtimes/CMakeFiles/runtimes.dir/all] Error 2
make: *** [Makefile:169: all] Error 2
Compiler clang-14 builds without "compiler-rt"
I attached my config file, maybe it is the root cause
[build-llvm-configure.llvm.txt](https://github.com/llvm/llvm-project/files/7792686/build-llvm-configure.llvm.txt)
.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs