public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building GCC 3.2.3 for mips
@ 2004-09-17 14:54 SARAVANAP
  2004-09-17 23:09 ` Muthukumar Ratty
  0 siblings, 1 reply; 2+ messages in thread
From: SARAVANAP @ 2004-09-17 14:54 UTC (permalink / raw)
  To: gcc-help

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Building GCC 3.2.3 for mips
  2004-09-17 14:54 Building GCC 3.2.3 for mips SARAVANAP
@ 2004-09-17 23:09 ` Muthukumar Ratty
  0 siblings, 0 replies; 2+ messages in thread
From: Muthukumar Ratty @ 2004-09-17 23:09 UTC (permalink / raw)
  To: SARAVANAP; +Cc: gcc-help


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-17 23:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-17 14:54 Building GCC 3.2.3 for mips SARAVANAP
2004-09-17 23:09 ` Muthukumar Ratty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).