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:
> 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.
> /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)'
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
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