[Boost-bugs] [Boost C++ Libraries] #10909: Problems with building boost system library using mingw

Subject: [Boost-bugs] [Boost C++ Libraries] #10909: Problems with building boost system library using mingw
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-12-30 09:11:12


#10909: Problems with building boost system library using mingw
-----------------------------------+---------------------------------
 Reporter: piotrek.orzechowski@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: Building Boost | Version: Boost 1.57.0
 Severity: Problem | Keywords: Boost gcc qnx mingw
-----------------------------------+---------------------------------
 I'm trying to build 'system' library from Boost under Windows using
 command:

> bjam --toolset=gcc target-os=qnx
> --build-dir=c:\boost_1_57_0 --build-type=complete --with-system stage

 and keep getting error:

> C:\boost_1_57_0>bjam --toolset=gcc target-os=qnx
> --build-dir=c:\boost_1_57_0 --build-type=complete --with-system stage
 ...found 1 target... ...updating 1 target... config-cache.write
> c:\boost_1_57_0\boost\bin.v2\project-cache.jam ...updated 1 target...
>
> Component configuration:
>
> - atomic : not building
> - chrono : not building
> - container : not building
> - context : not building
> - coroutine : not building
> - date_time : not building
> - exception : not building
> - filesystem : not building
> - graph : not building
> - graph_parallel : not building
> - iostreams : not building
> - locale : not building
> - log : not building
> - math : not building
> - mpi : not building
> - program_options : not building
> - python : not building
> - random : not building
> - regex : not building
> - serialization : not building
> - signals : not building
> - system : building
> - test : not building
> - thread : not building
> - timer : not building
> - wave : not building
>
> ...found 205 targets... ...updating 4 targets... gcc.link.dll
> c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\debug
 \target-os-qnx\threading-multi\libboost_system-mgw48-mt-d-1_57.so.1.57.0
> c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
> cannot find -lrt collect2.exe: error: ld returned 1 exit status
>
> "g++" -o "c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-
 mingw-4.8.1\debug\target-os-qnx\threading-multi\libboost_system-
 mgw48-mt-d-1_57.so.1.57.0"
> -shared -Wl,--start-group "c:\boost_1_57
> _0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\debug\target-os-qnx
 \threading-multi\error_code.o"
> -Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -g -pthread
>
> ...failed gcc.link.dll
> c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\debug
 \target-os-qnx\threading-multi\libboost_system-
 mgw48-mt-d-1_57.so.1.57.0...
> ...skipped <pstage\lib>libboost_system-mgw48-mt-d-1_57.so.1.57.0 for
> lack of
> <pc:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\debug
 \target-os-qnx\threading-multi>libboost_system-mgw48-
> mt-d-1_57.so.1.57.0... gcc.link.dll
> c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\release
 \target-os-qnx\threading-multi\libboost_system-mgw48-mt-1_57.so.1.57.0
> c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
> cannot find -lrt collect2.exe: error: ld returned 1 exit status
>
> "g++" -o "c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-
 mingw-4.8.1\release\target-os-qnx\threading-multi\libboost_system-mgw48
 -mt-1_57.so.1.57.0"
> -shared -Wl,--start-group "c:\boost_1_57
> _0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\release\target-os-qnx
 \threading-multi\error_code.o"
> -Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -pthread
>
> ...failed gcc.link.dll
> c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\release
 \target-os-qnx\threading-multi\libboost_system-mgw48-mt-1_57.so.1.57.0...
> ...skipped <pstage\lib>libboost_system-mgw48-mt-1_57.so.1.57.0 for
> lack of
> <pc:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\release
 \target-os-qnx\threading-multi>libboost_system-mgw48-
> mt-1_57.so.1.57.0... ...failed updating 2 targets... ...skipped 2
> targets...


 The rt lib seems to be missing, where can I obtain such lib to
 successfully compile 'system' lib?

 Changing bootstrap argument between gcc / mingw doesn't help.
 Before using bootstrap I set path to mingw using:

> set PATH=c:\mingw\bin;%PATH%

 and change bootstrap.bat in line 38 to:
> set toolset=gcc

 Any idea how to successfully compile system library under windows for QNX?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10909>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC