Boost logo

Boost-Build :

Subject: [Boost-build] Duplicate feature declaration
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2017-05-26 21:17:25


Hi,

The vectorize feature is declared in two toolsets:

./tools/clang-darwin.jam:feature vectorize : off on full ;
./tools/intel-darwin.jam:feature vectorize : off on full ;

and doesn’t cause a problem until my user-config.jam attempts to use both toolsets:

using mpi ;

using clang : clang++ : : <cxxflags>-std=c++11 ;

using darwin : g++ : : <cxxflags>-std=c++11 ;

using intel-darwin : icpc : : <cxxflags>-std=c++11 ;

Anyone know if there’s any way to make this work without error?

— Noel Belcourt

s988329:graph kbelco$ ../../b2
/Users/kbelco/Projects/boost/tools/build/src/build/feature.jam:140: in feature from module feature
error: feature already defined:
error: in feature declaration:
error: feature "vectorize" : "off" "on" "full"
/Users/kbelco/Projects/boost/tools/build/src/tools/intel-darwin.jam:45: in load from module intel-darwin
/Users/kbelco/Projects/boost/tools/build/src/kernel/modules.jam:295: in import from module modules
/Users/kbelco/Projects/boost/tools/build/src/build/toolset.jam:41: in toolset.using from module toolset
/Users/kbelco/Projects/boost/tools/build/src/build/project.jam:1052: in using from module project-rules
/Users/kbelco/user-config.jam:8: in modules.load from module user-config
/Users/kbelco/Projects/boost/tools/build/src/build-system.jam:249: in load-config from module build-system
/Users/kbelco/Projects/boost/tools/build/src/build-system.jam:389: in load-configuration-files from module build-system
/Users/kbelco/Projects/boost/tools/build/src/build-system.jam:524: in load from module build-system
/Users/kbelco/Projects/boost/tools/build/src/kernel/modules.jam:295: in import from module modules
/Users/kbelco/Projects/boost/tools/build/src/kernel/bootstrap.jam:139: in boost-build from module
/Users/kbelco/Projects/boost/boost-build.jam:17: in module scope from module



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