* Re: 2.1.94 fails to compile on UDB
1998-04-09 4:00 2.1.94 fails to compile on UDB Michael Gilbert
@ 1998-04-10 4:00 ` Steven N. Hirsch
0 siblings, 0 replies; 2+ messages in thread
From: Steven N. Hirsch @ 1998-04-10 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread