mac os 10.13.4 build failed with this issues. please help me!
when i exc ./eosio_build.sh. issues as follow:
-- Using custom FindBoost.cmake -- Boost version: 1.67.0 -- Found the following Boost libraries: -- thread -- date_time -- filesystem -- system -- program_options -- signals -- serialization -- chrono -- unit_test_framework -- context -- locale -- iostreams -- Configuring EOSIO on OS X -- binaryen building with -std=c++11 -- binaryen building for platform x86-64 -- binaryen building with -Wall -- binaryen building with -Werror -- binaryen building with -Wextra -- binaryen building with -Wno-unused-parameter -- binaryen building with -fno-omit-frame-pointer -- binaryen building with -fPIC -- binaryen building with -O2 -- binaryen building with -UNDEBUG -- Using 'SYS' as CORE symbol name -- Using 'EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV' as public key for 'eosio' account -- Using WASM clang => /usr/local/wasm/bin/clang -- Using WASM llc => /usr/local/wasm/bin/llc -- Using WASM llvm-link => /usr/local/wasm/bin/llvm-link -- Found Secp256k1: /usr/local/lib/libsecp256k1.a -- Configuring fc to build on Unix/Apple -- zlib found -- Configuring Builtins CMake Error at libraries/CMakeLists.txt:3 (add_subdirectory): The source directory
/Users/zcm/eos/libraries/softfloat
does not contain a CMakeLists.txt file.
-- Using custom FindBoost.cmake -- Boost version: 1.67.0 -- Found the following Boost libraries: -- thread -- date_time -- filesystem -- system -- chrono -- 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/zcm/eos/build/CMakeFiles/CMakeOutput.log".
>>>>>>>>>>>>>>>>>>>> CMAKE building EOSIO has exited with the above error.
you can see i have two issues.i am a newbie,please help me.ths
brew remove --force boostbrew remove --force llvmcd /path/to/eos rm -rf build/ git pull git submodule update --init --recursive ./eosio_build.sh
Recommending a website that learns the basics of EOS (https://www.bcskill.com) may help you.
@cppfuns thanks for you reply.but when i exc "brew remove --force llvmcd ~/eos" it did't work for me with this error:Error: No available formula with the name "/Users/zcm/eos" .so what should i do next?
@cppfuns @theshdf run the commands below and paste the FULL output of each command here.
echo $PATH clang --version llvm-config --has-rtti --version
cd /path/to/eos rm -rf build/ git pull git submodule update --init --recursive ./eosio_build.sh
@pacificcode [@zcmmacbook-pro:~]$ echo $PATH /usr/local/opt/llvm/bin:/usr/local/opt/llvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/zcm/Documents/go_workspace/bin:/Users/zcm/Documents/go_workspace/bin [@zcmmacbook-pro:~]$ clang --version clang version 6.0.0 (tags/RELEASE_600/final) Target: x86_64-apple-darwin17.5.0 Thread model: posix InstalledDir: /usr/local/opt/llvm/bin [@zcmmacbook-pro:~]$ llvm-config --has-rtti --version YES 6.0.0 [@zcmmacbook-pro:~]$ cd eos [@zcmmacbook-pro:eos (master)]$ rm -rf build/ [@zcmmacbook-pro:eos (master)]$ git pull Already up to date. [@zcmmacbook-pro:eos (master)]$ git submodule update --init --recursive [@zcmmacbook-pro:eos (master)]$ ./eosio_build.sh
Beginning build version: 1.2
2018年 6月26日 星期二 02时54分26秒 UTC
User: zcm
git head id: 0b046bfa26478105247d35b439a449831bad42da
Current branch: master
ARCHITECTURE: Darwin
OS name: Darwin
OS Version: 10.13.4
CPU speed: 2.70Ghz
CPU cores: 2
Physical Memory: 8 Gbytes
Disk install: /dev/disk1s1
Disk space total: 233G
Disk space available: 93G
Checking xcode-select installation
xcode-select installation found @
/usr/bin/xcode-select
Checking Ruby installation.
Ruby installation found @
/usr/bin/ruby
Checking Home Brew installation
Home Brew installation found @
/usr/local/bin/brew
Checking dependencies.
Checking automake ... automake found
Checking Libtool ... Libtool found
Checking OpenSSL ... OpenSSL found
Checking llvm ... llvm found
Checking wget ... wget found
Checking CMake ... CMake found
Checking GMP ... GMP found
Checking gettext ... gettext found
Checking MongoDB ... MongoDB found
Checking Doxygen ... Doxygen found
Checking Graphviz ... Graphviz found
Checking LCOV ... LCOV found
Checking Python3 ... Python3 found
No required Home Brew dependencies to install.
Checking boost library installation.
Boost 1.67.0 found at /usr/local.
Checking MongoDB C++ driver installation.
Mongo C++ driver found at /usr/local/lib/libmongocxx-static.a.
Checking secp256k1-zkp installation.
secp256k1 found at /usr/local/lib/.
Checking LLVM with WASM support.
WASM found at /usr/local/wasm/bin/.
ALL dependencies sucessfully found or installed . Installing EOSIO
CMAKE_BUILD_TYPE=Release ENABLE_COVERAGE_TESTING=false DOXYGEN=false
-- The C compiler identification is Clang 6.0.0 -- The CXX compiler identification is Clang 6.0.0 -- Check for working C compiler: /usr/local/opt/llvm/bin/clang -- Check for working C compiler: /usr/local/opt/llvm/bin/clang -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/local/opt/llvm/bin/clang++ -- Check for working CXX compiler: /usr/local/opt/llvm/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Using custom FindBoost.cmake -- Boost version: 1.67.0 -- Found the following Boost libraries: -- thread -- date_time -- filesystem -- system -- program_options -- signals -- serialization -- chrono -- unit_test_framework -- context -- locale -- iostreams -- Configuring EOSIO on OS X -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - found -- Found Threads: TRUE -- binaryen building with -std=c++11 -- binaryen building for platform x86-64 -- binaryen building with -Wall -- binaryen building with -Werror -- binaryen building with -Wextra -- binaryen building with -Wno-unused-parameter -- binaryen building with -fno-omit-frame-pointer -- binaryen building with -fPIC -- binaryen building with -O2 -- binaryen building with -UNDEBUG -- Using 'SYS' as CORE symbol name -- Using 'EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV' as public key for 'eosio' account -- Found WASM: /usr/local/wasm/bin/clang -- Using WASM clang => /usr/local/wasm/bin/clang -- Using WASM llc => /usr/local/wasm/bin/llc -- Using WASM llvm-link => /usr/local/wasm/bin/llvm-link -- Found Secp256k1: /usr/local/lib/libsecp256k1.a -- Found GMP: /usr/local/lib/libgmp.a -- Configuring fc to build on Unix/Apple -- Found OpenSSL: /usr/local/opt/openssl/lib/libcrypto.a (found version "1.0.2o") -- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.11") -- zlib found -- Configuring Builtins CMake Error at libraries/CMakeLists.txt:3 (add_subdirectory): The source directory
/Users/zcm/eos/libraries/softfloat
does not contain a CMakeLists.txt file.
-- Using custom FindBoost.cmake -- Boost version: 1.67.0 -- Found the following Boost libraries: -- thread -- date_time -- filesystem -- system -- chrono -- 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 configuration file for package "LLVM" that is compatible with requested version "4.0".
The following configuration files were considered but not accepted:
/usr/local/opt/llvm/lib/cmake/llvm/LLVMConfig.cmake, version: 6.0.0
/usr/local/opt/llvm/lib/cmake/llvm/llvm-config.cmake, version: unknown
-- Configuring incomplete, errors occurred! See also "/Users/zcm/eos/build/CMakeFiles/CMakeOutput.log".
>>>>>>>>>>>>>>>>>>>> CMAKE building EOSIO has exited with the above error.
[@zcmmacbook-pro:eos (master)]$
@theshdf run the following and you should be good.
brew remove --force llvm cd /path/to/eos rm -rf build/ git pull git submodule update --init --recursive ./eosio_build.sh
@pacificcode [@zcmmacbook-pro:eos (master)]$ brew remove --force llvm [@zcmmacbook-pro:eos (master)]$ rm -rf build/ [@zcmmacbook-pro:eos (master)]$ git pull Already up to date. [@zcmmacbook-pro:eos (master)]$ git submodule update --init --recursive [@zcmmacbook-pro:eos (master)]$ ./eosio_build.sh
Beginning build version: 1.2
2018年 6月26日 星期二 13时54分20秒 UTC
User: zcm
git head id: 0b046bfa26478105247d35b439a449831bad42da
Current branch: master
ARCHITECTURE: Darwin
OS name: Darwin
OS Version: 10.13.4
CPU speed: 2.70Ghz
CPU cores: 2
Physical Memory: 8 Gbytes
Disk install: /dev/disk1s1
Disk space total: 233G
Disk space available: 93G
Checking xcode-select installation
xcode-select installation found @
/usr/bin/xcode-select
Checking Ruby installation.
Ruby installation found @
/usr/bin/ruby
Checking Home Brew installation
Home Brew installation found @
/usr/local/bin/brew
Checking dependencies.
Checking automake ... automake found
Checking Libtool ... Libtool found
Checking OpenSSL ... OpenSSL found
Checking llvm ... llvm found
Checking wget ... wget found
Checking CMake ... CMake found
Checking GMP ... GMP found
Checking gettext ... gettext found
Checking MongoDB ... MongoDB found
Checking Doxygen ... Doxygen found
Checking Graphviz ... Graphviz found
Checking LCOV ... LCOV found
Checking Python3 ... Python3 found
No required Home Brew dependencies to install.
Checking boost library installation.
Boost 1.67.0 found at /usr/local.
Checking MongoDB C++ driver installation.
Mongo C++ driver found at /usr/local/lib/libmongocxx-static.a.
Checking secp256k1-zkp installation.
secp256k1 found at /usr/local/lib/.
Checking LLVM with WASM support.
WASM found at /usr/local/wasm/bin/.
ALL dependencies sucessfully found or installed . Installing EOSIO
CMAKE_BUILD_TYPE=Release ENABLE_COVERAGE_TESTING=false DOXYGEN=false
-- The C compiler identification is AppleClang 9.1.0.9020039 -- The CXX compiler identification is AppleClang 9.1.0.9020039 -- Check for working C compiler: /usr/bin/clang -- Check for working C compiler: /usr/bin/clang -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/clang++ -- Check for working CXX compiler: /usr/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Using custom FindBoost.cmake -- Boost version: 1.67.0 -- Found the following Boost libraries: -- thread -- date_time -- filesystem -- system -- program_options -- signals -- serialization -- chrono -- unit_test_framework -- context -- locale -- iostreams -- Configuring EOSIO on OS X -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - found -- Found Threads: TRUE -- binaryen building with -std=c++11 -- binaryen building for platform x86-64 -- binaryen building with -Wall -- binaryen building with -Werror -- binaryen building with -Wextra -- binaryen building with -Wno-unused-parameter -- binaryen building with -fno-omit-frame-pointer -- binaryen building with -fPIC -- binaryen building with -O2 -- binaryen building with -UNDEBUG -- Using 'SYS' as CORE symbol name -- Using 'EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV' as public key for 'eosio' account -- Found WASM: /usr/local/wasm/bin/clang -- Using WASM clang => /usr/local/wasm/bin/clang -- Using WASM llc => /usr/local/wasm/bin/llc -- Using WASM llvm-link => /usr/local/wasm/bin/llvm-link -- Found Secp256k1: /usr/local/lib/libsecp256k1.a -- Found GMP: /usr/local/lib/libgmp.a -- Configuring fc to build on Unix/Apple -- Found OpenSSL: /usr/local/opt/openssl/lib/libcrypto.a (found version "1.0.2o") -- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.11") -- zlib found -- Configuring Builtins -- Configuring SoftFloat -- Using custom FindBoost.cmake -- Boost version: 1.67.0 -- Found the following Boost libraries: -- thread -- date_time -- filesystem -- system -- chrono -- 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/zcm/documents/shdf/github/eos/build/CMakeFiles/CMakeOutput.log".
>>>>>>>>>>>>>>>>>>>> CMAKE building EOSIO has exited with the above error.
@pacificcode @cppfuns @andriantolie thanks very much。i have solved this question. build successful by refer #43