linux-mips
[Top] [All Lists]

MIPS64 kernel cross-compiling

To: linux-mips@linux-mips.org
Subject: MIPS64 kernel cross-compiling
From: Julian Scheel <jscheel@activevb.de>
Date: Tue, 17 Dec 2002 21:00:27 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.5
Hi,

we're trying to compile a kernel for an embedded system with a 
MIPS64-processor on it.
We tried first with your CVS-sources, but there we get this error:

-----
  Generating include/linux/version.h (unchanged)
make[1]: Nothing to be done for `__build'.
  SPLIT  include/linux/autoconf.h -> include/config/*
make -f scripts/Makefile.build obj=arch/mips64/kernel 
arch/mips64/kernel/offset.s
make[1]: `arch/mips64/kernel/offset.s' is up to date.
/bin/sh: arch/mips64/kernel/offset.s: Datei oder Verzeichnis nicht gefunden
-----

Afterwards we changed to the 2.4.20 stock kernel, there we have managed to get 
the kernel compiling the first steps. We're using the algor SDE-Toolchain and 
on make vmlinux, we get masses of parse-errors.
Our point of view is, that the compiler tries to link to include/asm instead 
of include/asm-mips64, but doing a dirty simlink from asm to asm-mips64 
didn't really improve our situation.
Here are some of the errors we get:

----
sde-gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer 
-mips64    -I /usr/src/linux-2.4.20/include/asm-mips64/gcc -mabi=64 -G 0 
-mno-abicalls -fno-pic -Wa,--trap -pipe   -DKBUILD_BASENAME=main -c -o 
init/main.o init/main.c
In file included from /usr/src/linux-2.4.20/include/asm/system.h:14,
                 from /usr/src/linux-2.4.20/include/asm/processor.h:36,
                 from /usr/src/linux-2.4.20/include/linux/prefetch.h:13,
                 from /usr/src/linux-2.4.20/include/linux/list.h:6,
                 from /usr/src/linux-2.4.20/include/linux/wait.h:14,
                 from /usr/src/linux-2.4.20/include/linux/fs.h:12,
                 from /usr/src/linux-2.4.20/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.20/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.20/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.20/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.20/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.20/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.20/include/asm/sgidefs.h:18:39: #error Use a Linux compiler 
or give up.
[...]
In file included from /usr/src/linux-2.4.20/include/linux/pagemap.h:16,
                 from /usr/src/linux-2.4.20/include/linux/locks.h:8,
                 from /usr/src/linux-2.4.20/include/linux/blk.h:5,
                 from init/main.c:25:
/usr/src/linux-2.4.20/include/linux/highmem.h: In function `kmap':
/usr/src/linux-2.4.20/include/linux/highmem.h:68: `PAGE_OFFSET' undeclared 
(first use in this function)
/usr/src/linux-2.4.20/include/linux/highmem.h:68: warning: control reaches end 
of non-void function
init/main.c: In function `start_kernel':
init/main.c:383: `PAGE_OFFSET' undeclared (first use in this function)
make: *** [init/main.o] Error 1
----

hoping for a bit of help (c:

-- 
Grüße,
Julian, Paco

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