[AMBER] Boost not linking when compiling on Mac

From: Gustaf Olsson <gustaf.olsson.lnu.se>
Date: Wed, 25 Apr 2018 09:53:11 +0000

So I switched from MacPorts to Homebrew when switching computers. This meant going from GNU compilers to using CLANG which worked without a hitch on AmberTools17, though this time I’m getting an error.

./configure -macAccelerate gnu

Testing the clang++ compiler with boost:
     clang++ -fPIC -lboost_thread -lboost_system -o testp testp.cpp

Warning: Could not link to boost. Ensure boost-thread, boost-system and boost headers are installed.
Warning: Failed command:
     clang++ -fPIC -lboost_thread -lboost_system -o testp testp.cpp
Warning: Check boost.compile.err for error details.
Warning: Memembed functionality in packmol_memgen not available.

Even if boost and boost-mpi are installed, this does not work.

Boost has no dependencies from homebrew so I am assuming it is built using clang since using “gnu” on mac falls back to clang. I don’t know how to get around this issue, any input would be appreciated.

// Gustaf
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Wed Apr 25 2018 - 03:00:01 PDT
Custom Search