eos icon indicating copy to clipboard operation
eos copied to clipboard

Could not find a package configuration file provided by "LLVM" (requested version 4.0) with any of the following names:

Open oran-z opened this issue 8 years ago • 6 comments

hi, dear developer i run the ./eosio_build.sh file, and compiled 100% ,then an error was appeared. the error message as follows:

-- unit_test_framework -- locale -- Configuring ChainBase on OS X CMake Error at libraries/wasm-jit/Source/Runtime/CMakeLists.txt:26 (find_package): Could not find a package configuration file provided by "LLVM" (requested version 4.0) with any of the following names:

LLVMConfig.cmake
llvm-config.cmake

Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set "LLVM_DIR" to a directory containing one of the above files. If "LLVM" provides a separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred! See also "/Users/yaobukeji/eos/build/CMakeFiles/CMakeOutput.log".

>>>>>>>>>>>>>>>>>>>> CMAKE building EOSIO has exited with the above error.

i tried some method , list as follows: (1) run the command : export LLVM_DIR=/usr/local/Cellar/llvm@4/4.0.1/lib/cmake ; then run ./eosio_build.sh ;the err still exist. (2) i do something as #43, the console output is

oran:~ yaobukeji$ which clang /usr/bin/clang oran:~ yaobukeji$ which llvm-config: oran:~ yaobukeji$ which llvm-config oran:~ yaobukeji$ find /usr -name LLVMConfig.cmake -print 2>/dev/null /usr/local/Cellar/llvm@4/4.0.1/lib/cmake/llvm/LLVMConfig.cmake /usr/local/wasm/lib/cmake/llvm/LLVMConfig.cmake oran:~ yaobukeji$

(3) i also rm -rf llvm@4 dicrectory, then run the ./eosio_build.sh ,but the err still exist.

so what should i do ? pls help me !

oran-z avatar Jun 16 '18 16:06 oran-z

my platform is mac ;Sierra ; Version 10.12.6

oran-z avatar Jun 16 '18 16:06 oran-z

+1

SheldonHH avatar Jun 17 '18 09:06 SheldonHH

@oran-z @SheldonHH the clang you are using is the default Mac installation of clang which is not compiled with RTTI enabled i.e. oran:~ yaobukeji$ which clang /usr/bin/clang

Adjusting your PATH to use the brew installation of clang should get you what you need i.e. export PATH=/usr/local/bin:$PATH

pacificcode avatar Jun 19 '18 20:06 pacificcode

@oran-z Try this

channprj avatar Jul 02 '18 09:07 channprj

For v1.5.0, the following works for me: brew install --with-clang --with-lld --with-python llvm@4 export PATH=/usr/local/Cellar/llvm@4/4.0.1_1/lib/cmake/llvm; ./eos_build.sh -s 'EOS'

jingzhehu avatar Dec 05 '18 02:12 jingzhehu

Multiple solutions provided.

jgiszczak avatar Jan 09 '19 21:01 jgiszczak