Date: Mon, 17 Dec 2001 16:10:37 -0500 From: Jake Burkholder <jake@locore.ca> To: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de> Cc: Adam Kranzel <adam@blacktabby.org>, alpha@FreeBSD.ORG Subject: Re: Kernel builds broken? Message-ID: <20011217161037.F39205@locore.ca> In-Reply-To: <20011217211917.A73333@uriah.heep.sax.de>; from j@uriah.heep.sax.de on Mon, Dec 17, 2001 at 09:19:17PM %2B0100 References: <20011217083319.25adda22.adam@blacktabby.org> <20011217120232.E39205@locore.ca> <20011217211917.A73333@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 __<machine>__. > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011217161037.F39205>