Boost logo

Boost-Build :

Subject: [Boost-build] Can not parse compile flags on to other jam file
From: Bo Jensen (jensen.bo_at_[hidden])
Date: 2011-03-28 11:44:04


In another thread this problem appeared, but I never got it to work :

    <library>../../../external/boost/libs/chrono/build//<link>static/<cxxflags>-fPIC
     <library>../../../external/boost/libs/serialization/build//<link>static/<cxxflags>-fPIC

First one with chrono works fine but serialization and other libraries
fails when forcing compiler flags :

/home/bj/sulum/external/boost/tools/build/v2/build/virtual-target.jam:1079:
in virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target:
<p/home/bj/sulum/external/boost/bin.v2/libs/serialization/build/intel-linux/release/address-model-32/link-static/threading-multi>libboost_serialization.a
error: previous virtual target {
intel-linux%intel-linux.archive-libboost_serialization.a.STATIC_LIB {
intel-linux%intel-linux.compile.c++-basic_archive.o.OBJ {
basic_archive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_iarchive.o.OBJ {
basic_iarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_iserializer.o.OBJ {
basic_iserializer.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_oarchive.o.OBJ {
basic_oarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_oserializer.o.OBJ {
basic_oserializer.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_pointer_iserializer.o.OBJ {
basic_pointer_iserializer.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_pointer_oserializer.o.OBJ {
basic_pointer_oserializer.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_serializer_map.o.OBJ {
basic_serializer_map.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_text_iprimitive.o.OBJ {
basic_text_iprimitive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_text_oprimitive.o.OBJ {
basic_text_oprimitive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_xml_archive.o.OBJ {
basic_xml_archive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-binary_iarchive.o.OBJ {
binary_iarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-binary_oarchive.o.OBJ {
binary_oarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-extended_type_info.o.OBJ {
extended_type_info.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-extended_type_info_typeid.o.OBJ {
extended_type_info_typeid.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-extended_type_info_no_rtti.o.OBJ {
extended_type_info_no_rtti.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-polymorphic_iarchive.o.OBJ {
polymorphic_iarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-polymorphic_oarchive.o.OBJ {
polymorphic_oarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-stl_port.o.OBJ { stl_port.cpp.CPP
} } { intel-linux%intel-linux.compile.c++-text_iarchive.o.OBJ {
text_iarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-text_oarchive.o.OBJ {
text_oarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-void_cast.o.OBJ {
void_cast.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-archive_exception.o.OBJ {
archive_exception.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-xml_grammar.o.OBJ {
xml_grammar.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-xml_iarchive.o.OBJ {
xml_iarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-xml_oarchive.o.OBJ {
xml_oarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-xml_archive_exception.o.OBJ {
xml_archive_exception.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-shared_ptr_helper.o.OBJ {
shared_ptr_helper.cpp.CPP } } }
error: created from
/home/bj/sulum/external/boost/libs/serialization/build/boost_serialization
error: another virtual target {
intel-linux%intel-linux.archive-libboost_serialization.a.STATIC_LIB {
intel-linux%intel-linux.compile.c++-basic_archive.o.OBJ {
basic_archive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_iarchive.o.OBJ {
basic_iarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_iserializer.o.OBJ {
basic_iserializer.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_oarchive.o.OBJ {
basic_oarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_oserializer.o.OBJ {
basic_oserializer.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_pointer_iserializer.o.OBJ {
basic_pointer_iserializer.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_pointer_oserializer.o.OBJ {
basic_pointer_oserializer.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_serializer_map.o.OBJ {
basic_serializer_map.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_text_iprimitive.o.OBJ {
basic_text_iprimitive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_text_oprimitive.o.OBJ {
basic_text_oprimitive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-basic_xml_archive.o.OBJ {
basic_xml_archive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-binary_iarchive.o.OBJ {
binary_iarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-binary_oarchive.o.OBJ {
binary_oarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-extended_type_info.o.OBJ {
extended_type_info.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-extended_type_info_typeid.o.OBJ {
extended_type_info_typeid.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-extended_type_info_no_rtti.o.OBJ {
extended_type_info_no_rtti.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-polymorphic_iarchive.o.OBJ {
polymorphic_iarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-polymorphic_oarchive.o.OBJ {
polymorphic_oarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-stl_port.o.OBJ { stl_port.cpp.CPP
} } { intel-linux%intel-linux.compile.c++-text_iarchive.o.OBJ {
text_iarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-text_oarchive.o.OBJ {
text_oarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-void_cast.o.OBJ {
void_cast.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-archive_exception.o.OBJ {
archive_exception.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-xml_grammar.o.OBJ {
xml_grammar.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-xml_iarchive.o.OBJ {
xml_iarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-xml_oarchive.o.OBJ {
xml_oarchive.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-xml_archive_exception.o.OBJ {
xml_archive_exception.cpp.CPP } } {
intel-linux%intel-linux.compile.c++-shared_ptr_helper.o.OBJ {
shared_ptr_helper.cpp.CPP } } }
error: created from
/home/bj/sulum/external/boost/libs/serialization/build/boost_serialization
error: added properties: <cxxflags>-fPIC
error: removed properties: none

Most likely very simple, but a show-stopper for me, any help ?

Thanks,
Bo


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