From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,f2247996fa4e6c66 X-Google-Attributes: gid111c93,public From: hirsch@air.steve.net (Steven N. Hirsch) Subject: Re: 2.1.94 fails to compile on UDB Date: 1998/04/10 Message-ID: #1/1 X-Deja-AN: 342716639 References: <352d1986.0@oit.umass.edu> X-Notice: should be forwarded in their entirety to postmaster@ibm.net X-Trace: 10 Apr 98 11:25:35 GMT, 32.100.110.96 Organization: IBM.NET Reply-To: shirsch@ibm.net Newsgroups: comp.os.linux.alpha In article <352d1986.0@oit.umass.edu>, Michael Gilbert wrote: >2.1.94 fails to compile on my UDB with the following output: > >init/main.o: In function `checksetup': >main.c(.text+0x22c): undefined reference to `__builtin_memset' >main.c(.text+0x230): undefined reference to `__builtin_memset' >main.c(.text+0x268): undefined reference to `__builtin_memset' >main.c(.text+0x26c): undefined reference to `__builtin_memset' >init/main.o: In function `calibrate_delay': >main.c(.text+0x2a4): undefined reference to `__builtin_memset' >init/main.o(.text+0x2a8):main.c: more undefined references to >`__builtin_memset' followmake: *** [vmlinux] Error 1 > >The `__builtin_memset' reference seems to come from >include/asm-alpha/string.h My bet is that you are using egcs-1.0.1 to build, no? If so, it doesn't seem to actually have a builtin memset. Try: --- linux/include/asm/string.h.orig Fri Apr 10 06:25:33 1998 +++ linux/include/asm/string.h Thu Apr 9 19:28:23 1998 @@ -24,7 +24,8 @@ extern void * __constant_c_memset(void *, unsigned long, long); extern void * __memset(void *, char, size_t); -#if __GNUC__ > 2 || __GNUC_MINOR__ >= 8 +/* #if __GNUC__ > 2 || __GNUC_MINOR__ >= 8 */ +#if 0 #define memset(s, c, n) \ (__builtin_constant_p(c) \ ? (__builtin_constant_p(n) && (c) == 0 \ You will also need to fix: --- linux/drivers/char/tga.c.orig Mon Apr 6 22:06:58 1998 +++ linux/drivers/char/tga.c Thu Apr 9 06:15:34 1998 @@ -472,12 +472,11 @@ tga_console_init(void)) { struct pci_dev *dev; - int status; /* * first, find the TGA among the PCI devices... */ - if (! (dev = pci_find_device(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TGA, NULL))) + if (! (dev = pci_find_device(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TGA, NULL))) { /* PANIC!!! */ printk("tga_console_init: TGA not found!!! :-(\n"); return; Steve