Hello all -
On Mac OS X Lion, we're seeing errors when linking our application using
Boost.MPI. The application is rather large and uses Boost.Serialization
for both checkpoint/restart and MPI communication. The checkpoint/restart
bits made serialization a bit of a disaster in terms of compile times (due
to headers including basically every other header in the project). To
solve that problem, we followed the Boost.Serialization advice on static
libraries, and all is good.
Except that on Lion (and possibly elsewhere, but definitely on Lion) using
the gcc front-end (i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on
Apple Inc. build 5658) (LLVM build 2336.11.00)), we're seeing link
failures due to serialization calls for MPI archivers not being found when
compiling with -O2 or higher on Boost 1.50.0 and 1.51.0:
CXXLD sst.x
Undefined symbols for architecture x86_64:
"void
SST::Introspector::serializeboost::mpi::packed_iarchive(boost::mpi::packe
d_iarchive&, unsigned int)", referenced from:
boost::archive::detail::iserializer