Hi all,
I'm a first time user of boost, and I'm having some difficulty building some boost libraries.
Environment: mingw
GCC Version: 3.4.5
Boost Version: Downloaded the latest version from svn last night using this command (svn co http://svn.boost.org/svn/boost/trunk boost-trunk)
I'm currently building boost library one by one.
By doing so, first, I retrieved a list of libraries that I can build using command "bjam --show-libraries"
Second, I ran the command "bjam --build-dir=build-boost --toolset=gcc stage --with-<library name>" (eg. --with-file_system, --with-thread and etc).
I'm able to build most of the libraries except function_types, mpi, serialization and wave and python.
I'm hoping someone on this list can shed some light on my issue.
For serialization, I received the following errors
$ bjam --build-dir=build-boost --toolset=gcc stage --with-serialization
libs\config\test\Jamfile.v2:17: in modules.load
rule run unknown in module Jamfile</c:/mingw/libraries/boost-1.35/libs/config/test>.
c:/mingw/libraries/boost-1.35/tools/build/v2/build\project.jam:307: in load-jamfile
c:/mingw/libraries/boost-1.35/tools/build/v2/build\project.jam:63: in load
c:/mingw/libraries/boost-1.35/tools/build/v2/build\project.jam:167: in project.find
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:354: in find-really
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:408: in object(project-target)@79.find
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:827: in resolve-reference
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:843: in targets.generate-from-reference
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1129: in generate-dependencies
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1176: in object(typed-target)@84.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:742: in generate-really
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:715: in object(main-target)@147.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:254: in object(project-target)@79.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:858: in targets.generate-from-reference
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1129: in generate-dependencies
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1179: in object(install-target-class)@70.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:742: in generate-really
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:715: in object(main-target)@128.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:858: in targets.generate-from-reference
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1129: in generate-dependencies
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1179: in object(alias-target-class)@76.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:742: in generate-really
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:715: in object(main-target)@132.generate
c:/mingw/libraries/boost-1.35/tools/build/v2\build-system.jam:658: in load
c:\mingw\libraries\boost-1.35\tools\build\v2/kernel\modules.jam:267: in import
c:\mingw\libraries\boost-1.35\tools\build\v2/kernel/bootstrap.jam:132: in boost-build
c:\mingw\libraries\boost-1.35\boost-build.jam:11: in module scope
For function_types, I received the following errors
$ bjam --build-dir=build-boost --toolset=gcc stage --with-function_types
warning: Unable to construct ./stage-unversioned
...found 1 target...
For mpi, I recevied the following errors after I modified "user-config.jam" in "tools/build/v2/user-config.jam"
$ bjam --build-dir=build-boost --toolset=gcc stage --with-mpi
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
MPI auto-detection failed: unknown wrapper compiler mpic++
Please report this error to the Boost mailing list: http://www.boost.org
You will need to manually configure MPI support.
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.
warning: Unable to construct ./stage-unversioned
...found 1 target...
For wave, I received the following errors
$ bjam --build-dir=build-boost --toolset=gcc stage --with-wave
error: No best alternative for libs/thread/build/thread_sources
next alternative: required properties: <threadapi>win32 <threading>multi
not matched
next alternative: required properties: <threadapi>pthread <threading>multi
not matched
c:/mingw/libraries/boost-1.35/tools/build/v2/build\generators.jam:859: in try-one-generator-really
*** argument error
* rule object(gcc-linking-generator)@33.run ( project name ? : property-set : sources + )
* called with: ( object(project-target)@344 boost_thread : object(property-set)@367 : )
* missing argument sources
c:/mingw/libraries/boost-1.35/tools/build/v2/tools\gcc.jam:405:see definition of rule 'run' being called
c:/mingw/libraries/boost-1.35/tools/build/v2/build\generators.jam:920: in try-one-generator
c:/mingw/libraries/boost-1.35/tools/build/v2/build\generators.jam:1131: in construct-really
c:/mingw/libraries/boost-1.35/tools/build/v2/build\generators.jam:1204: in generators.construct
c:/mingw/libraries/boost-1.35/tools/build/v2/tools\builtin.jam:496: in object(lib-generator)@5.run
c:/mingw/libraries/boost-1.35/tools/build/v2/build\generators.jam:859: in try-one-generator-really
c:/mingw/libraries/boost-1.35/tools/build/v2/build\generators.jam:920: in try-one-generator
c:/mingw/libraries/boost-1.35/tools/build/v2/build\generators.jam:1131: in construct-really
c:/mingw/libraries/boost-1.35/tools/build/v2/build\generators.jam:1204: in generators.construct
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1368: in construct
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1206: in object(typed-target)@360.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:742: in generate-really
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:715: in object(main-target)@362.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:858: in targets.generate-from-reference
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1129: in generate-dependencies
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1179: in object(typed-target)@82.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:742: in generate-really
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:715: in object(main-target)@159.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:254: in object(project-target)@79.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:858: in targets.generate-from-reference
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1129: in generate-dependencies
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1179: in object(install-target-class)@70.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:742: in generate-really
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:715: in object(main-target)@140.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:858: in targets.generate-from-reference
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1129: in generate-dependencies
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:1179: in object(alias-target-class)@76.generate
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:742: in generate-really
c:/mingw/libraries/boost-1.35/tools/build/v2/build\targets.jam:715: in object(main-target)@144.generate
c:/mingw/libraries/boost-1.35/tools/build/v2\build-system.jam:658: in load
c:\mingw\libraries\boost-1.35\tools\build\v2/kernel\modules.jam:267: in import
c:\mingw\libraries\boost-1.35\tools\build\v2/kernel/bootstrap.jam:132: in boost-build
c:\mingw\libraries\boost-1.35\boost-build.jam:11: in module scope
Thanks!!
David