[ad_1]
I’m attempting to construct the Apache Doris observe the doc https://doris.apache.org/docs/set up/source-install/compilation-mac/ in macOS 13.3.1 terminal like this(I’ve already tried to reopen the terminal to make the clang env work):
./construct.sh
the a part of log exhibits error like this:
Compiling as RELEASE
-- previous Boost_INCLUDE_DIR : /Customers/xiaoqiangjiang/supply/third-party/doris/thirdparty/put in/embody
-- Discovered Enhance: /Customers/xiaoqiangjiang/supply/third-party/doris/thirdparty/put in/lib64/cmake/Enhance-1.81.0/BoostConfig.cmake (discovered model "1.81.0")
Enhance discovered
-- Boost_INCLUDE_DIR : /Customers/xiaoqiangjiang/supply/third-party/doris/thirdparty/put in/embody
-- On the lookout for MapViewOfFile
-- On the lookout for MapViewOfFile(0,0,0,0,0) - not discovered
-- On the lookout for _close
-- On the lookout for _close((int)0) - not discovered
-- On the lookout for _read
-- On the lookout for _read((int)0, (void*)0, (unsigned int)0) - not discovered
-- On the lookout for _open
-- On the lookout for _open(0,0,0) - not discovered
-- On the lookout for _write
-- On the lookout for _write((int)0, (const void*)0, (unsigned int)0) - not discovered
-- On the lookout for _unlink
-- On the lookout for _unlink((const char*)0) - not discovered
-- On the lookout for _ftime
-- On the lookout for _ftime(0) - not discovered
-- On the lookout for _mkdir
-- On the lookout for _mkdir((const char*)0) - not discovered
-- Checking help new float byte<->float conversions
-- Checking help new float byte<->float conversions - sure
CMake Error at CMakeLists.txt:268 (message):
Want Clang model at the very least 16
I’ve put in the brand new model of clang with homebrew, that is the brand new clang:
> clang --version
Homebrew clang model 18.1.7
Goal: arm64-apple-darwin22.4.0
Thread mannequin: posix
InstalledDir: /choose/homebrew/choose/llvm/bin
however the /usr/bin/clang
nonetheless use the legacy model:
> /usr/bin/clang --version
Apple clang model 14.0.3 (clang-1403.0.22.14.1)
Goal: arm64-apple-darwin22.4.0
Thread mannequin: posix
InstalledDir: /Purposes/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
now I wish to change the clang to specify to the brand new model of clang like this:
> sudo ln -sf /choose/homebrew/choose/llvm/bin/clang /usr/bin/clang
ln: /usr/bin/clang: Operation not permitted
Am I lacking one thing? is it attainable to interchange the system clang in macOS 13.3.1? That is the trail in .zshrc:
export PATH="/choose/homebrew/choose/llvm/bin:$PATH"
that is the which clang present:
➜ doris git:(release-2.0.3) ✗ which clang
/choose/homebrew/choose/llvm/bin/clang
that is the brew clang model:
➜ doris git:(release-2.0.3) ✗ /choose/homebrew/choose/llvm/bin/clang --version
Homebrew clang model 18.1.7
Goal: arm64-apple-darwin22.4.0
Thread mannequin: posix
InstalledDir: /choose/homebrew/choose/llvm/bin
[ad_2]