|
Boost Users : |
Subject: Re: [Boost-users] problem of opcode not supported on mipsel for Boost_1_39_0
From: Kevin Arunski (kevin.arunski_at_[hidden])
Date: 2010-11-19 12:30:22
On Nov 19, 2010, at 1:17 AM, Yan Wu wrote:
> Hi,
>
> I got an error when building OpenOffice.org on mipsel platform, the
> error is following:
>
> Compiling: comphelper/source/misc/logging.cxx
> {standard input}: Assembler messages:
> {standard input}:101: Error: opcode not supported on this processor:
> mips1 (mips1) `ll $3,8($4)'
> {standard input}:103: Error: opcode not supported on this processor:
> mips1 (mips1) `sc $2,8($4)'
> {standard input}:141: Error: opcode not supported on this processor:
> mips1 (mips1) `ll $3,4($4)'
> {standard input}:143: Error: opcode not supported on this processor:
> mips1 (mips1) `sc $2,4($4)'
> dmake: Error code 1, while making '../../unxlngmips.pro/slo/
> logging.obj'
>
>
> The <boost/shared_ptr.hpp>, Boost_1_39_0, is used in the above
> logging.cxx. Is this a bug for the smart_ptr on mipsel platform ? I
> found there was a similar bug
> 2972(https://svn.boost.org/trac/boost/ticket/2972).
>
> But I notice that the fix for 2972 is not integrated to the current
> milestone yet. Right? Where can I find the fix for this bug ?
>
> Best Regards,
> Yan
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
The ll and sc instructions are needed for atomic operations, and they
are only present on mips2 or higher ISA. Pass -mips2 as a compiler
flag to your build. This will allow gnu assembler to work with mips2
instructions.
KEVIN ARUNSKI
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net