Duplicate feature declaration

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Duplicate feature declaration

Boost - Build mailing list
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


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Duplicate feature declaration

Boost - Build mailing list
AMDG

On 05/26/2017 03:17 PM, Belcourt, Kenneth via Boost-build wrote:

> 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?
>

  The only way is to move the definition to a
common location.  (probably builtin.jam where
the other features that are shared between
multiple toolsets are defined.)

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Loading...