Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: hirsch@air.steve.net (Steven N. Hirsch)
Subject: Re: cannot compile 2.1.96 on PC164
Date: 1998/04/17	[thread overview]
Message-ID: <slrn6jefj2.94.hirsch@air.steve.net> (raw)
In-Reply-To: edko-1604981819570001@k56-palm-00-40.ca.qnet.com


In article <edko-1604981819570001@k56-palm-00-40.ca.qnet.com>, Edwin Koshimoto wrote:
>Trying to compile 2.1.96 on my PC164 500Mhz Alpha yields the following:
>
>init/main.o: In function `checksetup':
>main.c(.text+0x200): undefined reference to `__builtin_memset'
>main.c(.text+0x204): undefined reference to `__builtin_memset'

I posted a patch to the kernel mailing list for this.  I'm not sure
which variant of gcc has __builtin_memset, but it isn't egcs-1.0.1 or
1.0.2 for sure.

Try:

--- linux/include/asm-alpha/string.h.orig	Fri Apr 10 06:25:33 1998
+++ linux/include/asm-alpha/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					    \







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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-16  4:00 cannot compile 2.1.96 on PC164 Edwin Koshimoto
1998-04-17  4:00 ` Mika Kortelainen
1998-04-17  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