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.

Anyway,

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

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold  ! 
* voice: ++49 4257 300       ! Fährstraße 1
* fax  : ++49 4257 300       ! 31609 Balge/Sebbenhausen
* jhunold_at_gmx.eu             ! 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>-fdiagnostics-show-option

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

           <c++-template-depth>512

           <linkflags>-static-libgcc

           <linkflags>-static-libstdc++

        ;

project user-config

   : requirements

     <preserve-test-targets>on

     <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS

     <toolset>msvc:<define>_CRT_NONSTDC_NO_WARNINGS

     <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS

     <toolset>msvc,<variant>debug:<define>_HAS_ITERATOR_DEBUGGING=0

     <toolset>msvc,<variant>debug:<define>_SECURE_SCL=1

     <toolset>msvc,<variant>release:<define>_SECURE_SCL=0

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

     <define>BOOST_ALL_NO_LIB

     <toolset>gcc,<address-model>64:<define>__USE_ISOC99

   ;


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

Building Boost.Build engine

Bootstrapping is done. To build, run:

    .\b2

    

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

Further information:

    - Command line help:

    .\b2 --help

     

    - Getting started guide:

    http://boost.org/more/getting_started/windows.html

     

    - Boost.Build documentation:

    http://www.boost.org/boost-build2/doc/html/index.html

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

set PATH=%BATCH_PATH%;%PATH%

b2


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