Boost logo

Boost-Build :

Subject: Re: [Boost-build] cross compiling linux boost libraries into mips board
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2010-07-14 07:49:58


Madhukar Sandi wrote:

> 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

You are still compiling for mips1 here.

> -Wall
> -pthread -fPIC -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED
> -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG

Nor do I see BOOST_SP_DISABLE_THREADS here.

> -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....

Use -save-temps to get preprocessed source, and find where the offending instructions
comes from.

- Volodya


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