|
Boost-Build : |
Subject: Re: [Boost-build] cross compiling linux boost libraries
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-07-12 03:48:08
On Friday 02 July 2010 15:55:54 Moritz Hassert wrote:
> Hi,
>
> Madhukar Sandi wrote:
> > I am able to cross compile using ./bjam --toolset=gcc-mips. But when im
> > seeing in library that was build for intel only
> >
> > The following log
> >
> > [root_at_infba01388 lib]# file libboost_math_tr1l.so.1.43.0
> > libboost_math_tr1l.so.1.43.0: ELF 32-bit LSB shared object, Intel 80386,
> > version 1 (GNU/Linux), dynamically linked, not stripped [root_at_infba01388
> > lib]# file libboost_thread.so.1.43.0
> > libboost_thread.so.1.43.0: ELF 32-bit LSB shared object, Intel 80386,
> > version 1 (GNU/Linux), dynamically linked, not stripped
>
> The odd thing with boost-build is that it sometimes does not bail out with an
> error when it can't fullfill your exact request. Instead it tries to something
> that it considers 'a good alternative'. At least thats my experience.
>
> In your case the toolset 'gcc-mips' is most likely not known to boost-build.
> That is, it does not have a gcc with version 'mips' configured. But instead of
> complaining it tries to auto-configure that compiler. And if it cannot find an
> executable 'g++-mips' or something like that it will fall back to the default
> command for toolset gcc, which is of cause 'g++'.
That's an outright bug, I guess. Care to file it in the tracker?
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