Boost logo

Boost-Build :

Subject: [Boost-build] feature treated as a subfeature
From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2008-09-08 16:21:18


When building on my Linux system, with the sun-5.9 compilers, I try
to use the stdlib=sun-stlport feature (defined in sun.jam). I get
this error from the build system.

bjam sun-5.9 stdlib=sun-stlport

/var/scratch/boost/tools/build/v2/build/feature.jam:466: in validate-
value-string from module feature
error: "sun" is not a known value of feature <stdlib>
error: legal values: "native" "sun-stlport" "stlport"
/var/scratch/boost/tools/build/v2/build/feature.jam:344: in expand-
subfeatures-aux from module feature
/var/scratch/boost/tools/build/v2/build/feature.jam:404: in expand-
subfeatures from module feature
/var/scratch/boost/tools/build/v2/build/feature.jam:831: in
feature.expand from module feature
/var/scratch/boost/tools/build/v2/build/property-set.jam:173: in
object(property-set)@424.expand from module object(property-set)@424
/var/scratch/boost/tools/build/v2/build/targets.jam:732: in object
(main-target)@9258.generate from module object(main-target)@9258
/var/scratch/boost/tools/build/v2/build/targets.jam:257: in object
(project-target)@427.generate from module object(project-target)@427
/var/scratch/boost/tools/build/v2/build/targets.jam:257: in object
(project-target)@418.generate from module object(project-target)@418
/var/scratch/boost/tools/build/v2/build-system.jam:682: in load from
module build-system
/var/scratch/boost/tools/build/v2/kernel/modules.jam:283: in import
from module modules
/var/scratch/boost/tools/build/v2/kernel/bootstrap.jam:128: in boost-
build from module
/var/scratch/boost/boost-build.jam:17: in module scope from module

Note that the problem is not fixed with quoting in the shell, and
that the build system does recognize sun-stlport as a legal value for
the <stdlib> feature. Is this a known bug or is there any easy
workaround for this? It looks like we may need to add some extra
logic to feature.jam to handle this?

-- Noel Belcourt

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at