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

大城市里の小女人 提交于 2020-07-26 15:26:47
-- 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!