Closed nevinpuri closed 11 months ago
If there is no /usr/local/opt/llvm/bin/clang Try make symbol link /usr/local/opt/llvm to /opt/homebrew/opt/llvm
version 1.0.2 doesn't have an arm64 build
We have an aarch64 build and you can use our docker builde to generate custom builds locally.
I managed to get the build to work by modifying the build.sh
file. However, it wouldn't install. I'll just use v1.0.0 and patch the python file.
diff --git a/chdb/build.sh b/chdb/build.sh
index 3af2a5c4c0c..ddfbadfb8df 100755
--- a/chdb/build.sh
+++ b/chdb/build.sh
@@ -12,9 +12,9 @@ HDFS="-DENABLE_HDFS=1 -DENABLE_GSASL_LIBRARY=1 -DENABLE_KRB5=1"
MYSQL="-DENABLE_MYSQL=1"
# check current os type
if [ "$(uname)" == "Darwin" ]; then
- export CXX=/usr/local/opt/llvm/bin/clang++
- export CC=/usr/local/opt/llvm/bin/clang
- export PATH=/usr/local/opt/llvm/bin:$PATH
+ export CC=/opt/homebrew/opt/llvm/bin/clang
+ export CXX=/opt/homebrew/opt/llvm/bin/clang++
+ export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
GLIBC_COMPATIBILITY="-DGLIBC_COMPATIBILITY=0"
I've been trying to build chdb on my mac to use as a python library (as your version 1.0.2 doesn't have an arm64b build), but I've been having trouble building it. I've installed clang via homebrew, but I'm getting an error
Could not find compiler set in environment variable CC.
I'm not sure why it's looking for clang in/usr/local/opt/llvm/bin/clang
, as I explicitly setCC=/opt/homebrew/opt/llvm/bin/clang
andCXX=/opt/homebrew/opt/llvm/bin/clang
.If anyone has any ideas, any help is appreciated.
Operating system
MacOS Sonoma 14.0
Cmake version
3.27.7
Ninja version
1.11.1
Compiler name and version
Homebrew clang version 17.0.6 Target: arm64-apple-darwin23.0.0 Thread model: posix InstalledDir: /opt/homebrew/opt/llvm/bin
Full cmake and/or ninja output