There is a -mv8 switch left in the source, it is imposible to compile it with gcc4 See in sysdeps/unix/sysv/linux/sparc/sparc32/Makefile An possible patch [work for me], maybe can be enhanched with pragmas deciding what compiler we have: --- sysdeps/unix/sysv/linux/sparc/sparc32/Makefile.orig 2003-08-31 20:22:46.000000000 +0300 +++ sysdeps/unix/sysv/linux/sparc/sparc32/Makefile 2005-06-26 18:58:07.000000000 +0300 @@ -4,7 +4,7 @@ # When I get this to work, this is the right thing ifeq ($(subdir),elf) -CFLAGS-rtld.c += -mv8 +CFLAGS-rtld.c += -mcpu=v7 -mtune=ultrasparc #rtld-routines += dl-sysdepsparc sysdep-others += lddlibc4 install-bin += lddlibc4
Works for me using the patch.
Subject: Bug 1037 CVSROOT: /cvs/glibc Module name: libc Changes by: roland@sources.redhat.com 2005-07-02 22:40:35 Modified files: sysdeps/unix/sysv/linux/sparc/sparc32: Makefile Log message: 2005-06-27 Jakub Jelinek <jj@ultra.linux.cz> [BZ #1037] * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: -mv8 is deprecated, use -mcpu=v8. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/sparc/sparc32/Makefile.diff?cvsroot=glibc&r1=1.11&r2=1.12
Fixed in the cvs.