Boost logo

Boost-Build :

Subject: Re: [Boost-build] Unable to build Boost libraries with GCC for ARM Linux
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-10-03 14:15:44


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\libboos
> 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