Linux MIPS Architecture development
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <200212172100.27296.jscheel@activevb.de> (raw)

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

             reply	other threads:[~2002-12-17 20:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-17 20:00 Julian Scheel [this message]
2002-12-18  0:11 ` MIPS64 kernel cross-compiling Ralf Baechle
2002-12-18 21:31   ` Julian Scheel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200212172100.27296.jscheel@activevb.de \
    --to=jscheel@activevb.de \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox