Boost logo

Boost-Build :

Subject: [Boost-build] Porting Boost 1.52.0 to OpenBSD "Duplicate name of actual target"
From: Amit Kulkarni (amitkulz_at_[hidden])
Date: 2012-11-16 14:27:42


Hello,

I am trying to update the OpenBSD port, and I keep running into this
problem. Can somebody please guess where the problem is? I read
http://www.boost.org/doc/libs/1_52_0/doc/html/bbv2/faq.html which
discusses this "Duplicate name of actual target".

The Makefile used for compilation is at
https://github.com/jasperla/openbsd-wip/blob/7f25a653ff53a270e0873d90529791189d9715ac/devel/boost-new/Makefile

I get this error when I select threading=single,multi. If only
threading=multi is selected, the compile is fine. Please which Jamfile
or .jam should I fix to get this to produce both single and multi
threaded libs? Any other things which are needed to diagnose please
let me know and I will gladly post them.

thanks

Building the Boost C++ Libraries.

Performing configuration checks

    - 32-bit : no
    - 64-bit : yes
    - x86 : yes
    - has_icu builds : no
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
    - iconv (libc) : no
    - iconv (separate) : no
    - icu : no
    - icu (lib64) : no
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
    - gcc visibility : yes
    - long double support : yes
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
/home/amit/obsd/ports/pobj/boost-1.52.0/boost_1_52_0/tools/build/v2/build/virtual-target.jam:1079:
in virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <pstage/lib>libboost_chrono.a
error: previous virtual target {
common%common.copy-libboost_chrono.a.STATIC_LIB {
gcc%gcc.archive-libboost_chrono.a.STATIC_LIB {
gcc%gcc.compile.c++-chrono.o.OBJ { chrono.cpp.CPP } } {
gcc%gcc.compile.c++-thread_clock.o.OBJ { thread_clock.cpp.CPP } } {
gcc%gcc.compile.c++-process_cpu_clocks.o.OBJ {
process_cpu_clocks.cpp.CPP } } } }
error: created from ./stage-proper
error: another virtual target {
common%common.copy-libboost_chrono.a.STATIC_LIB {
gcc%gcc.archive-libboost_chrono.a.STATIC_LIB {
gcc%gcc.compile.c++-chrono.o.OBJ { chrono.cpp.CPP } } {
gcc%gcc.compile.c++-thread_clock.o.OBJ { thread_clock.cpp.CPP } } {
gcc%gcc.compile.c++-process_cpu_clocks.o.OBJ {
process_cpu_clocks.cpp.CPP } } } }
error: created from ./stage-proper
error: added properties: <library>object(file-target)@3451 <threading>multi
error: removed properties: <library>object(file-target)@988 <threading>single
/home/amit/obsd/ports/pobj/boost-1.52.0/boost_1_52_0/tools/build/v2/build/virtual-target.jam:490:
in actualize-no-scanner from module object(file-target)@3940
/home/amit/obsd/ports/pobj/boost-1.52.0/boost_1_52_0/tools/build/v2/build/virtual-target.jam:135:
in object(file-target)@3940.actualize from module
object(file-target)@3940
/home/amit/obsd/ports/pobj/boost-1.52.0/boost_1_52_0/tools/build/v2/build-system.jam:749:
in load from module build-system
/home/amit/obsd/ports/pobj/boost-1.52.0/boost_1_52_0/tools/build/v2/kernel/modules.jam:283:
in import from module modules
/home/amit/obsd/ports/pobj/boost-1.52.0/boost_1_52_0/tools/build/v2/kernel/bootstrap.jam:142:
in boost-build from module
/home/amit/obsd/ports/pobj/boost-1.52.0/boost_1_52_0/boost-build.jam:17:
in module scope from module

*** Error 1 in . (Makefile:100 'do-build': @cd
/home/amit/obsd/ports/pobj/boost-1.52.0/boost_1_52_0 && ./bjam
-sNO_COMPRESSION=1 -d+2 -q ...)
*** Error 1 in .
(/home/amit/obsd/ports/infrastructure/mk/bsd.port.mk:2563
'/home/amit/obsd/ports/pobj/boost-1.52.0/.build_done')
*** Error 1 in /home/amit/obsd/ports/openbsd-wip/devel/boost-new
(/home/amit/obsd/ports/infrastructure/mk/bsd.port.mk:2287 'all')


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