Boost logo

Boost-Build :

Subject: [Boost-build] Boost Locale tests link error ?
From: Kuhl, Brian (brian.kuhl_at_[hidden])
Date: 2018-05-07 19:00:43


Boost 1.67
ICU is found
----------------
./b2 install -j22 --prefix=/yow-build40-lx1/bkuhl/workspace/VSB/usr/root --libdir=/yow-build40-lx1/bkuhl/workspace/VSB/usr/lib/common --includedir=/yow-build40-lx1/bkuhl/workspace/VSB/usr/h/public \
                  link=static toolset=gcc cross-compile=vxworks --reconfigure \
                  --with-locale --with-system --with-thread --with-test -q -d2
Performing configuration checks
    - default address-model : 64-bit
    - default architecture : x86
    - symlinks supported : yes
    - iconv (libc) : no
    - iconv (separate) : no
    - icu : yes
warning: non-free usage requirements <runtime-link>shared ignored
warning: in main-target build_options at libs/locale/build/Jamfile.v2:413
    - lockfree boost::atomic_flag : yes
---------------------
Libs/locale/build/Jamfile.v2
Adds a dependency to boost_thread
--------------------
        if $(found-icu)
        {
            ICU_SOURCES =
                boundary
                codecvt
                collator
                conversion
                date_time
                formatter
                icu_backend
                numeric
                time_zone
                ;

            result += <source>icu/$(ICU_SOURCES).cpp
                      <library>../../thread/build//boost_thread
                      ;
----------------------------------------
But
Libs/locale/test/Jamfile.v2
Doesn't use it?

------------------------------------------

gcc.link ../bin.v2/libs/locale/test/test_formatting.test/gcc-4.8.1/debug/cross-compile-vxworks/test_formatting
    "/yow-build40-lx1/bkuhl/vx7/compilers/gnu-4.8.1.10/x86-linux2/bin/c++pentium" -o "../bin.v2/libs/locale/test/test_formatting.test/gcc-4.8.1/debug/cross-compile-vxworks/test_formatting" "../bin.v2/libs/locale/test/test_formatting.test/gcc-4.8.1/debug/cross-compile-vxworks/test_formatting.o" "../bin.v2/libs/locale/build/gcc-4.8.1/debug/cross-compile-vxworks/libboost_locale.so.1.67.0" "../bin.v2/libs/chrono/build/gcc-4.8.1/debug/cross-compile-vxworks/libboost_chrono.so.1.67.0" "../bin.v2/libs/system/build/gcc-4.8.1/debug/cross-compile-vxworks/libboost_system.so.1.67.0" -licudata -licui18n -licuuc -fPIC -m64 -g -non-static -Wl,-lc -m64 -mcmodel=large -mno-red-zone -fno-omit-frame-pointer -fno-defer-pop -fno-builtin -ansi -mrtp -fno-strict-aliasing -std=c++11 -isystem/yow-build40-lx1/bkuhl/workspace/VSB/usr/h/public/c++11 -fno-implicit-fp -O2 -Wall -Wno-comment -Wno-parentheses -Wno-reorder -Wno-narrowing -Wno-error=unused-parameter -isystem/yow-build40-lx1/bkuhl/workspace/VSB/usr/h -isystem/yow-build40-lx1/bkuhl/workspace/VSB/usr/h/system -isystem/yow-build40-lx1/bkuhl/workspace/VSB/usr/h/public -imacros vxcdefs.h -Wl,--defsym,__wrs_rtp_base=0x200000000 -Wl,--defsym,_GLOBAL_OFFSET_TABLE_=0 -Wl,-T,/yow-build40-lx1/bkuhl/vx7/vxworks-7/build/tool/gnu_4_8_1_8/usr/ldscript.exe.lp64.SIMCOMMON -L/yow-build40-lx1/bkuhl/workspace/VSB/usr/lib/common -Wl,-z,common-page-size=8192 -lunix -lsupc++ -lstdc++11
/yow-build40-lx1/bkuhl/vx7/compilers/gnu-4.8.1.10/x86-linux2/bin/../../lib/gcc/i586-wrs-vxworks/4.8.1/../../../../x86-linux2/i586-wrs-vxworks/bin/ld: warning: ../bin.v2/libs/thread/build/gcc-4.8.1/debug/cross-compile-vxworks/libboost_thread.so.1.67.0, needed by ../bin.v2/libs/locale/build/gcc-4.8.1/debug/cross-compile-vxworks/libboost_locale.so.1.67.0, not found (try using -rpath or -rpath-link)
../bin.v2/libs/locale/build/gcc-4.8.1/debug/cross-compile-vxworks/libboost_locale.so.1.67.0: undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
../bin.v2/libs/locale/build/gcc-4.8.1/debug/cross-compile-vxworks/libboost_locale.so.1.67.0: undefined reference to `boost::detail::get_tss_data(void const*)'
collect2: error: ld returned 1 exit status
...failed gcc.link ../bin.v2/libs/locale/test/test_formatting.test/gcc-4.8.1/debug/cross-compile-vxworks/test_formatting...
...skipped <p../bin.v2/libs/locale/test/test_formatting.test/gcc-4.8.1/debug/cross-compile-vxworks>test_formatting.run for lack of <p../bin.v2/libs/locale/test/test_formatting.test/gcc-4.8.1/debug/cross-compile-vxworks>test_formatting...
...failed updating 23 targets...
...skipped 46 targets...
...updated 172 targets...

Many thank in advanced for your help,

Brian Kuhl
Senior Manager - Information Development
Wind River



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