Boost logo

Boost-Build :

Subject: Re: [Boost-build] Cross-compiling Boost with Linaro toolchain
From: Yegor Yefremov (yegorslists_at_[hidden])
Date: 2012-04-16 06:47:12


On Mon, Apr 16, 2012 at 12:31 PM, Vladimir Prus <ghost_at_[hidden]> wrote:
> On 16/04/12 14:17, Yegor Yefremov wrote:
>>
>> I'm trying to cross-compile Boost using external Linaro toolchain
>> (https://launchpad.net/linaro-toolchain-binaries) in Buildroot
>> (http://buildroot.uclibc.org/). This is version output for Linaro GCC:
>
>
>
>
>
>> *** argument error
>> * rule gcc.init ( version ? : command * : options * )
>> * called with: ( arm-linux-gnueabi-gcc (crosstool-NG
>> linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) 4.6.3 20120201
>> (prerelease) :
>> /home/YegorYefremov/MyProjects/versioned/buildroot/output/host/usr/bin/ccache
>>
>> /home/YegorYefremov/MyProjects/versioned/buildroot/output/host/usr/bin/arm-linux-gnueabi-g++
>> :<cxxflags>  -pipe -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
>> -D_FILE_OFFSET_BITS=64<linkflags>  :  :  :  :  :  )
>> * extra argument (crosstool-NG
>
>
> What is the content of:
>
>
>  /home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/user-config.jam
>
> and how was that file created? The above error claims that the file is tring
> to pass a huge list
> for 'version' parameter, and this is not allowed. You need to come up with a
> single string that
> identifies compiler version.

This is how the file was created:

BOOST_WITHOUT_FLAGS_COMMASEPERATED += $(subst
$(space),$(comma),$(strip $(BOOST_WITHOUT_FLAGS)))
BOOST_FLAGS += $(if $(BOOST_WITHOUT_FLAGS_COMMASEPERATED),
--without-libraries=$(BOOST_WITHOUT_FLAGS_COMMASEPERATED))

define BOOST_CONFIGURE_CMDS
        (cd $(@D) && ./bootstrap.sh $(BOOST_FLAGS))
        echo "using gcc : $(TARGET_CC_VERSION) : $(TARGET_CXX) :
<cxxflags>\"$(TARGET_CXXFLAGS)\" <linkflags>\"$(TARGET_LDFLAGS)\" ;" >
$(@D)/user-config.jam
        echo "" >> $(@D)/user-config.jam
endef

And this is it's content:using gcc : arm-linux-gnueabi-gcc
(crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02)
4.6.3 20120201 (prerelease) :
/home/YegorYefremov/MyProjects/versioned/buildroot/output/host/usr/bin/ccache
/home/YegorYefremov/MyProjects/versioned/buildroot/output/host/usr/bin/arm-linux-gnueabi-g++
: <cxxflags>" -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64" <linkflags>"" ;

Yegor


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