data61 / gossamer

Gossamer bioinformatics suite
Other
19 stars 18 forks source link

Trouble Building Gossamer with Boost #24

Open moravveji opened 5 years ago

moravveji commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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