linux-mips-fnet
[Top] [All Lists]

help cross-compiling MIPS-kernel on i386 linux

To: linux-mips@fnet.fr
Subject: help cross-compiling MIPS-kernel on i386 linux
From: Kristoff Bonne <kristoff.bonne@belbone.net>
Date: Wed, 12 Aug 1998 16:34:05 +0200 (MET DST)
Reply-to: Kristoff Bonne <kristoff.bonne@belbone.net>
Greetings,

This is the first time I try to cross-compile a linux-kernel, so this may be a 
stupid 
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 
called 
'stdarg.h'.
It appears the mipsel-linux-gcc command misses a '-I' option. (-I 
/home/kristoff/MIPS_linux/usr/local/lib/gcc-lib/mipsel-linux/2.7.2/include/)

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

* when I enter the command manually
$ mipsel-linux-gcc -D__KERNEL__ -I/home/kristoff/MIPS_linux/linux/include  -I 
/home/kristoff/MIPS_linux/usr/local/lib/gcc-lib/mipsel-linux/2.7.2/include/ 
-Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic 
-mcpu=r3000 
-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 
closed
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 
when 
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
Kristoff.bonne@belbone.net                  fax: +32 2 2024123

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