Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

EOS build failed on macOS High Sierra 10.13.2 #1026

Closed
uwifi opened this issue Jan 3, 2018 · 6 comments
Closed

EOS build failed on macOS High Sierra 10.13.2 #1026

uwifi opened this issue Jan 3, 2018 · 6 comments

Comments

@uwifi
Copy link

uwifi commented Jan 3, 2018

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

@uwifi
Copy link
Author

uwifi commented Jan 3, 2018

Should we installed llvm manually?

@uwifi
Copy link
Author

uwifi commented Jan 4, 2018

It was fixed by:
$brew install llvm@4
$echo "export LLVM_DIR=/usr/local/Cellar/llvm@4/4.0.1/lib/cmake">>~/.zshrc

@wanderingbort
Copy link
Contributor

@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.

@heifner
Copy link
Contributor

heifner commented Jan 19, 2018

@pacificcode Please verify this is fixed with your changes to the mac build.

@jmiddleton
Copy link

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/

@pacificcode
Copy link
Contributor

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants