Re: Building GCC 3.2.3 for mips

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Check with linux-mips (www.linu-mips.com) folks to see what
compiler/binutils/glibc version to use. There is a mailing list also.



On Fri, 17 Sep 2004, SARAVANAP wrote:

> Hi,
>
>    I'm trying to build a GCC cross compiler for MIPS 32-bit and 64-bit platforms. I'm having problems in building the bootstrap compiler for "mips3" ISA. The compiler (xgcc) itself is getting built properly. But I guess, building gcc library is failing. The assembler does not like the assembly code generated by compiler.
>
>    Binutils used: 2.13.2.1
>
>    The error output is given below.
>
> /data/tools/gcc-3.2.3-compile/gcc/xgcc -B/data/tools/gcc-3.2.3-compile/gcc/
> -B/data/emb/tools/gcc-temp//mips-emb-linux/bin/
> -B/data/emb/tools/gcc-temp//mips-emb-linux/lib/
> -isystem /data/emb/tools/gcc-temp//mips-emb-linux/include -O2
> -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -isystem ./include  -fPIC -g  -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
> -I../../gcc-3.2.3/gcc -I../../gcc-3.2.3/gcc/. -I../../gcc-3.2.3/gcc/config
> -I../../gcc-3.2.3/gcc/../include  -mips3 -DL_muldi3
> -c ../../gcc-3.2.3/gcc/libgcc2.c -o libgcc/mips3/_muldi3.o
>
> /home/embtools/tmp/cccMlfmJ.s: Assembler messages:
> /home/embtools/tmp/cccMlfmJ.s:30: Error: illegal operands `lui'
> /home/embtools/tmp/cccMlfmJ.s:31: Error: illegal operands `addiu'
> gmake[2]: *** [libgcc/mips3/_muldi3.o] Error 1
> gmake[2]: Leaving directory `/data/tools/gcc-3.2.3-compile/gcc'
> gmake[1]: *** [stmp-multilib] Error 2
> gmake[1]: Leaving directory `/data/tools/gcc-3.2.3-compile/gcc'
> gmake: *** [all-gcc] Error 2
>
>    I tried compiling a simple (test.c) program using the xgcc. I got the same result.
>
> [embtools@hoopa gcc-3.2.3-compile]$ /data/tools/gcc-3.2.3-compile/gcc/xgcc -mips3  test.c
> /home/embtools/tmp/ccRh1Pdw.s: Assembler messages:
> /home/embtools/tmp/ccRh1Pdw.s:19: Error: illegal operands `lui'
> /home/embtools/tmp/ccRh1Pdw.s:20: Error: illegal operands `addiu'
>
>    The assembly code that is failing is given below.
>
> <...>
> 19:        lui     $1,%hi(%neg(%gp_rel(main)))
> 20:        addiu   $1,$1,%lo(%neg(%gp_rel(main)))
> <...>
>
>     Any help will be greatly appreciated.
>
> thanks,
> Saravana
>
>


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux