Boost logo

Boost-Build :

Subject: Re: [Boost-build] Trouble building Boost 1.40.0
From: Ian Emmons (iemmons_at_[hidden])
Date: 2009-10-14 14:13:39


Thanks for the pointer, that helps. A few items of note and further

(1) On Windows (with MSVC 7.1, 8, and 9), a nearly identical build
command, without the layout option, works just fine.

(2) According to bjam --help (run from the Boost directory),
"versioned" is the default layout. Apparently this is just a
documentation error, though, because when I specified "versioned"
explicitly, the error I had went away on both Linux and Macintosh.

(3) On Linux, all is now well.

(4) On Macintosh, your suggestion solves my original error, but gives
me new trouble because I'm trying to create universal binaries under
Snow Leopard. But since I see another thread that covers that issue,
there is no need to rehash it here.

So, bottom line: There is a minor documentation bug in the text
emitted by "bjam --help" regarding the default for the --layout option.



On Oct 13, 2009, at 10:36 PM, Steven Watanabe wrote:
> Ian Emmons wrote:
>> On both Macintosh (Snow Leopard) and Linux (Ubuntu 9.04), I am
>> unable to build Boost 1.40.0. FOr instance, on Macintosh, I have a
>> user-config consisting of the single line
>> using darwin ;
>> and an empty site-config.jam. The command I am issuing is this:
>> bjam -q --build-dir=darwin/build --stagedir=darwin/stage
>> variant=debug,release threading=multi link=shared
>> runtime-link=shared stage
>> The output I get is shown below. (I know that the first 12 lines
>> of warnings and notes are innocuous -- I've included them just for
>> completeness.)
>> <snip>
>> /Users/iemmons/dev/boost_1_40_0/tools/build/v2/build/virtual-
>> target.jam:1056: in virtual-target.register-actual-name from module
>> virtual-target
>> error: Duplicate name of actual target: <pdarwin/stage/
>> lib>libboost_date_time.dylib
> If you need to build multiple variants, you need to use either --
> layout=tagged or --layout=versioned.
> The default of --layout=system tries to give all variants of a
> library the same name.
> In Christ,
> Steven Watanabe

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