-- The C compiler identification is Clang 8.0.1
-- The CXX compiler identification is Clang 8.0.1
-- Check for working C compiler: /usr/bin/clang-8
-- Check for working C compiler: /usr/bin/clang-8 -- broken
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/usr/bin/clang-8"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /root/ClickHouse/build-arm64/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/ninja" "cmTC_3f054"
[1/2] Building C object CMakeFiles/cmTC_3f054.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_3f054
FAILED: cmTC_3f054
: && /usr/bin/clang-8 --target=aarch64-linux-gnu --sysroot=/root/ClickHouse/cmake/linux/../toolchain/linux-aarch64/aarch64-linux-gnu/libc --gcc-toolchain=/root/ClickHouse/cmake/linux/../toolchain/linux-aarch64 -fuse-ld=lld -rdynamic CMakeFiles/cmTC_3f054.dir/testCCompiler.c.o -o cmTC_3f054 && :
clang: error: invalid linker name in argument '-fuse-ld=lld'
ninja: build stopped: subcommand failed.
处理方式,安装lld-8
sudo apt-get install lld-8
来源:oschina
链接:https://my.oschina.net/u/1263909/blog/4313720