Boost logo

Boost-Build :

Subject: [Boost-build] Defining new variant
From: Dieter Van de Walle (dieter.vandewalle_at_[hidden])
Date: 2010-11-10 10:46:09


Hi,

I am just trying to create a new variant with some extra <cflags> enabled.
I just add the line:

variant any_variant_name : debug :
        <cflags>some_flag ;

I keep getting the following error:

/usr/share/boost-build/build/feature.jam:395: in extend-feature from module feature
error: any_variant_name is already associated with the "<variant>" feature
/usr/share/boost-build/build/feature.jam:568: in feature.extend from module feature
/usr/share/boost-build/tools/builtin.jam:321: in variant from module builtin
/workspace/path/common.jam:58: in modules.load from module Jamfile</project/path>
/usr/share/boost-build/build/project.jam:312: in load-jamfile from module project
/usr/share/boost-build/build/project.jam:68: in load from module project
/usr/share/boost-build/build/project.jam:170: in project.find from module project
/usr/share/boost-build/build/targets.jam:356: in find-really from module object(project-target)@42
/usr/share/boost-build/build/targets.jam:410: in object(project-target)@42.find from module object(project-target)@42
/usr/share/boost-build/build/targets.jam:861: in resolve-reference from module targets
/usr/share/boost-build/build/targets.jam:880: in targets.generate-from-reference from module targets
/usr/share/boost-build/build/targets.jam:1170: in generate-dependencies from module object(typed-target)@64
/usr/share/boost-build/build/targets.jam:1221: in object(typed-target)@64.generate from module object(typed-target)@64
/usr/share/boost-build/build/targets.jam:765: in generate-really from module object(main-target)@89
/usr/share/boost-build/build/targets.jam:738: in object(main-target)@89.generate from module object(main-target)@89
/usr/share/boost-build/build/targets.jam:255: in object(project-target)@42.generate from module object(project-target)@42
/usr/share/boost-build/build-system.jam:414: in load from module build-system
/usr/share/boost-build/kernel/modules.jam:261: in import from module modules
/usr/share/boost-build/kernel/bootstrap.jam:132: in boost-build from module
/usr/share/boost-build/boost-build.jam:1: in module scope from module

I have absolutely no clue.

At this opportunity I would again like to express my frustration at the fact that the
best C++ buildtool available has the most unaccessible scripting language ever...
Absolutely nothing I try to do with the jam language seems to succeed ...

Dieter

Newtec’s MENOS system awarded IBC Innovation Award for Content Delivery & the IBC Judges’ Award Newtec’s FlexACM awarded 2009 Teleport Technology of the Year by WTA *** e-mail confidentiality footer *** This message and any attachments thereto are confidential. They may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore is in no way liable for any errors or omissions in the content of this message, which may arise as a result of e-mail transmission. If verification is required, please request a hard copy.


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