Boost logo

Boost-Build :

Subject: Re: [Boost-build] Issue with boost build
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2011-04-02 15:47:28


Dmitry Timoshenko wrote:

> Hello,
>
> I compile my library with
> Boost.Build V2 (Milestone 12)
> Boost.Jam 03.1.18
>
> I also used Boost 1.41.
>
> Everything was fine until I downloaded boost 1.45. Before build my
> library, I built boost using boost.build coming with the boost library.
>
> 1. When I start building my library I get this:
>
> --- CONSOLE OUT ---
> Environment is properly set...
>
> Boost: D:\work\libs\3rdlibs\boost\boost_1_45_0\
>
> configure.jam: No such file or directory
> D:\work\libs\3rdlibs\boost\boost_1_45_0\Jamroot:219: in modules.load
> rule configure.register-components unknown in module

1.45 needs newer Boost.Build that you have.

> This is the boost.build accessible through
> http://prdownloads.sourceforge.net/boost/boost-build-2.0-m12.zip

Yeah, that's too old.

> 2. I downloaded nightly build
> (http://www.boost.org/boost-build2/boost-build.zip) with version
> Boost.Build 2011.04-svn
>
> But in this case I get the following:
>
> --- CONSOLE OUT ---
> Environment is properly set...
>
> Boost: D:\work\libs\3rdlibs\boost\boost_1_45_0\
>
> D:/work/extra/boost-build\build-system.jam:722: 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

This is buffling. The code that build-system.jam:722 is:

    local first-project = [ $(targets[0]).project ] ;
    local first-project-root-location = [ $(first-project).get project-root ] ;
    local first-project-root-module = [ project.load $(first-project-root-location) ] ;

could you add:

        ECHO "Target " [ $(targets[0]).str ] ;
        ECHO "first-project" $(first-project) ;

after the first line and report what's the output? Do you have an easy way to reproduce
this problem?

- Volodya

-- 
Vladimir Prus
Mentor Graphics
+7 (812) 677-68-40

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