Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble Building Gossamer with Boost #24

Open
moravveji opened this issue Jun 18, 2019 · 2 comments
Open

Trouble Building Gossamer with Boost #24

moravveji opened this issue Jun 18, 2019 · 2 comments

Comments

@moravveji
Copy link

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

@Tebalde0
Copy link
Contributor

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,

@moravveji
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants