Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 2.1.87 and up compile problem... __builtin_memset
       [not found] <199801312035.NAA09198@ellpspace.math.ualberta.ca>
@ 1998-04-24 23:58 ` s.c. trusty
  1998-04-25  1:35   ` Steven N. Hirsch
  1998-04-25  2:30   ` Wes Bauske
  0 siblings, 2 replies; 3+ messages in thread
From: s.c. trusty @ 1998-04-24 23:58 UTC (permalink / raw)
  To: axp-list

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


---

any ideas?

thanks in advance,

stuart trusty,
sysadmin
linux labs,
tucson.az.us


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

* Re: 2.1.87 and up compile problem... __builtin_memset
  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
  1998-04-25  2:30   ` Wes Bauske
  1 sibling, 0 replies; 3+ messages in thread
From: Steven N. Hirsch @ 1998-04-25  1:35 UTC (permalink / raw)
  To: s.c. trusty; +Cc: axp-list



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




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

* Re: 2.1.87 and up compile problem... __builtin_memset
  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
@ 1998-04-25  2:30   ` Wes Bauske
  1 sibling, 0 replies; 3+ messages in thread
From: Wes Bauske @ 1998-04-25  2:30 UTC (permalink / raw)
  To: axp-list

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
>
> ---
>
> any ideas?

I just built 2.1.97 on a RH5.0 system with only minor problems (lp.o had a bad variable so I
just removed printer support since it wasn't critical).

Wes


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

end of thread, other threads:[~1998-04-25  1:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
1998-04-25  2:30   ` Wes Bauske

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