
Hello, I try to build Boost with MPI on a system and I get errors, because Boost try to build python also. I run b2 and I build with the --with option the following libraries Performing configuration checks - gcc visibility : yes - long double support : yes - has_icu builds : no Component configuration: - chrono : not building - context : not building - date_time : building - exception : building - filesystem : building - graph : not building - graph_parallel : not building - iostreams : building - locale : not building - math : building - mpi : building - program_options : building - python : not building - random : building - regex : building - serialization : building - signals : not building - system : building - test : not building - thread : building - timer : not building - wave : not building The b2 command is: --with-exception --with-math --with-system --with-iostreams --layout=system link=shared runtime-link=shared threading=multi variant=release install --prefix=../build_release/boost/1.52.0 --with-regex --with-random --with-thread --with-date_time --with-program_options --with-filesystem --with-mpi --with-serialization The build process breaks with the error eg: ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.6/release/threading-multi/long.o... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.6/release/threading-multi/dict.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/dict.hpp:8, from libs/python/src/dict.cpp:4: ./boost/python/detail/wrap_python.hpp:75:24: fatal error: patchlevel.h: No such file or directory compilation terminated. If I mix --with and --without option on the b2 command I get the error: error: both --with-<library> and --without-<library> specified How can I disable any Python builds? Thanks Phil

./bootstrap.sh --prefix=${PREFIX} --with-libraries=filesystem,regex,system ... Component configuration: - chrono : not building - context : not building - date_time : not building - exception : not building - filesystem : building - graph : not building - graph_parallel : not building - iostreams : not building - locale : not building - math : not building - mpi : not building - program_options : not building * - python : not building* - random : not building - regex : building - serialization : not building - signals : not building - system : building - test : not building - thread : not building - timer : not building - wave : not building

On 2013-01-10 21:49:10 +0100, Steve Lorimer said:
./bootstrap.sh --prefix=${PREFIX} --with-libraries=filesystem,regex,system
On this command b2 returns: error: wrong library name 'libraries=exception,math,system,iostreams,regex,random,thread,date_time,program_options,filesystem,mpi,serialization' in the --with-<library> option.

On 11 January 2013 08:19, Philipp Kraus
On 2013-01-10 21:49:10 +0100, Steve Lorimer said:
./bootstrap.sh --prefix=${PREFIX} --with-libraries=filesystem,**
regex,system
On this command b2 returns:
error: wrong library name 'libraries=exception,math,** system,iostreams,regex,random,**thread,date_time,program_** options,filesystem,mpi,**serialization' in the --with-<library> option.
Not sure - the below commands work on boost 1.51 for me *$ ./bootstrap.sh --with-libraries=exception,math,system,iostreams,regex,random,thread,date_time,program_options,filesystem,mpi,serialization * Building Boost.Build engine with toolset gcc... tools/build/v2/engine/bin.linuxx86_64/b2 Unicode/ICU support for Boost.Regex?... not found. Backing up existing Boost.Build configuration in project-config.jam.1 Generating Boost.Build configuration in project-config.jam... Bootstrapping is done. To build, run: ./b2 To adjust configuration, edit 'project-config.jam'. Further information: - Command line help: ./b2 --help - Getting started guide: http://www.boost.org/more/getting_started/unix-variants.html - Boost.Build documentation: http://www.boost.org/boost-build2/doc/html/index.html *$ ./b2 --toolset=gcc* Building the Boost C++ Libraries. Performing configuration checks - gcc visibility : yes - long double support : yes warning: skipping optional Message Passing Interface (MPI) library. note: to enable MPI support, add "using mpi ;" to user-config.jam. note: to suppress this message, pass "--without-mpi" to bjam. note: otherwise, you can safely ignore this message. - has_icu builds : no Component configuration: - chrono : not building - context : not building - date_time : building - exception : building - filesystem : building - graph : not building - graph_parallel : not building - iostreams : building - locale : not building - math : building - mpi : building - program_options : building - python : not building - random : building - regex : building - serialization : building - signals : not building - system : building - test : not building - thread : building - timer : not building - wave : not building ...patience... ... etc ...
participants (2)
-
Philipp Kraus
-
Steve Lorimer