EOS build failed on macOS High Sierra 10.13.2
CMake Error at libraries/wasm-jit/Source/Runtime/CMakeLists.txt:26 (find_package): Could not find a configuration file for package "LLVM" that is compatible with requested version "4.0".
» uname -an Darwin liujd 17.3.0 Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64 x86_64 i386 MacBookPro10,1 Darwin
Should we installed llvm manually?
It was fixed by:
$brew install llvm@4
$echo "export LLVM_DIR=/usr/local/Cellar/llvm@4/4.0.1/lib/cmake">>~/.zshrc
@heifner can you check with bill (I don't know his github handle) to see if this issue is resolved in eos-noon, If so, we should close this out.
@pacificcode Please verify this is fixed with your changes to the mac build.
After installed llvm@4 and uninstalled llvm v6.0.0, I have to export LLVM_DIR
export LLVM_DIR=/usr/local/opt/llvm\@4/lib/cmake/llvm/
@jmiddleton exporting the LLVM_DIR will work but you should not have to do that If brew creates its sym links to /usr/local/bin successfully. If not then this will get you what you need.
brew unlink llvm@4 && brew link --force llvm@4
the eosio_build.sh script also does this for you when installing llvm@4.