* MIPS64 kernel cross-compiling
@ 2002-12-17 20:00 Julian Scheel
2002-12-18 0:11 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Julian Scheel @ 2002-12-17 20:00 UTC (permalink / raw)
To: linux-mips
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MIPS64 kernel cross-compiling
2002-12-17 20:00 MIPS64 kernel cross-compiling Julian Scheel
@ 2002-12-18 0:11 ` Ralf Baechle
2002-12-18 21:31 ` Julian Scheel
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2002-12-18 0:11 UTC (permalink / raw)
To: Julian Scheel; +Cc: linux-mips
On Tue, Dec 17, 2002 at 09:00:27PM +0100, Julian Scheel wrote:
> From: Julian Scheel <jscheel@activevb.de>
> To: linux-mips@linux-mips.org
> Subject: MIPS64 kernel cross-compiling
> Date: Tue, 17 Dec 2002 21:00:27 +0100
> Content-Type: text/plain;
> charset="iso-8859-15"
>
> 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
> -----
2.5. Don't dream about using it current. Use the linux_2_4 branch.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MIPS64 kernel cross-compiling
2002-12-18 0:11 ` Ralf Baechle
@ 2002-12-18 21:31 ` Julian Scheel
0 siblings, 0 replies; 3+ messages in thread
From: Julian Scheel @ 2002-12-18 21:31 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips
As you read, we changed to stock 2.4.20 after the first error.
Any ideas how to fix the second problem?
Am Mittwoch, 18. Dezember 2002 01:11 schrieb Ralf Baechle:
> 2.5. Don't dream about using it current. Use the linux_2_4 branch.
>
> Ralf
--
Grüße,
Julian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-12-18 21:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-17 20:00 MIPS64 kernel cross-compiling Julian Scheel
2002-12-18 0:11 ` Ralf Baechle
2002-12-18 21:31 ` Julian Scheel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.