#985 closed Bugs (fixed)
Free features don't work when building boost
| Reported by: | 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 , 15 years ago
| Component: | Building Boost → build | 
|---|---|
| Owner: | set to | 
comment:2 by , 15 years ago
| Summary: | can't use bjam to disable specific VC warning → Free features don't work when building boost | 
|---|
follow-ups: 4 6 comment:3 by , 15 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
comment:4 by , 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 , 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.
comment:6 by , 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.


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