[Top] [All Lists]

help cross-compiling MIPS-kernel on i386 linux

Subject: help cross-compiling MIPS-kernel on i386 linux
From: Kristoff Bonne <>
Date: Wed, 12 Aug 1998 16:34:05 +0200 (MET DST)
Reply-to: Kristoff Bonne <>

This is the first time I try to cross-compile a linux-kernel, so this may be a 
question, but I'll ask it anyway.

I've ftp'ed and installed the following files onto a (intel) linux-box:
- linux-2.1.99.tar.gz
- mipsel-binutils-2.8.1-linux.i386.tar.gz
- mipsel-gcc-2.7.2-linux.i386.tar.gz
- patch-2.1.99-pl2.tar.gz

$ cd $home/MIPS_linux/linux
$ make menuconfig
$ make dep ; make clean
$ make zImage

And then, thing start to go wrong!

* First of all, this:
as: unrecognized option `-cpu=r3000'

* This was just a warning, but then an error saying he cannot find a file 
It appears the mipsel-linux-gcc command misses a '-I' option. (-I 

I don't really know what file I need to edit to include this. Some 'Makefile', 

* when I enter the command manually
$ mipsel-linux-gcc -D__KERNEL__ -I/home/kristoff/MIPS_linux/linux/include  -I 
-Wstrict-prototypes -O2 -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic 
-mips1 -pipe  -c -o init/main.o init/main.c

I get a even stranger error:
--- cut ---
as: unrecognized option `-cpu=r3000'
/home/kristoff/MIPS_linux/linux/include/asm/bugs.h: In function `check_bugs':
In file included from init/main.c:39:
/home/kristoff/MIPS_linux/linux/include/asm/bugs.h:43: output pipe has been 
cpp: output pipe has been closed
mipsel-linux-gcc: Internal compiler error: program cc1 got fatal signal 13
--- cut ---

Looks to me like some bug in the source-code, but I did not see anything wrong 
installing the kernel source-code, nor when applying to path.
(I did apply 'patch-2.1.99-pl2.tar.gz' on the original source-code).

Anybody any idea?

Cheerio! Kr. Bonne.
Bonne Kristoff                              belgacom multimedia
(C=BE,A=RTT,P=RTTIPC,S=BONNE,G=Kristoff)    operations belbone                  fax: +32 2 2024123

<Prev in Thread] Current Thread [Next in Thread>