Boost logo

Boost-Build :

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
> link=static,shared
>
> 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:
> <pC:\install\lib>boost_filesystem-vc71-mt-gd-1_35.lib
...
> 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:

   $(BOOST_ROOT)/tools/wave/build/Jamfile.v2
   $(BOOST_ROOT)/libs/wave/build/Jamfile.v2

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.

NOTE: Doing

   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):

[1] This problem isn't being hit by the regression tests because they are not
doing a:
   bjam install
(I have confirmed you don't need the "debug release" part).

[2] 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).

[3] 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.

HTH,
- Reece
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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