gossamer icon indicating copy to clipboard operation
gossamer copied to clipboard

Trouble Building Gossamer with Boost

Open moravveji opened this issue 5 years ago • 2 comments

Dear,

I am trying to build Gossamer for one of our users on one of our clusters (CentOS 7.4, SkyLake nodes). I have put a simple script together following the build instructions (attached). However, the build terminates with the following error (full log is attached, but the paths are heavily trimmed):

+ cmake /myData/easybuild/work/Gossamer/gossamer
-- This is a Unix-like platform
-- The compiler is GNU
-- Found Boost 1.70.0 at /myApps/software/Boost/1.70.0-foss-2018a/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET REQUIRED COMPONENTS system;iostreams;program_options;filesystem
-- Found boost_headers 1.70.0 at /myApps/software/Boost/1.70.0-foss-2018a/lib/cmake/boost_headers-1.70.0
-- Found boost_system 1.70.0 at /myApps/software/Boost/1.70.0-foss-2018a/lib/cmake/boost_system-1.70.0
-- No suitable boost_system variant has been identified!
--   libboost_system.so.1.70.0 (shared, BUILD_SHARED_LIBS not ON, set Boost_USE_STATIC_LIBS=OFF to override)
--   libboost_system.a (static, Boost_USE_STATIC_LIBS=OFF)
CMake Error at /myApps/software/Boost/1.70.0-foss-2018a/lib/cmake/Boost-1.70.0/BoostConfig.cmake:95 (find_package):
  Found package configuration file:

    /myApps/software/Boost/1.70.0-foss-2018a/lib/cmake/boost_system-1.70.0/boost_system-config.cmake

  but it set boost_system_FOUND to FALSE so package "boost_system" is
  considered to be NOT FOUND.  Reason given by package:

  No suitable build variant has been found.

Call Stack (most recent call first):
  /myApps/software/Boost/1.70.0-foss-2018a/lib/cmake/Boost-1.70.0/BoostConfig.cmake:124 (boost_find_dependency)
  /myApps/software/CMake/3.13.2-GCCcore-6.4.0/share/cmake-3.13/Modules/FindBoost.cmake:264 (find_package)
  cmake/GossDetectDependencies.cmake:6 (find_package)
  CMakeLists.txt:23 (include)

To me, it seems like not all features of Boost are found by CMake. Do you have any advice to circumvent this issue?

Kind regards, Ehsan

gossamer.zip log-gossamer.zip

moravveji avatar Jun 18 '19 13:06 moravveji

Hello, Just a workaround to install gossamer on recent Mac OS system and probably all Linux distribution, I guess. We had to remove the line 98 (${Boost_PROGRAM_OPTIONS_LIBRARY}) from src/CMakeLists.txt in order to pass through the library accessibility check of cmake since the declaration of Boost library have nothing to do in such place. Best,

Tebalde0 avatar Mar 11 '20 08:03 Tebalde0

Excellent. Thanks for the update. Would you please push the changes, so that I can pull the stable version for another build attempt?

moravveji avatar Mar 11 '20 09:03 moravveji