From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,375d1601851f052b X-Google-Attributes: gid111c93,public From: hirsch@air.steve.net (Steven N. Hirsch) Subject: Re: cannot compile 2.1.96 on PC164 Date: 1998/04/17 Message-ID: #1/1 X-Deja-AN: 344991154 References: X-Notice: should be forwarded in their entirety to postmaster@ibm.net X-Trace: 17 Apr 98 11:32:19 GMT, 32.100.110.12 Organization: IBM.NET Reply-To: shirsch@ibm.net Newsgroups: comp.os.linux.alpha In article , 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 \