All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: How to compile x86 kernels on Opteron (Fedora core 3)?
Date: Mon, 22 Nov 2004 14:03:27 -0800	[thread overview]
Message-ID: <41A2622F.1070203@candelatech.com> (raw)

Hello!

I am trying to compile a 2.4.27 kernel for pentium-2 on an x86_64 Opteron
system (Fedora Core 3).  I tried editing the Makefile to add -m32 to the gcc
argument, and I added ARCH=i386 to all of the 'make' commands.

The first problem I see is that /sbin/genksyms does not exist on FC3.  I am
not sure where this is supposed to come from, but I coppied a version
from an different machine and it seems to work OK...

After that, the build still fails, complaining about conflicting types for
various things:

home/greear/kernel/2.4/linux-2.4.27.p2/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
...
sched.c:213: error: conflicting types for 'reschedule_idle'
sched.c:210: error: previous declaration of 'reschedule_idle' was here
sched.c:213: error: conflicting types for 'reschedule_idle'
sched.c:210: error: previous declaration of 'reschedule_idle' was here


I also tried building in a debian chroot (the binaries there is regular i386).
This mostly worked but it failed to build something down in the aic scsi code...

So, has anyone got a recipe for cross-compiling regular x86 2.4 and/or 2.6 kernels on an
x86_64 system?

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


                 reply	other threads:[~2004-11-22 22:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=41A2622F.1070203@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=linux-kernel@vger.kernel.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 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.