Boost logo

Boost-Build :

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


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:

YegorYefremov_at_development1:~/MyProjects/versioned/buildroot>
output/host/usr/bin/arm-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=/home/YegorYefremov/MyProjects/versioned/buildroot/output/host/opt/ext-toolchain/bin/arm-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/home/YegorYefremov/MyProjects/versioned/buildroot/output/host/opt/ext-toolchain/bin/../libexec/gcc/arm-linux-gnueabi/4.6.3/lto-wrapper
Target: arm-linux-gnueabi
Configured with:
/scratch/cbuild/slave/slaves/oort14/crosstool-ng-linaro-1.13.1-2012.02-20120222/crosstool-ng/default/c/builds/arm-linux-gnueabi-linux/.build/src/gcc-linaro-4.6-2012.02/configure
--build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu
--target=arm-linux-gnueabi
--prefix=/scratch/cbuild/slave/slaves/oort14/crosstool-ng-linaro-1.13.1-2012.02-20120222/crosstool-ng/default/c/builds/arm-linux-gnueabi-linux/install
--with-sysroot=/scratch/cbuild/slave/slaves/oort14/crosstool-ng-linaro-1.13.1-2012.02-20120222/crosstool-ng/default/c/builds/arm-linux-gnueabi-linux/install/arm-linux-gnueabi/libc
--enable-languages=c,c++,fortran --disable-multilib
--with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16
--with-float=softfp --with-pkgversion='crosstool-NG
linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02'
--with-bugurl=https://bugs.launchpad.net/gcc-linaro
--enable-__cxa_atexit --disable-libmudflap --disable-libgomp
--disable-libssp
--with-gmp=/scratch/cbuild/slave/slaves/oort14/crosstool-ng-linaro-1.13.1-2012.02-20120222/crosstool-ng/default/c/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static
--with-mpfr=/scratch/cbuild/slave/slaves/oort14/crosstool-ng-linaro-1.13.1-2012.02-20120222/crosstool-ng/default/c/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static
--with-mpc=/scratch/cbuild/slave/slaves/oort14/crosstool-ng-linaro-1.13.1-2012.02-20120222/crosstool-ng/default/c/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static
--with-ppl=/scratch/cbuild/slave/slaves/oort14/crosstool-ng-linaro-1.13.1-2012.02-20120222/crosstool-ng/default/c/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static
--with-cloog=/scratch/cbuild/slave/slaves/oort14/crosstool-ng-linaro-1.13.1-2012.02-20120222/crosstool-ng/default/c/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static
--with-libelf=/scratch/cbuild/slave/slaves/oort14/crosstool-ng-linaro-1.13.1-2012.02-20120222/crosstool-ng/default/c/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static
--with-host-libstdcxx='-L/scratch/cbuild/slave/slaves/oort14/crosstool-ng-linaro-1.13.1-2012.02-20120222/crosstool-ng/default/c/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static/lib
-lpwl' --enable-threads=posix --disable-libstdcxx-pch
--enable-linker-build-id --enable-gold
--with-local-prefix=/scratch/cbuild/slave/slaves/oort14/crosstool-ng-linaro-1.13.1-2012.02-20120222/crosstool-ng/default/c/builds/arm-linux-gnueabi-linux/install/arm-linux-gnueabi/libc
--enable-c99 --enable-long-long --with-mode=thumb
Thread model: posix
gcc version 4.6.3 20120201 (prerelease) (crosstool-NG
linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02)

When compiling/installing Boost I get following error:

>>> boost 1.49.0 Building
>>> boost 1.49.0 Installing to staging directory
(cd /home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0
&& ./bjam -d+2 --user-config=/home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/user-config.jam
toolset=gcc variant=release link=shared threading=single
runtime-link=shared
--prefix=/home/YegorYefremov/MyProjects/versioned/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr
--layout=system install)
/home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/tools/build/v2/build/toolset.jam:38:
in toolset.using
*** 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
/home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/tools/build/v2/tools/gcc.jam:70:see
definition of rule 'init' being called
/home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/tools/build/v2/build/project.jam:888:
in using
/home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/user-config.jam:1:
in modules.load
/home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/tools/build/v2/build-system.jam:257:
in load-config
/home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/tools/build/v2/build-system.jam:395:
in load-configuration-files
/home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/tools/build/v2/build-system.jam:555:
in load
/home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/tools/build/v2/kernel/modules.jam:283:
in import
/home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/tools/build/v2/kernel/bootstrap.jam:142:
in boost-build
/home/YegorYefremov/MyProjects/versioned/buildroot/output/build/boost-1.49.0/boost-build.jam:17:
in module scope

How can I fix this error? Does such an error occur due to multiple
bracket occurrence?

Best regards,
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