Boost logo

Boost :

Subject: Re: [boost] [build] Problem building boost libraries from trunk with layout versioned
From: Thomas Heller (thom.heller_at_[hidden])
Date: 2012-06-27 07:46:38


On 06/27/2012 09:19 AM, Thomas Heller wrote:
> Hi,
>
> I am trying to build current trunk with layout versioned. Boost build
> is currently failing. This looks similar to the problem reported with
> the 1.50 RC.
> Here is the error:

Looks like exactly the same problem as reported for the release
candidate. Undoing those changes made it work again. Patch is attached
for those who run into the same problem and want to build boost from trunk.
I am not an expert for boost.build, but these changes seem to have
broken the versioned layout.

> [heller_at_faui32m trunk]$ ./b2 toolset=intel --layout=versioned -j2
> variant=debug
>
> Building the Boost C++ Libraries.
>
>
> Performing configuration checks
>
> - 32-bit : no
> - 64-bit : yes
> - x86 : yes
> - has_icu builds : yes
> warning: Graph library does not contain MPI-based parallel components.
> note: to enable them, add "using mpi ;" to your user-config.jam
> - iconv (libc) : yes
> - icu : yes
> - 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.
> /home/heller/programming/boost/trunk/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_context-il-mt-d.so
> error: previous virtual target {
> symlink%symlink.ln-libboost_context-il-mt-d.so.SHARED_LIB {
> common%common.copy-libboost_context-il-mt-d-1_50.so.1.50.0.SHARED_LIB
> {
> intel-linux%intel-linux.link.dll-libboost_context-il-mt-d-1_50.so.1.50.0.SHARED_LIB
> {
> intel-linux%intel-linux.compile.asm-asm/fcontext_x86_64_sysv_elf_gas.o.OBJ
> { asm/fcontext_x86_64_sysv_elf_gas.S.ASM } } {
> intel-linux%intel-linux.compile.c++-fcontext.o.OBJ { fcontext.cpp.CPP
> } } { intel-linux%intel-linux.compile.c++-stack_allocator_posix.o.OBJ
> { stack_allocator_posix.cpp.CPP } } {
> intel-linux%intel-linux.compile.c++-stack_utils_posix.o.OBJ {
> stack_utils_posix.cpp.CPP } } } } }
> error: created from ./stage-unversioned
> error: another virtual target {
> symlink%symlink.ln-libboost_context-il-mt-d.so.SHARED_LIB {
> symlink%symlink.ln-libboost_context-il-mt-d-1_50.so.SHARED_LIB {
> common%common.copy-libboost_context-il-mt-d-1_50.so.1.50.0.SHARED_LIB
> {
> intel-linux%intel-linux.link.dll-libboost_context-il-mt-d-1_50.so.1.50.0.SHARED_LIB
> {
> intel-linux%intel-linux.compile.asm-asm/fcontext_x86_64_sysv_elf_gas.o.OBJ
> { asm/fcontext_x86_64_sysv_elf_gas.S.ASM } } {
> intel-linux%intel-linux.compile.c++-fcontext.o.OBJ { fcontext.cpp.CPP
> } } { intel-linux%intel-linux.compile.c++-stack_allocator_posix.o.OBJ
> { stack_allocator_posix.cpp.CPP } } {
> intel-linux%intel-linux.compile.c++-stack_utils_posix.o.OBJ {
> stack_utils_posix.cpp.CPP } } } } } }
> error: created from ./stage-unversioned
> error: added properties: none
> error: removed properties: none
> /home/heller/programming/boost/trunk/tools/build/v2/build/virtual-target.jam:490:
> in actualize-no-scanner from module object(file-target)@3737
> /home/heller/programming/boost/trunk/tools/build/v2/build/virtual-target.jam:135:
> in object(file-target)@3737.actualize from module
> object(file-target)@3737
> /home/heller/programming/boost/trunk/tools/build/v2/build-system.jam:750:
> in load from module build-system
> /home/heller/programming/boost/trunk/tools/build/v2/kernel/modules.jam:283:
> in import from module modules
> /home/heller/programming/boost/trunk/tools/build/v2/kernel/bootstrap.jam:142:
> in boost-build from module
> /home/heller/programming/boost/trunk/boost-build.jam:17: in module
> scope from module
>
> It seems to work when using --layout=system
>
> Anyone knows a fix to this? FWIW, toolset=gcc has the same problem
>
> Thanks,
> Thomas




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk