From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-04-11 02:03:22
On Monday 10 April 2006 19:50, Doug Gregor wrote:
> Hello all,
> I am running into some trouble with the BBv2 Sun toolset. My user-
> config.jam looks like this:
> using sun
> : 5.8
> : /opt/sunstudio11/SUNWspro/bin/CC
> When I run bjam --v2 in libs/function/test, I get the following error:
> feature.jam:557: in feature.subfeature from module feature
> error: "version" already declared as a subfeature of "<toolset>"
> specific to sun
> Now, if I take the "5.8" out of user-config.jam, everything seems to
> work fine. The problem seems to be this line near the beginning of
> feature.subfeature toolset sun : version ;
> At the risk of sounding foolish, can we just take out this line?
That's exactly the right fix. As a bit of background, long time ago all
toolsets had to declare 'version' subfeatures on their own. Time passed, and
new 'common.check-init-parameters' function was added that declared
subfeatures automatically. Apparantly, the sun toolset was not fully
transitioned to use the new mechanism.
Fixed now on trunk and branch. Thanks for report and suggested fix!
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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