From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4282 invoked from network); 9 Aug 1999 21:46:14 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 9 Aug 1999 21:46:14 -0000 Received: from mail11.digital.com (mail11.digital.com [192.208.46.10]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id RAA32611 for ; Mon, 9 Aug 1999 17:46:13 -0400 Received: from flume.zk3.dec.com (yflume.zk3.dec.com [16.140.16.14]) by mail11.digital.com (8.9.2/8.9.2/WV2.0g) with ESMTP id RAA19043 for ; Mon, 9 Aug 1999 17:46:02 -0400 (EDT) Received: from wavy1.zk3.dec.com by flume.zk3.dec.com (8.8.8/1.1.8.2/16Jan95-0946AM) id RAA0000019437; Mon, 9 Aug 1999 17:46:01 -0400 (EDT) Received: from zk3.dec.com by wavy1.zk3.dec.com (8.8.8/1.1.20.6/22Jan99-0226PM) id RAA0000536131; Mon, 9 Aug 1999 17:46:01 -0400 (EDT) Sender: frival@wavy1.zk3.dec.com Message-ID: <37AF4C18.9EDF43FD@zk3.dec.com> Date: Mon, 09 Aug 1999 17:46:00 -0400 From: Peter Rival Organization: Tru64 UNIX Release Engineering Systems X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.3.10 alpha) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: kernel build for mikasa-primo References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 to dig into that unless no one else knows what's up. - Pete