This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: building GCC cross toolchain for mips


On Fri, 2013-03-22 at 18:07 +0800, Vania Joloboff wrote:


> What happened ?
> Should we now use a different target ?
> The configure newlib we have
> 
>      "$SRC_DIR"/newlib-$V_NEWLIB/configure --host=$HOST --build=$BUILD \
>          --target=mips-none-elf --prefix="$INSTALL_DIR" --disable-nls
> 
> Then when compiling memcpy.S in newlib , I get:
> opcode not supported on this processor: mips1 (mips1) `pref
> 
> but it seems the opcode is not found is because the assembler generated
> by binutils does not support pref !
> 
> I also tried with target=mipsisa64r2
> 
> Then I get
> memcpy.S:389: Error: Illegal operands `ld t4,((4)*8)($5)'
> 
> Is it a binutils problem or a newlib problem?
> However it works with newlib 1.20....

Hi Vania, this looks like a problem with my new memcpy routine.  The
first problem, with 'pref' can be fixed by applying this patch:

http://sourceware.org/ml/newlib/2013/msg00082.html

This may fix the target=mipsisa64r2 problem as well, but I am not
sure about that.  I will have to look at that a bit more.

Steve Ellcey
sellcey@imgtec.com (sellcey@mips.com)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]