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

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

Closed
oran-z opened this issue Jun 16, 2018 · 6 comments
Labels

Comments

@oran-z
Copy link

oran-z commented Jun 16, 2018

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
Copy link
Author

oran-z commented Jun 16, 2018

my platform is mac ;Sierra ; Version 10.12.6

@SheldonHH
Copy link
Contributor

+1

@pacificcode pacificcode self-assigned this Jun 19, 2018
@pacificcode
Copy link
Contributor

@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

@channprj
Copy link

channprj commented Jul 2, 2018

@oran-z Try this

@jingzhehu
Copy link

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'

@jgiszczak
Copy link
Contributor

Multiple solutions provided.

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

No branches or pull requests

7 participants