eos icon indicating copy to clipboard operation
eos copied to clipboard

compiling 1.7 on a machine where 1.6 was previously compiles generates error finding boost

Open matthewdarwin opened this issue 7 years ago • 8 comments

build script looks like this:

mkdir $TEMPDIR
cd $TEMPDIR
git clone -b $branch https://github.com/EOSIO/eos.git --recursive
cd eos \
  && git checkout tags/$tag \
  && ./scripts/eosio_build.sh -s EOS

If you compile nodeos 1.6.3 successfully first, then try to compile nodeos 1.7.0 it fails. The boot library compiled from 1.6 in $HOME is not compatible for what is needed in 1.7. Error message is:

========================================================================
======================= Starting EOSIO Build =======================
## CMAKE_BUILD_TYPE=Release
## ENABLE_COVERAGE_TESTING=false
-- The C compiler identification is Clang 4.0.1
-- The CXX compiler identification is Clang 4.0.1
-- Check for working C compiler: /usr/bin/clang-4.0
-- Check for working C compiler: /usr/bin/clang-4.0 -- 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++-4.0
-- Check for working CXX compiler: /usr/bin/clang++-4.0 -- 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
CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:1129 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:111 (FIND_PACKAGE)


-- Configuring EOSIO on Linux
-- Using 'EOS' as CORE symbol name
-- Using 'EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV' as public key for 'eosio' account
-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmp.a  
-- Configuring fc to build on Unix/Apple
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found version "1.1.0g") 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- zlib found
-- Configuring Builtins
-- Configuring SoftFloat
-- Using custom FindBoost.cmake
CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:1129 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
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:1129 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  libraries/appbase/CMakeLists.txt:22 (find_package)

Removing the previously compile libraries from $HOME makes it work fine.

The installation process for 1.7 should either use different paths or recognize that boost installed with 1.6 doesn't work with 1.7 or release notes should mention this issue specifically and how to avoid.

I have a strong desire to compile multiple versions of nodeos on the same machine.

matthewdarwin avatar Mar 14 '19 12:03 matthewdarwin

Ubuntu 18.04

matthewdarwin avatar Mar 14 '19 12:03 matthewdarwin

Interesting. I was able to update on mac OSX, but now when I run nodeos:

error 2019-03-14T19:58:06.219 thread-0  main.cpp:127                  main                 ] Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::unknown_option> >
std::exception::what: unrecognised option 'max-implicit-request'

dschlossman avatar Mar 14 '19 20:03 dschlossman

max-implicit-request is no longer a valid option. Remove it from your config.ini

heifner avatar Mar 14 '19 20:03 heifner

max-implicit-request is no longer a valid option. Remove it from your config.ini

Thanks. Easy fix! Working now

dschlossman avatar Mar 14 '19 20:03 dschlossman

I believe this can be closed. The readme indicates to uninstall previous versions using the uninstall scripts.

NorseGaud avatar Mar 18 '19 00:03 NorseGaud

I don't see anything listed here https://github.com/EOSIO/eos/blob/master/README.md related to running uninstall scripts. Or you're referring to a different README?

matthewdarwin avatar Mar 18 '19 03:03 matthewdarwin

Where can I get the full config.ini example?

lcg635 avatar Mar 18 '19 07:03 lcg635

@matthewdarwin, the message that is there is not clear enough for use with the build scripts. I will work on getting it updated. In fact the full_uninstaller needs to be used to remove all dependencies that are not through the package manager

NorseGaud avatar Mar 18 '19 17:03 NorseGaud