Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: hirsch@air.steve.net (Steven N. Hirsch)
Subject: Re: 2.1.94 fails to compile on UDB
Date: 1998/04/10	[thread overview]
Message-ID: <slrn6irt2o.jp.hirsch@air.steve.net> (raw)
In-Reply-To: 352d1986.0@oit.umass.edu


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




      reply	other threads:[~1998-04-10  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-09  4:00 2.1.94 fails to compile on UDB Michael Gilbert
1998-04-10  4:00 ` Steven N. Hirsch [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox