eos icon indicating copy to clipboard operation
eos copied to clipboard

build fails - Unable to find the requested Boost libraries.

Open bitcoiners opened this issue 8 years ago • 24 comments

After pulling latest git master build fails.

...
...updated 15709 targets...
	Boost 1.67.0 successfully installed @ /root/opt/boost_1_67_0.

	Checking MongoDB installation.
	MongoDB configuration found at /root/opt/mongodb/mongod.conf.

	Checking MongoDB C++ driver installation.
	Mongo C++ driver found at /usr/local/lib/libmongocxx-static.a.

	Checking secp256k1-zkp installation.
	secp256k1 found @ /usr/local/lib.

	Checking for LLVM with WASM support.
	WASM found at /root/opt/wasm/bin.


>>>>>>>> ALL dependencies sucessfully found or installed . Installing EOSIO

>>>>>>>> CMAKE_BUILD_TYPE=Release
>>>>>>>> ENABLE_COVERAGE_TESTING=false
>>>>>>>> DOXYGEN=false

-- Using custom FindBoost.cmake
CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:665 (file):
  file STRINGS file "/root/opt/boost_1_66_0/include/boost/version.hpp" cannot
  be read.
Call Stack (most recent call first):
  CMakeLists.txt:88 (FIND_PACKAGE)


CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:1129 (message):
  Unable to find the requested Boost libraries.

  Boost version: 0.0.0

  Boost include path: /root/opt/boost_1_66_0/include

  Detected version of Boost is too old.  Requested version was 1.67 (or
  newer).
Call Stack (most recent call first):
  CMakeLists.txt:88 (FIND_PACKAGE)


-- Configuring Eos on Linux
-- 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 => /root/opt/wasm/bin/clang
-- Using WASM llc => /root/opt/wasm/bin/llc
-- Using WASM llvm-link => /root/opt/wasm/bin/llvm-link
-- Found Secp256k1: /usr/local/lib/libsecp256k1.a
-- Configuring fc to build on Unix/Apple
-- zlib found
-- Configuring Builtins
-- Configuring SoftFloat
-- Using custom FindBoost.cmake
CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:665 (file):
  file STRINGS file "/root/opt/boost_1_66_0/include/boost/version.hpp" cannot
  be read.
Call Stack (most recent call first):
  libraries/chainbase/CMakeLists.txt:26 (FIND_PACKAGE)


CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:1129 (message):
  Unable to find the requested Boost libraries.

  Boost version: 0.0.0

  Boost include path: /root/opt/boost_1_66_0/include

  Detected version of Boost is too old.  Requested version was 1.57 (or
  newer).
Call Stack (most recent call first):
  libraries/chainbase/CMakeLists.txt:26 (FIND_PACKAGE)


-- Configuring ChainBase on Linux
-- Using custom FindBoost.cmake
CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:665 (file):
  file STRINGS file "/root/opt/boost_1_66_0/include/boost/version.hpp" cannot
  be read.
Call Stack (most recent call first):
  libraries/appbase/CMakeLists.txt:22 (find_package)


CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:1129 (message):
  Unable to find the requested Boost libraries.

  Boost version: 0.0.0

  Boost include path: /root/opt/boost_1_66_0/include

  Detected version of Boost is too old.  Requested version was 1.60 (or
  newer).
Call Stack (most recent call first):
  libraries/appbase/CMakeLists.txt:22 (find_package)


-- Configuring AppBase on Linux
-- Git commit revision: 07a67985
-- Git commit revision: 07a67985
-- Git commit revision: 07a67985
-- Configuring incomplete, errors occurred!
See also "/root/eos/build/CMakeFiles/CMakeOutput.log".
See also "/root/eos/build/CMakeFiles/CMakeError.log".

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

bitcoiners avatar May 28 '18 02:05 bitcoiners

seem issue. commit id: 07a6798584d053ed6061bd892879c6c886ba104e

spartucus avatar May 28 '18 02:05 spartucus

@spartucus and @bitcoiners what platform are you compiling on?

gleehokie avatar May 28 '18 02:05 gleehokie

Tried on Ubuntu 16.04 and 18.04. Same problem.

bitcoiners avatar May 28 '18 03:05 bitcoiners

Hi @gleehokie , Ubuntu 16.04 x64

spartucus avatar May 28 '18 03:05 spartucus

Hi, I am also having this problem on Ubuntu 16.04. It appears the eosio_build.sh script updated my Boost to 1.67.0 but the build expects version 1.66.0 and now that version no longer exists on my system.

bt-cryptomancer avatar May 28 '18 03:05 bt-cryptomancer

@bitcoiners @spartucus @bt-cryptomancer both Ubuntu 16.04 and 18.04 are working on our CI system right now. The CI Docker images start with Boost installed though.

If you want to get by this tonight I suggest you manually uninstall Boost and then reinstall Boost 1.67. Let us know if you get by on that.

gleehokie avatar May 28 '18 03:05 gleehokie

@gleehokie I already tried manually uninstalling Boost . Did not help.

bitcoiners avatar May 28 '18 03:05 bitcoiners

@bitcoiners @spartucus @bt-cryptomancer This is a problem with Boost_INCLUDE_DIR being outdated, which does not get updated when boost is upgraded.

Running this before building should work: export Boost_INCLUDE_DIR="${HOME}/opt/boost_1_67_0/include"

jafri avatar May 28 '18 03:05 jafri

@jafri I tried

 export BOOST_INCLUDE_DIR="${HOME}/opt/boost_1_67_0"
echo $BOOST_INCLUDE_DIR
/root/opt/boost_1_67_0

Problem did not go away.

bitcoiners avatar May 28 '18 03:05 bitcoiners

@bitcoiners please try updated:

export Boost_INCLUDE_DIR="${HOME}/opt/boost_1_67_0/include"

jafri avatar May 28 '18 03:05 jafri

@jafri Tried. No change.

 echo $Boost_INCLUDE_DIR
/root/opt/boost_1_67_0/include
 echo $BOOST_INCLUDE_DIR
/root/opt/boost_1_67_0/include

bitcoiners avatar May 28 '18 03:05 bitcoiners

I got it to work just now by explicitly setting BOOST_ROOT in CMakeLists.txt, like this:

set( BOOST_ROOT "/myhomedir/opt/boost_1_67_0" )

bt-cryptomancer avatar May 28 '18 03:05 bt-cryptomancer

@jafri export env way does not work, since it is already in eosio_build.sh.

line 189: export BOOST_ROOT="${HOME}/opt/boost_1_67_0"

spartucus avatar May 28 '18 04:05 spartucus

One workaround is to cd into ~/opt and remove the boost library there. Re-compile using ./eosio_build.sh and it should work.

jchung00 avatar May 28 '18 05:05 jchung00

remove all file and all folders except .git in eos directory git reset --hard HEAD recompile

jon0008 avatar May 28 '18 06:05 jon0008

remove all file and all folders except .git in eos directory git reset --hard HEAD recompile

jon0008 avatar May 28 '18 06:05 jon0008

remove all file and all folders except .git in eos directory git reset --hard HEAD recompile

jon0008 avatar May 28 '18 06:05 jon0008

remove all file and all folders except .git in eos directory git reset --hard HEAD recompile

jon0008 avatar May 28 '18 06:05 jon0008

Deleting and cloning a new repo copy works. Problem gone.

bitcoiners avatar May 28 '18 08:05 bitcoiners

Yet it's not a proper solution.

spartucus avatar May 28 '18 08:05 spartucus