Boost logo

Boost :

Subject: Re: [boost] [Query] Cross Compiling for mipsel-linux
From: Peter Dimov (pdimov_at_[hidden])
Date: 2010-07-10 12:46:32


Alapkumar Sinha wrote:
> Hi,
>
> Pardon me if it is not the right forum to ask the below question.
>
> I am trying to build the boost library for mipsel-linux.
>
> I followed the following procedure.
>
>
> 1. Changed user-config.jam
>
> a. using gcc : mipsel : mipsel-linux-g++ ;
>
> 2. Then called bjam as: ./bjam --toolset=gcc-mipsel
>
>
>
> When I do this I am getting the following error.
>
>
>
> /******/
>
> gcc.compile.c++
> bin.v2/libs/math/build/gcc-mipsel/release/threading-multi/cyl_bessel_i.o
>
> /tmp/ccgLCiZn.s: Assembler messages:
>
> /tmp/ccgLCiZn.s:14975: Error: opcode not supported on this processor:
> mips1 (mips1) `ll $3,4($4)'
> /tmp/ccgLCiZn.s:14977: Error: opcode not supported on this processor:
> mips1 (mips1) `sc $5,4($4)'
...

Hi,

The MIPS-specific implementation of shared_ptr with which you're probably
having problems (contributed by David Joyner in
https://svn.boost.org/trac/boost/ticket/2885) uses the ll/sc instructions,
which I guess are not supported by the architecture your compiler defaults
to (mips1). According to

http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/MIPS-Options.html#MIPS-Options

you probably need to somehow add -mips32r2 to the command line (I'm told
that virtually all MIPS processors support it).

I found one ticket that matches your situation:
https://svn.boost.org/trac/boost/ticket/2972, but it's cmake-related and I
don't know how it was fixed on the cmake side.
 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk