I am using the cross-compiler utilities (by Ralf Baechle) installed on an
i386 system.
[ 2569426 Jun 22 11:19 binutils-x-mips-2.8.1-1.i386.rpm
1499625 Jun 22 11:19 gcc-x-mips-2.7.2.2-1.i386.rpm ]
---$ make CROSS_COMPILE=mips-linux- zImage mips-linux-gcc -D__KERNEL__ -I/usr/src/linux-2.2.10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -m cpu=r4600 -mips2 -pipe -c -o init/main.o init/main.c /usr/src/linux-2.2.10/include/asm/io.h: In function `copro_timeout': /usr/src/linux-2.2.10/include/asm/io.h:87: `asm' operand requires impossible reload /usr/src/linux-2.2.10/include/asm/io.h:87: `asm' operand requires impossible reload /usr/src/linux-2.2.10/include/asm/bugs.h: In function `check_fpu': In file included from init/main.c:27: /usr/src/linux-2.2.10/include/asm/bugs.h:135: internal error--insn does not satisfy its constraints: (insn 244 241 250 (set (reg:SI 66 accum) (reg:SI 6 a2)) 159 {movsi_internal2} (insn_list 241 (insn_list:REG_DEP_ANTI 98 (insn_list:REG_DEP_OUTPUT 139 (insn_list:REG_DEP_ANTI 247 (insn_list:REG_DEP_ANTI 151 (nil)))))) (nil)) mips-linux-gcc: Internal compiler error: program cc1 got fatal signal 6 make: *** [init/main.o] Error 1 [<-=¤¤ r00t ¤¤=->] @pangea cwd: /usr/src/linux ]$ cpp: output pipe has been closed {standard input}: Assembler messages: {standard input}:44: Error: unrecognized opcode `movl' {standard input}:49: Error: unrecognized opcode `movl' {standard input}:91: Error: unrecognized opcode `andl' {standard input}:103: Error: unrecognized opcode `outb' {standard input}:104: Error: unrecognized opcode `outb' {standard input}:109: Error: unrecognized opcode `outb' {standard input}:110: Error: unrecognized opcode `outb'
One would suggest that this is probably related to a flaw in the compiler, but I just wanted to make sure if the kernel could have anything to do with this?
If so: is there a newer version of this crosscompiler available? (that is known to work?), or are there perhaps other crosscompilers floating around somewhere?
Best regards, Martin Andersen
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/