From owner-freebsd-alpha Mon Dec 17 13: 8:15 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by hub.freebsd.org (Postfix) with ESMTP id 7150237B41F for ; Mon, 17 Dec 2001 13:07:58 -0800 (PST) Received: (from jake@localhost) by k6.locore.ca (8.11.6/8.11.6) id fBHLAh645379; Mon, 17 Dec 2001 16:10:43 -0500 (EST) (envelope-from jake) Date: Mon, 17 Dec 2001 16:10:37 -0500 From: Jake Burkholder To: Joerg Wunsch Cc: Adam Kranzel , alpha@FreeBSD.ORG Subject: Re: Kernel builds broken? Message-ID: <20011217161037.F39205@locore.ca> References: <20011217083319.25adda22.adam@blacktabby.org> <20011217120232.E39205@locore.ca> <20011217211917.A73333@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011217211917.A73333@uriah.heep.sax.de>; from j@uriah.heep.sax.de on Mon, Dec 17, 2001 at 09:19:17PM +0100 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Apparently, On Mon, Dec 17, 2001 at 09:19:17PM +0100, Joerg Wunsch said words to the effect of; > As Jake Burkholder wrote: > > > > nsions -ansi -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sy > > > s/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/../include > > > -D_KERNEL -ffreestanding -include opt_global.h -elf -mno-fp-regs -ffixed-8 -Wa, > > > -mev56 vers.c > > > linking kernel > > > fd.o: In function `fd_probe': > > > fd.o(.text+0x18a4): undefined reference to `rtcin' > > Sorry for the breakage. > > > It looks like the ifdefs to skip some of the code for non-i386 are > > broken. > > > > #if _MACHINE_ARCH == i386 in fd_probe() should be #ifdef __i386__. > > Normally not. #ifdef __i386__ would match the host system type, not > the target system. Hmm. I think that the build system will do this correctly. The define for the machine arch is in the compiler specs, so if you build with a cross compiler targeting alpha on an i386, it will correctly define __alpha__. All of the other ifdefs of this form in the tree are as I describe. > Why is _MACHINE_ARCH == i386 on an Alpha system? Maybe because its spelt MACHINE_ARCH? I don't know if these defines even exist as preprocessor directives, I only know of the make variable. As I said, the definition for the machine type is in the compiler specs and is ____. > > I don't mind making the change as a stop-gap measure to fix the Alpha > build process, but in the long run, we should find a correct solution. > > -- > cheers, J"org .-.-. --... ...-- -.. . DL8DTL > > http://www.sax.de/~joerg/ NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message