Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Peter Rival <frival@zk3.dec.com>
To: axp-list@redhat.com
Subject: Re: kernel build for mikasa-primo
Date: Mon, 09 Aug 1999 17:46:00 -0400	[thread overview]
Message-ID: <37AF4C18.9EDF43FD@zk3.dec.com> (raw)
In-Reply-To: Pine.OSF.4.10.9908091620440.87331-100000@hunch.zk3.dec.com

James Barriault USG wrote:

> hi,
>
> I have a AS1000 5/400 which I am trying to build a kernel for.  Now
> regardless of the platform I try to build it on I get the following
> errors.  i have tried this with the kernel soucre provided by redhat 6.0
> as well as 2.2.9 and 10.  All with the same results. I'm hoping that it is
> something obvious that I am missing.  Anyone have any ideas?
>
> ld -static -T arch/alpha/vmlinux.lds  arch/alpha/kernel/head.o init/main.o
> init/version.o \
>         --start-group \
>         arch/alpha/kernel/kernel.o arch/alpha/mm/mm.o kernel/kernel.o
> mm/mm.o fs/fs.o ipc/ipc.o arch/alpha/math-emu/math-emu.o \
>         fs/filesystems.a \
>         net/network.a \
>         drivers/block/block.a drivers/char/char.a drivers/misc/misc.a
> drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a
> drivers/pci/pci.a drivers/video/video.a \
>         /usr/src/linux-2.2.10/arch/alpha/lib/lib.a
> /usr/src/linux-2.2.10/lib/lib.a /usr/src/linux-2.2.10/arch/alpha/lib/lib.a
> \
>         --end-group \
>         -o vmlinux
> arch/alpha/kernel/kernel.o: In function `mikasa_machine_check':
> sys_mikasa.c(.text+0xbd2c): undefined reference to `apecs_mcheck_expected'
> sys_mikasa.c(.text+0xbd88): undefined reference to `apecs_mcheck_taken'
> sys_mikasa.c(.text+0xbda0): undefined reference to `apecs_pci_clr_err'
> sys_mikasa.c(.text+0xbda4): undefined reference to `apecs_pci_clr_err'
> make: *** [vmlinux] Error 1
>

I just dug through real quickly under the 2.3.13-presomething base and it
appears that the problem comes from the fact that these are defined in
arch/alpha/kernel/core_apecs.c, which is never linked into
arch/alpha/kernel/kernel.o.

However (I'm loving this...no...really) if you just quickly fiddle bits in
the .config file to get core_apecs.o to link in instead of core_cia.o, there
are problems with things existing in core_cia.o not being defined in the
final link.  Fine, you say - add them both.  Nope - complains endlessly about
core_cia.o trying to redefine things such as cia_srm_writeq (IIRC) which it
insists is defined first in core_apecs.o.  Funny tho - core_apecs.c doesn't
refer to cia_srm anything.  I'm confused at this point, and dreadfully short
on both energy and caffeine...if I get a chance I'll look at it tomorrow.  It
smells like a buggered Makefile/config setting, but I just don't have the
<pick adjective> to dig into that unless no one else knows what's up.

 - Pete


  reply	other threads:[~1999-08-09 21:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-09 20:34 kernel build for mikasa-primo James Barriault USG
1999-08-09 21:46 ` Peter Rival [this message]
1999-08-10  0:12 ` RH6.0 Install! Antonio S. Martins Jr.
1999-08-10  0:33   ` Xiaozhou Qiu
1999-08-10  4:25 ` kernel build for mikasa-primo Richard Henderson
1999-08-10 11:11   ` Peter Rival
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox