Could not find a package configuration file provided by "LLVM" (requested version 4.0) with any of the following names:
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 !
my platform is mac ;Sierra ; Version 10.12.6
+1
@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
@oran-z Try this
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'
Multiple solutions provided.