Boost logo

Boost-Build :

Subject: Re: [Boost-build] Error registering /boost project id from user-config.jam
From: Jürgen Hunold (jhunold_at_[hidden])
Date: 2012-08-13 14:03:36

Hi Jurko,

On Monday, 13. August 2012 14:23:32 Jurko Gospodnetić wrote:
> Hi Jürgen.
> First, this really should have gone to a separate thread...

Yes and I should have posted this issue last week. Sorry, but this was the
first sign of anyone else getting problems.


> I can not seem to reproduce this on my end.

I've attached:
- reduced user-config.jam
- build.bat used to build Boost. This is a stripped down version of my
original script used to set set common build options and such...
> Could you run this again with the latest trunk - I just added some
> additional information in that error message (the module names in question).

see build.err for a complete run.

> 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.

I can try to do that tomorrow.

> Btw. how is your gcc toolset configured on Windows?

See user-config.jam. But this also happens with msvc.

But I'm not sure when the problems began as I'm not building Boost on Windows
daily like on Linux.

But many thanks for your work on Boost.Build.



* Dipl.-Math. Jürgen Hunold  ! 
* voice: ++49 4257 300       ! Fährstraße 1
* fax  : ++49 4257 300       ! 31609 Balge/Sebbenhausen
*             ! Germany

import feature ;

import os ;

feature.set-default threading : multi ;

local BOOST_ROOT = [ os.environ BOOST_ROOT ] ;

BOOST_ROOT ?= "e:/src/devel/boost" ;

use-project /boost : $(BOOST_ROOT) ;

using msvc : 9.0 ;

using gcc : 4.7 : e:/mingw64/bin/g++

         : # options


           <cxxflags>-Wno-ignored-qualifiers # Boost.Test return values





project user-config

   : requirements








     <toolset>msvc,<variant>develop:<cxxflags>-wd4996 # deprecated warning




E:\src\devel\boost>call bootstrap.bat

Building Boost.Build engine

Bootstrapping is done. To build, run:



To adjust configuration, edit 'project-config.jam'.

Further information:

    - Command line help:

    .\b2 --help


    - Getting started guide:


    - Boost.Build documentation:

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: Module: 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: Module: Jamfile</E:/src/devel/boost>

error: File: E:\src\devel\boost\Jamroot

error: Location: /E:/src/devel/boost

call bootstrap.bat

if exist "%USERPROFILE%\user-config.jam" del project-config.jam



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at