click-house 在 macOS 上安装/构建失败

问题描述

我正在尝试按照以下链接中提供的步骤在我的 macOS (Mojave 10.14.6) 上构建 ClickHouse:https://clickhouse.tech/docs/en/development/build-osx/

当我进入“构建”步骤并调用命令时:cmake .. -DCMAKE_C_COMPILER=brew --prefix llvm/bin/clang -DCMAKE_CXX_COMPILER=brew --prefix llvm/bin/clang++ -DCMAKE_PREFIX_PATH =brew --prefix llvm 我得到以下输出

-- The C compiler identification is Clang 11.1.0

-- The CXX compiler identification is Clang 11.1.0

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - Failed

-- Check for working C compiler: /usr/local/opt/llvm/bin/clang

-- Check for working C compiler: /usr/local/opt/llvm/bin/clang - broken

CMake Error at /usr/local/Cellar/cmake/3.19.6/share/cmake/Modules/CMakeTestCCompiler.cmake:66 (message):
 
The C compiler "/usr/local/opt/llvm/bin/clang" is not able to compile a simple test program.
It fails with the following output: Change Dir: /Users/admin_1/ClickHouse/build/CMakeFiles/CMakeTmp
    
Run Build Command(s):/usr/local/bin/ninja cmTC_c97ee && [1/2] Building C object CMakeFiles/cmTC_c97ee.dir/testCCompiler.c.o

[2/2] Linking C executable cmTC_c97ee

Failed: cmTC_c97ee 
: && /usr/local/opt/llvm/bin/clang -isysroot /Library/Developer/CommandLinetools/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/cmTC_c97ee.dir/testCCompiler.c.o -o cmTC_c97ee   && :
ld: unkNown option: -platform_version
clang-11: error: linker command Failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand Failed.
    
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:29 (project)

-- Configuring incomplete,errors occurred!

See also "/Users/admin_1/ClickHouse/build/CMakeFiles/CMakeOutput.log".

See also "/Users/admin_1/ClickHouse/build/CMakeFiles/CMakeError.log".

知道如何解决这个问题吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)