Eos: EOS ./eosio_build.sh failed

Created on 26 Nov 2018  ·  4Comments  ·  Source: EOSIO/eos

There is a problem when i am trying to build eosio_build.sh

It says

CMake Error at /usr/local/Cellar/cmake/3.12.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find GMP (missing: GMP_LIBRARIES GMP_INCLUDE_DIR)

What am i doing wrong? Following is the full contents about building error.


    Beginning build version: 1.2
2018년 11월 26일 월요일 05시 24분 46초 UTC
User: root
git head id: 59626f1e6361df3b715e926ee13a9a8e84d177af
Current branch: master

ARCHITECTURE: Darwin

OS name: Darwin
OS Version: 10.13.4
CPU speed: 2.90Ghz
CPU cores: 4
Physical Memory: 16 Gbytes
Disk install: /dev/disk1s1
Disk space total: 465G
Disk space available: 324G

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 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
CMake Error at /usr/local/Cellar/cmake/3.12.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find GMP (missing: GMP_LIBRARIES GMP_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.12.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
libraries/fc/CMakeModules/FindGMP.cmake:50 (find_package_handle_standard_args)
libraries/fc/secp256k1/CMakeLists.txt:4 (find_package)

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

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

Most helpful comment

Try:

brew unlink GMP
brew link --force GMP

All 4 comments

Try:

brew unlink GMP
brew link --force GMP

Confirmed by user as fixing the reported problem.

@jgiszczak Thanks! It worked!

Try:

brew unlink GMP
brew link --force GMP

Could you give a solution for linux users too:

-- Using custom FindBoost.cmake
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   thread
--   date_time
--   filesystem
--   system
--   chrono
--   program_options
--   unit_test_framework
--   locale
-- Configuring AppBase on Linux
CMake Error at /usr/local/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find GMP (missing: GMP_LIBRARIES GMP_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  external/fc/CMakeModules/FindGMP.cmake:50 (find_package_handle_standard_args)
  external/fc/secp256k1/CMakeLists.txt:4 (find_package)


Getting this error while running
cmake .. to start fill-postgresql

Was this page helpful?
0 / 5 - 0 ratings