[Query] Cross Compiling for mipsel-linux

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)' /tmp/ccgLCiZn.s:15063: Error: opcode not supported on this processor: mips1 (mips1) `ll $3,8($4)' /tmp/ccgLCiZn.s:15065: Error: opcode not supported on this processor: mips1 (mips1) `sc $10,8($4)' /tmp/ccgLCiZn.s:15105: Error: opcode not supported on this processor: mips1 (mips1) `ll $3,4($4)' And so on /******/ Can someone help me on where I am going wrong? Regards, Alap ________________________________ This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. ______________________________________________________________________

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.
participants (2)
-
Alapkumar Sinha
-
Peter Dimov