Boost logo

Boost-Build :

Subject: Re: [Boost-build] Errors when using target references to boost libraries (was: Re: Boost-build Digest, Vol 49, Issue 7)
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2009-09-16 02:57:45


[Please try to avoid making replies to digests]

Bob Walters wrote:
> On Mon, Sep 7, 2009 at 12:00 PM,
> <boost-build-request_at_[hidden]> wrote:
>
> Johan Nilsson wrote:
>> Strange. The following "nonsense project" works for me verbatim using
>> msvc-8.0 with Boost/Boost.Build/Boost.Jam combo from both 1.34.1 and
>> current trunk:
>> What is the actual value of BOOST_ROOT in environment?
>
> I tried building your project with my environments.

I guess it didn't succeed?

> This must be something associated with my specific environment:
>
> I'm using msvc 9.0, which I doubt is significant here.
> BOOST_ROOT is C:\c++\boost_1_39_boostpro.
> The contents of the BOOST_ROOT is an installation of the BoostPro
> distribution of boost, installed using their installer.
>
> Here's the error from the build attempt:
> -----
> C:\c++\boost_1_39_boostpro\bin\bjam -q toolset=msvc variant=debug
> The system cannot find the path specified.
> The system cannot find the path specified.
> C:/C++/boost_1_39_boostpro/tools/build/v2/build\project.jam:731: in

[snip]

> load
> C:\C++\boost_1_39_boostpro\tools\build\v2/kernel\modules.jam:283: in
> import
> C:\C++\boost_1_39_boostpro\tools\build\v2\kernel\bootstrap.jam:138:
> in
> boost-build
> C:\C++\boost_1_39_boostpro\boost-build.jam:16: in module scope
>
> error: Attempt to redeclare already existing project id '/boost'
> -----

What's your working directory?

>
> I'm assuming that the first two "cannot find" errors are due to my
> lack of a user-config or system-config file in the usual places.

IIRC, those errors are more explicit.

>
> Thinking it might be something specific with the boostpro
> distribution, I also have a source install of boost_1_39 which I built
> myself, using a downloaded binary of bjam. (boost-jam-3.1.17-1-ntx86).
>
> That BOOST_ROOT=c:\c++\boost_1_39_0, and it was built by running:
> bjam toolset=msvc --with-system --with-serialization --with-thread
> --with-filesystem --with-date_time --build-type=complete variant=debug
> stage
>
> When I try to build using that distribution, I get:
> -----
> C:\c++\boost-jam-3.1.17-1-ntx86\bjam -q toolset=msvc variant=debug
> The system cannot find the path specified.
> The system cannot find the path specified.
[snpi]

> scope
>
> error: Attempt to redeclare already existing project id '/boost'
> -----
>
> Same problem, it seems.

Yeah.

>
> Appreciate the help / any ideas.

Just a wild guess; what if you move the Boost installation to another path,
without the "++" part. Or, instead of moving, you could try to use SUBST to
alias "C:\c++" to "Z:" and set BOOST_ROOT to "Z:\" instead.

Also seeing some differences in casing ("C:\c++" and "C:\C++"), which
_shouldn't_ make any difference under Windows.

/ Johan


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