Unable to build arrow on mac

I have updated XCode and since then I am not able to build arrow. I get the following error:

2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0: -- Could NOT find LLVM (missing: LLVM_DIR)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0: -- Could NOT find LLVM (missing: LLVM_DIR)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0: -- Could NOT find LLVM (missing: LLVM_DIR)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0: -- Could NOT find LLVM (missing: LLVM_DIR)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0: -- Could NOT find LLVM (missing: LLVM_DIR)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0: -- Could NOT find LLVM (missing: LLVM_DIR)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0: -- Could NOT find LLVM (missing: LLVM_DIR)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0: -- Could NOT find LLVM (missing: LLVM_DIR)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0: -- Could NOT find LLVM (missing: LLVM_DIR)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0: CMake Error at /usr/local/Cellar/cmake/3.23.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0:   Could NOT find LLVMAlt (missing: LLVM_PACKAGE_VERSION LLVM_FOUND
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0:   LLVM_LINK_EXECUTABLE)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0: Call Stack (most recent call first):
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0:   /usr/local/Cellar/cmake/3.23.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0:   cmake_modules/FindLLVMAlt.cmake:83 (find_package_handle_standard_args)
2022-06-27@17:23:06:DEBUG:QualityControl:arrow:0:   src/gandiva/CMakeLists.txt:28 (find_package)

I don’t have llvm installed with brew.
This is the command I use: aliBuild build QualityControl --defaults o2-dataflow --debug

I am now trying with the defaults o2 but I doubt that it will help.

For the record, I have the same llvm from hombrew and it work for me. Did you update to the latest version of the homebrew package?

Do I need llvm from homebrew ? it is not part of the dependencies pulled by o2-full-deps.

I have updated all packages from homebrew after the xcode update.

EDIT: it is the same with the o2 defaults

ok, fixed I guess.

I readded llvm@13 and made sure to have it in the path (which I did not do before) and now it compiles arrow.

I don’t understand why we need llvm from brew if we have the one from the system.

I think at some point the one coming from the system was not working correctly. We should recheck if that is still the case.

yes or alternatively llvm should be added to o2-full-deps.

Dear people,
I ran into the same issue again today, and I seemed to have solved it by running
brew install llvm@14
and then I added it to my path with
echo 'export PATH="/usr/local/opt/llvm@14/bin:$PATH"' >> ~/.zshrc

EDIT: I actually had to remove the line from my zshrc because it then caused an issue when building ROOT.
Hope it helps,
Sarah

1 Like