On Tuesday 29 April 2008 08:44:55 Dheeraj Gautam wrote:
Hi,
I am trying to compile Boost.MPI on FreeBSD 4.11 machine. But its failing with following error: Found MPICH wrapper compiler: mpic++ MPI compilation flags: -I/home/eqsupport/mpich2_install/include -L/home/eqsupport/mpich2_install/lib -lmpichcxx -lmpich MPI link flags: -I/home/eqsupport/mpich2_install/include -L/home/eqsupport/mpich2_install/lib -lmpichcxx -lmpich MPI build features: <include>/home/eqsupport/mpich2_install/include <library-path>/home/eqsupport/mpich2_install/lib <find-shared-library>mpichcxx <find-shared-library>mpich <include>/home/eqsupport/mpich2_install/include <library-path>/home/eqsupport/mpich2_install/lib < find-shared-library>mpichcxx <find-shared-library>mpich MPI launcher: mpirun -np ==================================================== warning: No toolsets are configured. warning: Configuring default toolset "gcc". warning: If the default is wrong, your build may not work correctly. warning: Use the "--toolset=xxxxx" option to override our guess. warning: For more configuration options, please consult warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html notice: will use 'g++' for gcc, condition <toolset>gcc-2.95.4 notice: using gcc libraries :: <toolset>gcc-2.95.4 :: /usr/bin /usr/lib /usr/lib32 /usr/lib64 notice: using gcc archiver :: <toolset>gcc-2.95.4 :: /usr/bin/ar warning: toolset gcc initialization: can't find tool windres warning: initialized from notice: using rc compiler :: <toolset>gcc-2.95.4 :: /usr/bin/as ...patience... ...found 1889 targets... ...updating 29 targets... gcc.compile.c++ bin.v2/libs/mpi/build/gcc-2.95.4/release/threading-multi/broadcast.o In file included from boost/serialization/nvp.hpp:34, from boost/serialization/serialization.hpp:24, from boost/archive/detail/oserializer.hpp:64, from boost/mpi/detail/mpi_datatype_oarchive.hpp:12, from boost/mpi/detail/mpi_datatype_cache.hpp:13, from boost/mpi/datatype.hpp:26, from boost/mpi/communicator.hpp:20, from boost/mpi/collectives.hpp:21, from boost/mpi/collectives_fwd.hpp:19, from boost/mpi/collectives/broadcast.hpp:11, from libs/mpi/src/broadcast.cpp:9: boost/serialization/base_object.hpp: In function `static const void * boost::serialization::detail::base_register
::invoke()':
boost/serialization/base_object.hpp:56: syntax error before `::' boost/serialization/base_object.hpp:59: use of class template `template <class T> boost::is_polymorphic<T>' as expression In file included from boost/mpi/detail/mpi_datatype_oarchive.hpp:12, from boost/mpi/detail/mpi_datatype_cache.hpp:13, from boost/mpi/datatype.hpp:26, from boost/mpi/communicator.hpp:20, from boost/mpi/collectives.hpp:21, from boost/mpi/collectives_fwd.hpp:19, from boost/mpi/collectives/broadcast.hpp:11, from libs/mpi/src/broadcast.cpp:9: boost/archive/detail/oserializer.hpp: In function `static const class boost::archive::detail::basic_pointer_oserializer * boos t::archive::detail::save_pointer_type
::abstract<T>::register_ type(Archive &)': boost/archive/detail/oserializer.hpp:329: syntax error before `::' boost/archive/detail/oserializer.hpp:330: template argument 1 is invalid boost/archive/detail/oserializer.hpp:330: confused by earlier errors, bailing out "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_MPI_DYN_ LINK=1 -DBOOST_MPI_SOURCE=1 -DNDEBUG -I"." -I"/home/eqsupport/mpich2_install/include" -c -o "bin.v2/libs/mpi/build/gcc-2.95.4 /release/threading-multi/broadcast.o" "libs/mpi/src/broadcast.cpp"
...failed gcc.compile.c++ bin.v2/libs/mpi/build/gcc-2.95.4/release/threading-multi/broadcast.o... gcc.compile.c++ bin.v2/libs/mpi/build/gcc-2.95.4/release/threading-multi/communicator.o In file included from boost/serialization/nvp.hpp:34, from boost/serialization/serialization.hpp:24, from boost/archive/detail/oserializer.hpp:64, from boost/mpi/detail/mpi_datatype_oarchive.hpp:12, from boost/mpi/detail/mpi_datatype_cache.hpp:13,
=========================================================================
Almost all compilations for MPI are failing with similar error. It seems some C++ support is not there. I am new to C++ and Boost.
Any help will be of great help.
Dheeraj Gautam
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi! FreeBSD 4.11 is quite old and deprecated. May I suggest you upgrade to FBSD 7. The system compiler on 7 is gcc4.2 I believe. That should solve your problem. Ben