Opened 15 years ago

Closed 15 years ago

Last modified 12 years ago

#985 closed Bugs (fixed)

Free features don't work when building boost

Reported by: Yuval Ronen <ronen_yuval@…> Owned by: Vladimir Prus
Milestone: Component: build
Version: Boost 1.34.0 Severity: Problem
Keywords: Cc:

Description

I'm using 'bjam --toolset=msvc-8.0 --without-python cxxflags=/wd4251 stage' to compile Boost, and get the following error:

D:/Projects/Boost/boost_1_34_0/tools/build/v2/build\property.jam:282: in validate1 from module property error: Invalid property '<cxxflags>': No value specified for feature 'cxxflags'. D:/Projects/Boost/boost_1_34_0/tools/build/v2/build\property.jam:290: in property.validate from module property D:/Projects/Boost/boost_1_34_0/tools/build/v2/build\build-request.jam:185: in convert-command-line-element from module build-request D:/Projects/Boost/boost_1_34_0/tools/build/v2/build\build-request.jam:143: in build-request.from-command-line from module build-request D:/Projects/Boost/boost_1_34_0/tools/build/v2\build-system.jam:265: in load from module build-system D:\Projects\Boost\boost_1_34_0\tools\build\v2/kernel\modules.jam:261: in import from module modules D:\Projects\Boost\boost_1_34_0\tools\build\v2/kernel/bootstrap.jam:132: in boost-build from module D:\Projects\Boost\boost_1_34_0\boost-build.jam:9: in module scope from module

I then changed the '/wd4251' to '-wd4251' and then I got no errors, but the warning was not disabled.

Change History (6)

comment:1 by René Rivera, 15 years ago

Component: Building Boostbuild
Owner: set to Vladimir Prus

comment:2 by Vladimir Prus, 15 years ago

Summary: can't use bjam to disable specific VC warningFree features don't work when building boost

Likewise, define=XXX does not work at top level.

comment:3 by Vladimir Prus, 15 years ago

Resolution: fixed
Status: newclosed

(In [39104]) Make free features on the command line affect all targets, not just directly requested ones.

Fixes #985.

in reply to:  3 comment:4 by alex_baskakov@…, 15 years ago

Replying to vladimir_prus:

(In [39104]) Make free features on the command line affect all targets, not just directly requested ones.

Fixes #985.

It doesn't work in 1.34.1 still. Where can I obtain this fix?

comment:5 by Vladimir Prus, 15 years ago

The change is on SVN trunk. You can use http://svn.boost.org/trac/boost/changeset/39104 to download the diff and apply it locally.

in reply to:  3 comment:6 by alleonik@…, 12 years ago

Replying to vladimir_prus:

(In [39104]) Make free features on the command line affect all targets, not just directly requested ones.

Fixes #985.

This fix is not quite correct. Refine the property-set needs to be done before checks for alredy built otherwise this check will never work (in case with free features in command line) because it checks property-set without refine (without free features from command line).

I already wrote about it twice (http://article.gmane.org/gmane.comp.lib.boost.build/23390 and http://article.gmane.org/gmane.comp.lib.boost.build/23419), but received no response.

Note: See TracTickets for help on using tickets.