eos icon indicating copy to clipboard operation
eos copied to clipboard

EOS build failed on macOS High Sierra 10.13.2

Open uwifi opened this issue 8 years ago • 6 comments

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 avatar Jan 03 '18 07:01 uwifi

Should we installed llvm manually?

uwifi avatar Jan 03 '18 08:01 uwifi

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

uwifi avatar Jan 04 '18 17:01 uwifi

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

wanderingbort avatar Jan 19 '18 21:01 wanderingbort

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

heifner avatar Jan 19 '18 21:01 heifner

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 avatar Jun 07 '18 20:06 jmiddleton

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

pacificcode avatar Jun 07 '18 21:06 pacificcode