Boost logo

Boost Users :

Subject: Re: [Boost-users] [MPI] 1.40 Build errors
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2009-08-29 11:44:36


On Sat, 29 Aug 2009, Juan Antonio Farré Basurte wrote:

> Hello,
> When I try to build boost 1.40, I get errors compiling MPI-related stuff.
> I'm working on a Fedora 11 64-bit system.
>
> I set the following environment variables:
>
> ICU_LINK='-L/usr/lib64'
> EXPAT_INCLUDE=/usr/include
> EXPAT_LIBPATH=/usr/lib64
>
> The bootstrap command is:
>
> ./bootstrap.sh --libdir=/usr/local/lib64
>
> I modify the project-config.jam to add using mpi ;
> The resulting file is attached.
>
> Finally, the bjam command is:
>
> ./bjam variant=release address-model=64
>
> I get error such as, for example,
>
> ...failed gcc.compile.c++ bin.v2/libs/mpi/build/gcc-4.4.1/release/address-model-64/threading-multi/packed_skeleton_iarchive.o...
> gcc.compile.c++ bin.v2/libs/mpi/build/gcc-4.4.1/release/address-model-64/threading-multi/packed_skeleton_oarchive.o
> In file included from ./boost/mpi/detail/mpi_datatype_cache.hpp:14,
>                  from ./boost/mpi/datatype.hpp:28,
>                  from ./boost/mpi/packed_iarchive.hpp:22,
>                  from ./boost/mpi/skeleton_and_content.hpp:29,
>                  from libs/mpi/src/packed_skeleton_oarchive.cpp:11:
> ./boost/mpi/detail/mpi_datatype_oarchive.hpp: In member function ‘void boost::mpi::detail::mpi_datatype_oarchive::save_enum(const T&,
> mpl_::true_)’:
> ./boost/mpi/detail/mpi_datatype_oarchive.hpp:64: error: expected primary-expression before ‘enum’
> ./boost/mpi/detail/mpi_datatype_oarchive.hpp:64: error: expected ‘;’ before ‘enum’

This is a known issue related to serialization of enums on many compilers.
I believe it is being worked on, but your message shows another compiler
and another user that is having trouble with the issue.

-- Jeremiah Willcock


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net