dipetkov / eems

Estimating Effective Migration Surfaces
GNU General Public License v2.0
102 stars 28 forks source link

issue compiling runeems_snps on linux #76

Open adamfreedman opened 3 months ago

adamfreedman commented 3 months ago

I was obliged to rebuild my eems install after our HPC was refactored. Fwiw, I've run it succesfully before. That said after having modified the makefile to point to relevant boost and eigen3 directories (which are nested inside a conda environment), make linux yields errors upon "make linux" (we're running on rocky)

g++ -std=c++14 -I/n/holylfs05/LABS/informatics/Users/afreedman/.conda/envs/eems_snps/include/boost -I/n/holylfs05/LABS/informatics/Users/afreedman/.conda/envs/eems_snps/include/eigen3 -O3 -DNDEBUG -o runeems_snps runeems_snps.o eems.o util.o mcmc.o draw.o habitat.o graph.o -L/n/holylfs05/LABS/informatics/Users/afreedman/.conda/envs/eems_snps/lib -Wl,-R/n/holylfs05/LABS/informatics/Users/afreedman/.conda/envs/eems_snps/lib -lboost_system -lboost_program_options -lboost_filesystem runeems_snps.o: In function boost::system::error_category::std_category::equivalent(std::error_code const&, int) const': runeems_snps.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0x30): undefined reference toboost::system::generic_category()' runeems_snps.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0xa9): undefined reference to boost::system::generic_category()' runeems_snps.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0x121): undefined reference toboost::system::generic_category()' runeems_snps.o: In function boost::system::error_category::std_category::equivalent(int, std::error_condition const&) const': runeems_snps.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition[_ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition]+0x2f): undefined reference toboost::system::generic_category()' runeems_snps.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition[_ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition]+0xc1): undefined reference to boost::system::generic_category()' util.o: In functionParams::check_input_arguments()': util.cpp:(.text+0x3217): undefined reference to `boost::filesystem::detail::create_directory(boost::filesystem::path const&, boost::system::error_code*)' collect2: error: ld returned 1 exit status make: *** [Makefile:18: linux] Error 1

Not sure what is going on here