Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* 2.1.94 fails to compile on UDB
@ 1998-04-09  4:00 Michael Gilbert
  1998-04-10  4:00 ` Steven N. Hirsch
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Gilbert @ 1998-04-09  4:00 UTC (permalink / raw)



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

Any suggestions?

MICHAEL Wm. GILBERT  mgilbert@oit.umass.edu
Technology Development and Special Projects
Office of Information Technology (OIT)
University of Massachusetts at Amherst
Voice: 413-545-3124   Fax: 413-545-3203
A115 Lederle Graduate Research Center
UMASS Amherst, MA 01003 USA



^ permalink raw reply	[flat|nested] 2+ messages in thread

* 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

end of thread, other threads:[~1998-04-10  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-09  4:00 2.1.94 fails to compile on UDB Michael Gilbert
1998-04-10  4:00 ` Steven N. Hirsch

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