This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

RedHat --> MIPS gcc cross-compile Problem




Hi

I am trying to cross compile gcc for an MIPS on a RedHat Linux 6.0, using
the unified tree approach (binutils+gcc+newlib)

---
** The "gcc -v" output is: 
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
------
** The configure command is 
../src/configure --with-gnu-ar --with-gnu-as --with-gnu-ld
--prefix=/usr/local/mips  --exec-prefix=/usr/local/mips --target=mips
--with-newlib --disable-shared 
--------
** The make command is
make cross LANGUAGES="c c++"
-----

** PROBLEM **: This produces the following errors: (last part only)

...
...
/usr/local/mips/build/gcc/xgcc -B/usr/local/mips/build/gcc/ -nostdinc
-B/usr/local/mips/build/mips/newlib/ -isystem
/usr/local/mips/build/mips/newlib/targ-include -isystem
/usr/local/mips/src/newlib/libc/include -B/usr/local/mips/mips/bin/
-B/usr/local/mips/mips/lib/ -isystem /usr/local/mips/mips/include
-L/usr/local/mips/build/ld -DNO_EXECUTE_PERMISSION=1 -DSILENT=1
-DNO_SIGNALS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DNO_SIGSET=1
-DNO_CLOCK=1 -DSMALL_CONFIG=1 -DNO_DEBUGGING=1 -I. -I../../../src/boehm-gc
-I././targ-include -I./../../../src/boehm-gc/./libc/include -fno-builtin
-g -O2 -I././targ-include -I./../../../src/boehm-gc/./libc/include
-fno-builtin -Wp,-P -x assembler-with-cpp -c
../../../src/boehm-gc/mips_sgi_mach_dep.s -o mips_sgi_mach_dep.o
/tmp/ccRzTR6K.s: Assembler messages:
/tmp/ccRzTR6K.s:3: Error: unrecognized opcode `nested(GC_push_regs,
32,$31)'
/tmp/ccRzTR6K.s:4: Warning: .mask outside of .ent
/tmp/ccRzTR6K.s:4: Error: Rest of line ignored. First ignored character is
`0'.
/tmp/ccRzTR6K.s:6: Error: unrecognized opcode `setup_gpx($24)'
/tmp/ccRzTR6K.s:7: Error: unrecognized opcode `ptr_subu $sp,32'
/tmp/ccRzTR6K.s:8: Error: unrecognized opcode `save_gp(32 -(2*SZREG))'
/tmp/ccRzTR6K.s:9: Error: unrecognized opcode `reg_s $31,32-SZREG($sp)'
/tmp/ccRzTR6K.s:10: Warning: No .cprestore pseudo-op used in PIC code
/tmp/ccRzTR6K.s:11: Warning: No .cprestore pseudo-op used in PIC code
/tmp/ccRzTR6K.s:12: Warning: No .cprestore pseudo-op used in PIC code
/tmp/ccRzTR6K.s:13: Warning: No .cprestore pseudo-op used in PIC code
/tmp/ccRzTR6K.s:14: Warning: No .cprestore pseudo-op used in PIC code
/tmp/ccRzTR6K.s:15: Warning: No .cprestore pseudo-op used in PIC code
/tmp/ccRzTR6K.s:16: Warning: No .cprestore pseudo-op used in PIC code
/tmp/ccRzTR6K.s:17: Warning: No .cprestore pseudo-op used in PIC code
/tmp/ccRzTR6K.s:18: Warning: No .cprestore pseudo-op used in PIC code
/tmp/ccRzTR6K.s:19: Warning: No .cprestore pseudo-op used in PIC code
/tmp/ccRzTR6K.s:20: Warning: No .cprestore pseudo-op used in PIC code
/tmp/ccRzTR6K.s:21: Error: unrecognized opcode `reg_l $31,32-SZREG($sp)'
/tmp/ccRzTR6K.s:22: Error: unrecognized opcode `ptr_addu $sp,32'
/tmp/ccRzTR6K.s:24: Warning: .end directive without a preceding .ent
directive
/tmp/ccRzTR6K.s:24: Error: Rest of line ignored. First ignored character
is `G'.
make[2]: *** [mips_sgi_mach_dep.lo] Error 1
make[2]: Leaving directory `/usr/local/mips/build/mips/boehm-gc'
make[1]: *** [all-target-boehm-gc] Error 2
make[1]: Leaving directory `/usr/local/mips/build'
make: *** [cross] Error 2



Would somebody help me please? Thanks in advance.

-Prabhakar



-------------------------------------------------------------------------------
Prabhakar Sarma Neog			     Phone: +91-361-690321 to 690328
Computer Engineer,			     Fax:   +91-361-690762
Indian Institute of Technology, Guwahati.
-------------------------------------------------------------------------------



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