clickhouse交叉编译(编译机器x86,目标平台ARM64),clang: error: invalid linker name in argument '-fuse-ld=lld'

原创
06/16 19:38
阅读数 1.1K
-- 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

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部