Boost logo

Boost-Build :

Subject: Re: [Boost-build] cross compiling linux boost libraries into mips board
From: Madhukar Sandi (Madhukar.Sandi_at_[hidden])
Date: 2010-07-14 07:39:44


Thanks for reply, but im unable to rectify this errors,

I checked for all architectures
And I define BOOST_SP_DISABLE_THREADS or BOOST_SP_USE_PTHREADS

These macros I defined in boost/smart_ptr/details/sp_counted_base.hpp

And I set this arch flag as tools/build/v2/gcc.jam

Please find below log,

/tmp/ccIq0SAD.s:23149: Error: opcode not supported on this processor: mips1 (mips1) `ll $3,8($16)'
/tmp/ccIq0SAD.s:23151: Error: opcode not supported on this processor: mips1 (mips1) `sc $2,8($16)'
/tmp/ccIq0SAD.s:23185: Error: opcode not supported on this processor: mips1 (mips1) `ll $3,8($16)'
/tmp/ccIq0SAD.s:23187: Error: opcode not supported on this processor: mips1 (mips1) `sc $2,8($16)'

    "mips-linux-g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -march=mips1 -Wall -pthread -fPIC -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"bin.v2/libs/math/build/gcc-mips/release/threading-multi/../src/tr1" -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/gcc-mips/release/threading-multi/cyl_bessel_i.o" "libs/math/build/../src/tr1/cyl_bessel_i.cpp"

...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-mips/release/threading-multi/cyl_bessel_i.o...

If any suggestion please....

Thanks
Madhukar Sandi
-----Original Message-----
From: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Vladimir Prus
Sent: Wednesday, July 14, 2010 2:55 PM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] cross compiling linux boost libraries into mips board

On Wednesday 14 July 2010 13:03:47 Madhukar Sandi wrote:

> Hi
>
>
> I am able to cross compile with mips tool chain
>
> But im getting so much errors.
>
> Please give some clues, how to resolve my errors
...
> gcc.compile.c++ bin.v2/libs/math/build/gcc-mips/release/threading-multi/cyl_bessel_i.o
> /tmp/ccAlBvKj.s: Assembler messages:
> /tmp/ccAlBvKj.s:6362: Error: opcode not supported on this processor: mips1 (mips1) `ll $3,4($16)'

It seems like some bits of Boost, shared_ptr most likely, is using an instruction which is not
supported by the default flavour of MIPS gcc uses. The complete list of architectures is:

        mips1 mips2 mips3 mips4 mips32 mips32r2 mips64

Would you please try passing additional Boost.Build option

        architecture=<XXX>

Where <XXX> is taken from the above list. Either pick whatever is right for your target,
or try them all. Let me know if this helps. If that does not help, use

        define=BOOST_SP_DISABLE_THREADS

or

        define=BOOST_SP_USE_PTHREADS

as appropriate. Those defines are documented in smart_prt documentation, I believe.

Thanks,

--
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
______________________________________________________________________
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.
______________________________________________________________________

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