Boost logo

Boost-Build :

Subject: [Boost-build] Error registering /boost project id from user-config.jam
From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2012-08-13 08:23:32


   Hi Jürgen.

   First, this really should have gone to a separate thread...

>> All project id's live in a single namespace and I can not think of a
>> reason why anyone would absolutely need to change one id to map to a
>> different project than it already does. Any target references using that
>> project id would then be in danger of being interpretted incorrectly.
>>
>> On the other hand, if you do see a reason why the old behaviour was
>> 'desireable', I'll gladly update the code as needed.
>
> I'm having problems on Windows:
>
> Let BOOST_ROOT=e:\src\devel\boost
>
> my user-config.jam states:
>
> local BOOST_ROOT = [ os.environ BOOST_ROOT ] ;
> BOOST_ROOT ?= "e:/src/devel/boost" ;
> use-project /boost : $(BOOST_ROOT) ;
>
> And then I try to compile boost and get:
>
> e:\src\devel\boost>b2 gcc
> error: at E:\src\devel\boost\Jamroot:158
> error: Attempt to redeclare already registered project id '/boost'.
> error: Original project:
> error: Name: Jamfile</e:/src/devel/boost>
> error: Main id: /boost
> error: File: E:\src\devel\boost\Jamroot
> error: Location: /E:/src/devel/boost
> error: New project:
> error: File: E:\src\devel\boost\Jamroot
> error: Location: /E:/src/devel/boost
>
> I'm using this setup for a long time and the same setting (with another
> default path, of course) continues to work on my Linux machine.
>
> Any ideas?

   I can not seem to reproduce this on my end.

   Could you run this again with the latest trunk - I just added some
additional information in that error message (the module names in question).

   This error should be reported if you attempt to register a project id
for two different projects. In case you repeat a project id registration
for the same project - the whole operation should just silently do
nothing. You can see the related code in the register-id rule in
build/project.jam if you want to do some debugging on your own.

   Btw. how is your gcc toolset configured on Windows?

   Best regards,
     Jurko Gospodnetić


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