Boost logo

Boost-Build :

Subject: Re: [Boost-build] Unable to build Boost libraries with GCC for ARM Linux
From: Alistair Lowe (ali_lowe_at_[hidden])
Date: 2011-10-03 16:36:51


Thank you for the response,

After making your changes I receive the following at the start of running
the routine:

C:\Users\Ali\Documents\RaspberryPi\Libs\boost_1_47_0>bjam toolset=gcc-arm
target
-os=linux
'C:/Program' is not recognized as an internal or external command,
operable program or batch file.
'C:/Program' is not recognized as an internal or external command,
operable program or batch file.
'C:/Program' is not recognized as an internal or external command,
operable program or batch file.
AR IS C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\bin
'C:/Program' is not recognized as an internal or external command,
operable program or batch file.

Building the Boost C++ Libraries.

Performing configuration checks

    - 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
    - ../config//has_gcc_visibility builds : yes
    - ../config//has_long_double_support builds : no
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.
warning: No python installation configured and autoconfiguration
note: failed. See http://www.boost.org/libs/python/doc/building.html
note: for configuration instructions or pass --without-python to
note: suppress this message and silently skip all Boost.Python targets

Component configuration:

    - chrono : building
    - date_time : building
    - exception : building
    - filesystem : building
    - graph : building
    - graph_parallel : building
    - iostreams : building
    - math : building
    - mpi : building
    - program_options : building
    - python : building
    - random : building
    - regex : building
    - serialization : building
    - signals : building
    - system : building
    - test : building
    - thread : building
    - wave : building

...patience...
...patience...
...patience...
...found 5981 targets...
...updating 694 targets...
common.mkdir stage
common.mkdir stage\lib
common.mkdir bin.v2\libs\regex\build\gcc-arm\release
common.mkdir bin.v2\libs\regex\build\gcc-arm\release\target-os-linux
common.mkdir
bin.v2\libs\regex\build\gcc-arm\release\target-os-linux\threading-m
ulti
gcc.compile.c++
bin.v2\libs\regex\build\gcc-arm\release\target-os-linux\threadin
g-multi\c_regex_traits.o
gcc.compile.c++
bin.v2\libs\regex\build\gcc-arm\release\target-os-linux\threadin
g-multi\cpp_regex_traits.o

Shed anymore light?

Many thanks

-----Original Message-----
From: Vladimir Prus [mailto:ghost_at_[hidden]]
Sent: 03 October 2011 19:16
To: boost-build_at_[hidden]
Cc: Alistair Lowe
Subject: Re: [Boost-build] Unable to build Boost libraries with GCC for ARM
Linux

On Monday, October 03, 2011 05:18:34 Alistair Lowe wrote:
> Hi guys,
>
>
>
> I'm cross-compiling Boost for a Linux distro on an ARM board. I'm
> using windows with Boost 1.47.
>
> My project-config.jam contains the following:
>
> import option ;
>
> using gcc : arm : "C:/Program Files (x86)/CodeSourcery/Sourcery G++
> Lite/bin/arm-none-linux-gnueabi-g++" ;
>
> option.set keep-going : false ;
>
>
>
> And I'm building with the command:
>
> bjam toolset=gcc-arm target-os=linux
>
> Whilst .o objects are building just fine, .a builds are failing
> usually with something like:
>
> "C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\bin"
>
>
>
> "bin.v2\libs\wav
> e\build\gcc-arm\release\link-static\target-os-linux\threading-multi\li
> bboos
> t _wav e-gcc-mt-1_47.a"
>
> ...failed gcc.archive
> bin.v2\libs\wave\build\gcc-arm\release\link-static\target-
> os-linux\threading-multi\libboost_wave-gcc-mt-1_47.a... ...skipped
> libboost_wave-gcc-mt-1_47.a for lack of libboost_wav e-gcc-mt-1_47.a...
> ...failed updating 23 targets... ...skipped 28 targets... ...updated
> 641 targets...
>
> I am also getting quote a few of the following error messages:
>
> '"C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\bin"' is not
> recognized as an internal or external command, operable program or
> batch file.
>
> Any ideas guys?

Please open tools/gcc.jam, locate the line that say:

    toolset.flags gcc.archive .AR $(condition) : $(archiver[1]) ;

and add, after it, the following:

        ECHO "AR IS " $(archiver:J=***) ;

Try again and post the output of that echo.

Thanks,

--
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

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