Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Steven N. Hirsch" <shirsch@ibm.net>
To: "s.c. trusty" <alpharht@omega.croesus.net>
Cc: axp-list@redhat.com
Subject: Re: 2.1.87 and up compile problem... __builtin_memset
Date: Fri, 24 Apr 1998 21:35:37 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.3.95.980424213405.4578B-100000@air.steve.net> (raw)
In-Reply-To: <Pine.LNX.3.96.980424165552.10152A-100000@omega.croesus.net>



On Fri, 24 Apr 1998, s.c. trusty wrote:

> hi folks.
> 
> haven't been able to compile a kernel since 2.1.87... always get:
> 
> make[1]: Leaving directory `/usr/src/linux/arch/alpha/math-emu'
> ld -static -T arch/alpha/vmlinux.lds arch/alpha/kernel/head.o init/main.o
> init/version.o \
>         arch/alpha/kernel/kernel.o arch/alpha/mm/mm.o kernel/kernel.o
> mm/mm.o fs/fs.o ipc/ipc.o arch/alpha/math-emu/math-emu.o \
>         fs/filesystems.a \
>         net/network.a \
>         drivers/block/block.a drivers/char/char.a drivers/misc/misc.a
> drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a
> drivers/pci/pci.a \
>         /usr/src/linux/arch/alpha/lib/lib.a /usr/src/linux/lib/lib.a
> /usr/src/linux/arch/alpha/lib/lib.a \
>         -o vmlinux
> init/main.o: In function `checksetup':
> main.c(.text+0x21c): undefined reference to `__builtin_memset'
> main.c(.text+0x220): undefined reference to `__builtin_memset'
> main.c(.text+0x258): undefined reference to `__builtin_memset'
> main.c(.text+0x25c): undefined reference to `__builtin_memset'
> main.c(.text+0x294): undefined reference to `__builtin_memset'
> init/main.o(.text+0x298):main.c: more undefined references to
> `__builtin_memset' follow
> make: *** [vmlinux] Error 1

I posted the patch below on several occasions.  I don't know which version
of gcc actually has __builtin_memset, but it isn't egcs-1.0.1 or 1.0.2..

--- 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					    \



Steve




  reply	other threads:[~1998-04-25  1:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199801312035.NAA09198@ellpspace.math.ualberta.ca>
1998-04-24 23:58 ` 2.1.87 and up compile problem... __builtin_memset s.c. trusty
1998-04-25  1:35   ` Steven N. Hirsch [this message]
1998-04-25  2:30   ` Wes Bauske
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