Boost logo

Boost-Build :

Subject: Re: [Boost-build] Boost build error in build-system.jam
From: Dmitry Timoshenko (dimentiy2k_at_[hidden])
Date: 2011-04-10 17:16:59


>
> For starters:
>
> - What you your exact build command?

bjam install toolset=msvc variant=debug,debug-ssl,release,release-ssl
link=static,shared threading=multi runtime-link=shared --debug-loading

> - In what directory is it run? What is the contents of that directory?

The bjam process is actually executed in
D:/work/libs/1stlibs/unicomm/build

You may see the content of the directory and scripts if you download
this: http://libunicomm.org/files/download/sources/unicomm-1.00a.zip.

I also have
BOOST_BUILD_PATH=D:\work\extra\boost-build
set.

and
Boost 1.41 located here: D:/work/libs/3rdlibs/boost/boost_1_41_0
Boost build path: D:/work/extra/boost-build
The path 'D:/work/extra/boost-build' is also added to the PATH variable.
bjam is located in the root of D:/work/extra/boost-build.

> - What is the output if you pass extra --debug-loading option?

--- HERE IT IS ---
D:\work\libs\1stlibs\unicomm>build_all_configurations.cmd --debug-loading

/////////////////////////////////////////////////////////////////////////
Start prepearing environment to build unicomm...
toolset=msvc variant=debug,debug-ssl,release,release-ssl
link=static,shared threading=multi runtime-link=shared --debug-loading

Environment is properly set...

Boost: D:\work\libs\3rdlibs\boost\boost_1_41_0\
Smart: D:\work\libs\1stlibs\smart\
OpenSSL: D:\work\libs\3rdlibs\openssl\openssl-0.9.8m-vc80\

Ready to build unicomm...

Initializing project 'test-config'
Assigned project target object(project-target)@10 to 'test-config'
Initializing project 'site-config'
Assigned project target object(project-target)@12 to 'site-config'
Initializing project 'user-config'
Assigned project target object(project-target)@19 to 'user-config'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Initializing project 'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0>'
Assigned project target object(project-target)@21 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0>'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/date_time/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/date_time/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@80 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/date_time/build>'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/filesystem/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/filesystem/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@109 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/filesystem/build>'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/graph/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/graph/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@131 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/graph/build>'
Initializing project 'mpi'
Assigned project target object(project-target)@142 to 'mpi'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/graph_parallel/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/graph_parallel/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@169 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/graph_parallel/build>
'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/iostreams/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/iostreams/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@191 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/iostreams/build>'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/math/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/math/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@206 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/math/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/mpi/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/mpi/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@231 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/mpi/build>'
Initializing project 'python'
Assigned project target object(project-target)@233 to 'python'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/program_options/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/program_options/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@256 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/program_options/build
>'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/python/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/python/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@271 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/python/build>'
WARNING: No python installation configured and autoconfiguration
          failed. See http://www.boost.org/libs/python/doc/building.html
          for configuration instructions or pass --without-python to
          suppress this message and silently skip all Boost.Python targets
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/regex/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/regex/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@311 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/regex/build>'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/serialization/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/serialization/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@329 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/serialization/build>'

Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/signals/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/signals/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@355 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/signals/build>'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/system/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/system/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@370 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/system/build>'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/test/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/test/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/test'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/test>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@387 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/test>'
Assigned project target object(project-target)@388 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/test/build>'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/thread/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/thread/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@422 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/thread/build>'
Loading Jamfile at
'/D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/wave/build'
Initializing project
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/wave/build>'
Loading Jamfile at '/D:/work/libs/3rdlibs/boost/boost_1_41_0'
Assigned project target object(project-target)@440 to
'Jamfile</D:/work/libs/3rdlibs/boost/boost_1_41_0/libs/wave/build>'
Loading Jamfile at '/D:/work/libs/1stlibs/smart'
Initializing project 'Jamfile</D:/work/libs/1stlibs/smart>'
Assigned project target object(project-target)@480 to
'Jamfile</D:/work/libs/1stlibs/smart>'
Loading Jamfile at '.'
Initializing project 'Jamfile</D:/work/libs/1stlibs/unicomm/build>'
Loading Jamfile at '..'
Initializing project 'Jamfile</D:/work/libs/1stlibs/unicomm>'
Assigned project target object(project-target)@513 to
'Jamfile</D:/work/libs/1stlibs/unicomm>'
Assigned project target object(project-target)@522 to
'Jamfile</D:/work/libs/1stlibs/unicomm/build>'
Initializing project 'Jamfile</D:/work/libs/1stlibs/unicomm/build>'
Loading Jamfile at '/D:/work/libs/1stlibs/unicomm'
Loading Jamfile at '.'
D:/work/extra/boost-build\build-system.jam:721: in load
*** argument error
* rule project.load ( jamfile-location )
* called with: ( )
* missing argument jamfile-location
D:/work/extra/boost-build/build\project.jam:53:see definition of rule
'load' being called
D:\work\extra\boost-build\kernel\modules.jam:283: in import
D:\work\extra\boost-build\kernel\bootstrap.jam:142: in boost-build
D:\work\extra\boost-build\boost-build.jam:8: in module scope

Unicomm building finished: ERRORLEVEL = '0'
--- OUT END ---

>> The reference I'm talking about is located here
>> http://www.boost.org/boost-build2/ and points here
>> http://prdownloads.sourceforge.net/boost/boost-build-2.0-m12.zip
>
> I am confused what you mean by "reference 3.1.18 here". 2.0-M12 is
> the last standalone release of Boost.Build so far. It is unfortunately,
> old, but we don't have a newer one. When a new one is available,
> scheduled for this April, you will see a new link there. In the
> meantime, nightly built version is recommended for newer Boost.

I mean on the boost.build's official home page
(http://www.boost.org/boost-build2/) in the top right corner I see block
named 'Quick access'. The first line in the block is 'Download: [zip] ,
[tar.bz2]'.
Those links point to
http://prdownloads.sourceforge.net/boost/boost-build-2.0-m12.zip and to
http://prdownloads.sourceforge.net/boost/boost-build-2.0-m12.tar.bz2
respectively. Those archives contain boost build version that produces
following output:

D:\work\extra\boost-build_2.0-m12>bjam --help
Boost.Build V2 (Milestone 12)
Boost.Jam 03.1.18

So, the boost 1.45 already contain 3.1.19. Why does this link
(http://prdownloads.sourceforge.net/boost/boost-build-2.0-m12.zip) on
official page point to older version? That is the question.

Boost build taken from boost 1.45 package prints this:

D:\work\extra\boost-build_boost_1_45>bjam --help
Boost.Build V2 (Milestone 12)
Boost.Jam 03.1.19

Nightly Boost build outs this:

D:\work\extra\boost-build_nightly>bjam --help
Boost.Build 2011.04-svn

Thank you.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk