From: Reece Dunn (msclrhd_at_[hidden])
Date: 2006-06-19 13:53:05
Roland Schwarz wrote:
> After having glanced over the "build all variants" thread, I am inclined
> to believe in order to get a similar result as bbv1 I need:
> bjam --v2 msvc-7.1 install variant=debug,release threading=multi,single
> Under Linux this starts to compile, but on Windows gives me:
> Roland_at_SPEEDSNAIL:H:\Projects\boost\HEAD$ bjam --v2 msvc-7.1 install
> variant=debug,release threading=multi,single link=static,shared
> error: Duplicate name of actual target:
> error: added properties: <rtti>off
> error: removed properties: <rtti>on
> Nothing is built.
> Can anyone please tell me what I am still missing here?
Having simplified this to:
bjam --v2 msvc-7.1 install debug release
I tracked it down to Boost.Wave (not, as you would think, Boost.FileSystem)!
The workaround is to open the following files:
and comment out the line:
<toolset-msvc:version>7.1:<rtti>off # workaround for compiler bug
in each. I am not checking that into Boost, as the line was there for a reason.
bjam msvc-7.1 install rtti=on rtti=off
does not fix the problem.
There are a few things I don't quite understand, but here is what I suspect
(Volodya -- I don't know enough about this to produce a fix):
 This problem isn't being hit by the regression tests because they are not
(I have confirmed you don't need the "debug release" part).
 The <tag> rule -- used to calculate the names of the Boost DLLs -- is
being applied before the <rtti>off from Boost.Wave has been propagated
to Boost.FileSystem (hence the duplicate target with different properties).
 The install option is copying boost_filesystem-[tags].dll, whereas a
regular build isn't, which is invoking the <tag> rule and resulting in the
duplicate target error.
Express yourself instantly with MSN Messenger! Download today it's FREE!
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