Boost C++ Libraries: Ticket #3267: Duplicate name of actual target when building with python and mpi support but different optimization/debug options https://svn.boost.org/trac10/ticket/3267 <p> When I try to build boost with mpi and python but with "optimization=off debug-symbols=off" I get the following error: </p> <p> /home/tiziano/entwicklung/gentoo/ebuilds/boost_1_39_0/tools/build/v2/build/virtual-target.jam:1056: in virtual-target.register-actual-name from module virtual-target error: Duplicate name of actual target: &lt;pstage/lib&gt;libboost_serialization-gcc43-mt-1_39.so.1.39.0 error: previous virtual target { common%common.copy-libboost_serialization-gcc43-mt-1_39.so.1.39.0.SHARED_LIB { gcc%gcc.link.dll-libboost_serialization-gcc43-mt-1_39.so.1.39.0.SHARED_LIB { gcc%gcc.compile.c++-basic_archive.o.OBJ { basic_archive.cpp.CPP } } { gcc%gcc.compile.c++-basic_iarchive.o.OBJ { basic_iarchive.cpp.CPP } } { gcc%gcc.compile.c++-basic_iserializer.o.OBJ { basic_iserializer.cpp.CPP } } { gcc%gcc.compile.c++-basic_oarchive.o.OBJ { basic_oarchive.cpp.CPP } } { gcc%gcc.compile.c++-basic_oserializer.o.OBJ { basic_oserializer.cpp.CPP } } { gcc%gcc.compile.c++-basic_pointer_iserializer.o.OBJ { basic_pointer_iserializer.cpp.CPP } } { gcc%gcc.compile.c++-basic_pointer_oserializer.o.OBJ { basic_pointer_oserializer.cpp.CPP } } { gcc%gcc.compile.c++-basic_serializer_map.o.OBJ { basic_serializer_map.cpp.CPP } } { gcc%gcc.compile.c++-basic_text_iprimitive.o.OBJ { basic_text_iprimitive.cpp.CPP } } { gcc%gcc.compile.c++-basic_text_oprimitive.o.OBJ { basic_text_oprimitive.cpp.CPP } } { gcc%gcc.compile.c++-basic_xml_archive.o.OBJ { basic_xml_archive.cpp.CPP } } { gcc%gcc.compile.c++-binary_iarchive.o.OBJ { binary_iarchive.cpp.CPP } } { gcc%gcc.compile.c++-binary_oarchive.o.OBJ { binary_oarchive.cpp.CPP } } { gcc%gcc.compile.c++-extended_type_info.o.OBJ { extended_type_info.cpp.CPP } } { gcc%gcc.compile.c++-extended_type_info_typeid.o.OBJ { extended_type_info_typeid.cpp.CPP } } { gcc%gcc.compile.c++-extended_type_info_no_rtti.o.OBJ { extended_type_info_no_rtti.cpp.CPP } } { gcc%gcc.compile.c++-polymorphic_iarchive.o.OBJ { polymorphic_iarchive.cpp.CPP } } { gcc%gcc.compile.c++-polymorphic_oarchive.o.OBJ { polymorphic_oarchive.cpp.CPP } } { gcc%gcc.compile.c++-stl_port.o.OBJ { stl_port.cpp.CPP } } { gcc%gcc.compile.c++-text_iarchive.o.OBJ { text_iarchive.cpp.CPP } } { gcc%gcc.compile.c++-text_oarchive.o.OBJ { text_oarchive.cpp.CPP } } { gcc%gcc.compile.c++-void_cast.o.OBJ { void_cast.cpp.CPP } } { gcc%gcc.compile.c++-xml_grammar.o.OBJ { xml_grammar.cpp.CPP } } { gcc%gcc.compile.c++-xml_iarchive.o.OBJ { xml_iarchive.cpp.CPP } } { gcc%gcc.compile.c++-xml_oarchive.o.OBJ { xml_oarchive.cpp.CPP } } } } error: created from ./stage-proper error: another virtual target { common%common.copy-libboost_serialization-gcc43-mt-1_39.so.1.39.0.SHARED_LIB { gcc%gcc.link.dll-libboost_serialization-gcc43-mt-1_39.so.1.39.0.SHARED_LIB { gcc%gcc.compile.c++-basic_archive.o.OBJ { basic_archive.cpp.CPP } } { gcc%gcc.compile.c++-basic_iarchive.o.OBJ { basic_iarchive.cpp.CPP } } { gcc%gcc.compile.c++-basic_iserializer.o.OBJ { basic_iserializer.cpp.CPP } } { gcc%gcc.compile.c++-basic_oarchive.o.OBJ { basic_oarchive.cpp.CPP } } { gcc%gcc.compile.c++-basic_oserializer.o.OBJ { basic_oserializer.cpp.CPP } } { gcc%gcc.compile.c++-basic_pointer_iserializer.o.OBJ { basic_pointer_iserializer.cpp.CPP } } { gcc%gcc.compile.c++-basic_pointer_oserializer.o.OBJ { basic_pointer_oserializer.cpp.CPP } } { gcc%gcc.compile.c++-basic_serializer_map.o.OBJ { basic_serializer_map.cpp.CPP } } { gcc%gcc.compile.c++-basic_text_iprimitive.o.OBJ { basic_text_iprimitive.cpp.CPP } } { gcc%gcc.compile.c++-basic_text_oprimitive.o.OBJ { basic_text_oprimitive.cpp.CPP } } { gcc%gcc.compile.c++-basic_xml_archive.o.OBJ { basic_xml_archive.cpp.CPP } } { gcc%gcc.compile.c++-binary_iarchive.o.OBJ { binary_iarchive.cpp.CPP } } { gcc%gcc.compile.c++-binary_oarchive.o.OBJ { binary_oarchive.cpp.CPP } } { gcc%gcc.compile.c++-extended_type_info.o.OBJ { extended_type_info.cpp.CPP } } { gcc%gcc.compile.c++-extended_type_info_typeid.o.OBJ { extended_type_info_typeid.cpp.CPP } } { gcc%gcc.compile.c++-extended_type_info_no_rtti.o.OBJ { extended_type_info_no_rtti.cpp.CPP } } { gcc%gcc.compile.c++-polymorphic_iarchive.o.OBJ { polymorphic_iarchive.cpp.CPP } } { gcc%gcc.compile.c++-polymorphic_oarchive.o.OBJ { polymorphic_oarchive.cpp.CPP } } { gcc%gcc.compile.c++-stl_port.o.OBJ { stl_port.cpp.CPP } } { gcc%gcc.compile.c++-text_iarchive.o.OBJ { text_iarchive.cpp.CPP } } { gcc%gcc.compile.c++-text_oarchive.o.OBJ { text_oarchive.cpp.CPP } } { gcc%gcc.compile.c++-void_cast.o.OBJ { void_cast.cpp.CPP } } { gcc%gcc.compile.c++-xml_grammar.o.OBJ { xml_grammar.cpp.CPP } } { gcc%gcc.compile.c++-xml_iarchive.o.OBJ { xml_iarchive.cpp.CPP } } { gcc%gcc.compile.c++-xml_oarchive.o.OBJ { xml_oarchive.cpp.CPP } } } } error: created from ./stage-proper error: added properties: &lt;optimization&gt;speed error: removed properties: &lt;optimization&gt;off /home/tiziano/entwicklung/gentoo/ebuilds/boost_1_39_0/tools/build/v2/build/virtual-target.jam:480: in actualize-no-scanner from module object(file-target)@2773 /home/tiziano/entwicklung/gentoo/ebuilds/boost_1_39_0/tools/build/v2/build/virtual-target.jam:130: in object(file-target)@2773.actualize from module object(file-target)@2773 /home/tiziano/entwicklung/gentoo/ebuilds/boost_1_39_0/tools/build/v2/build-system.jam:713: in load from module build-system /home/tiziano/entwicklung/gentoo/ebuilds/boost_1_39_0/tools/build/v2/kernel/modules.jam:283: in import from module modules /home/tiziano/entwicklung/gentoo/ebuilds/boost_1_39_0/tools/build/v2/kernel/bootstrap.jam:138: in boost-build from module /home/tiziano/entwicklung/gentoo/ebuilds/boost_1_39_0/boost-build.jam:16: in module scope from module </p> <p> and with the attached user-config.jam. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3267 Trac 1.4.3 dev-zero@… Thu, 16 Jul 2009 07:21:34 GMT attachment set https://svn.boost.org/trac10/ticket/3267 https://svn.boost.org/trac10/ticket/3267 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">user-config.jam</span> </li> </ul> Ticket anonymous Thu, 16 Jul 2009 07:22:33 GMT <link>https://svn.boost.org/trac10/ticket/3267#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3267#comment:1</guid> <description> <p> ... and this would be the full bjam line: bjam-1_39 --toolset=gcc --user-config=user-config.jam release optimization=off debug-symbols=off </p> </description> <category>Ticket</category> </item> <item> <author>dev-zero@…</author> <pubDate>Thu, 16 Jul 2009 07:24:32 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/3267 https://svn.boost.org/trac10/ticket/3267 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">07_all_1.35.0-fix_mpi_installation.patch</span> </li> </ul> <p> Patch solving the issue </p> Ticket Vladimir Prus Sat, 18 Jul 2009 11:22:26 GMT <link>https://svn.boost.org/trac10/ticket/3267#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3267#comment:2</guid> <description> <p> I can confirm that </p> <pre class="wiki">bjam release optimization=off debug-symbols=off --with-mpi </pre><p> is broken in current trunk. The patch appears to be applied already. I'll investigate. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 04 Aug 2009 20:47:50 GMT</pubDate> <title>owner set https://svn.boost.org/trac10/ticket/3267#comment:3 https://svn.boost.org/trac10/ticket/3267#comment:3 <ul> <li><strong>owner</strong> set to <span class="trac-author">Matthias Troyer</span> </li> </ul> Ticket Matthias Troyer Tue, 04 Aug 2009 23:05:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3267#comment:4 https://svn.boost.org/trac10/ticket/3267#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket