sparc64 native glibc build breakage
Error
gcc -mcpu=ultrasparc -mtune=ultrasparc -mvis -save-temps -m64 -pie -Wl,-O1 -DIS_IN_nscd=1 -D_FORTIFY_SOURCE=2 -fpie -fstack-protector \
-Wl,-dynamic-linker=/lib/ld-linux.so.2 -Wl,-z,relro -Wl,-z,now \
-B/usr/src/glibc-64bit/csu/ \
\
\
-L/usr/src/glibc-64bit -L/usr/src/glibc-64bit/math -L/usr/src/glibc-64bit/elf -L/usr/src/glibc-64bit/dlfcn -L/usr/src/glibc-64bit/nss -L/usr/src/glibc-64bit/nis -L/usr/src/glibc-64bit/rt -L/usr/src/glibc-64bit/resolv -L/usr/src/glibc-64bit/crypt -L/usr/src/glibc-64bit/nptl -Wl,-rpath-link=/usr/src/glibc-64bit:/usr/src/glibc-64bit/math:/usr/src/glibc-64bit/elf:/usr/src/glibc-64bit/dlfcn:/usr/src/glibc-64bit/nss:/usr/src/glibc-64bit/nis:/usr/src/glibc-64bit/rt:/usr/src/glibc-64bit/resolv:/usr/src/glibc-64bit/crypt:/usr/src/glibc-64bit/nptl \
-o /usr/src/glibc-64bit/nscd/nscd /usr/src/glibc-64bit/nscd/nscd.o /usr/src/glibc-64bit/nscd/connections.o /usr/src/glibc-64bit/nscd/pwdcache.o /usr/src/glibc-64bit/nscd/getpwnam_r.o /usr/src/glibc-64bit/nscd/getpwuid_r.o /usr/src/glibc-64bit/nscd/grpcache.o /usr/src/glibc-64bit/nscd/getgrnam_r.o /usr/src/glibc-64bit/nscd/getgrgid_r.o /usr/src/glibc-64bit/nscd/hstcache.o /usr/src/glibc-64bit/nscd/gethstbyad_r.o /usr/src/glibc-64bit/nscd/gethstbynm2_r.o /usr/src/glibc-64bit/nscd/dbg_log.o /usr/src/glibc-64bit/nscd/nscd_conf.o /usr/src/glibc-64bit/nscd/nscd_stat.o /usr/src/glibc-64bit/nscd/cache.o /usr/src/glibc-64bit/nscd/mem.o /usr/src/glibc-64bit/nscd/nscd_setup_thread.o /usr/src/glibc-64bit/nscd/xmalloc.o /usr/src/glibc-64bit/nscd/xstrdup.o /usr/src/glibc-64bit/nscd/aicache.o /usr/src/glibc-64bit/nscd/initgrcache.o /usr/src/glibc-64bit/nscd/gai.o /usr/src/glibc-64bit/rt/librt.so /usr/src/glibc-64bit/nptl/libpthread_nonshared.a /usr/src/glibc-64bit/nptl/libpthread.so /usr/src/glibc-64bit/nis/libnsl.so /usr/src/glibc-64bit/libc_nonshared.a
/tools/lib/gcc/sparc64-unknown-linux-gnu/4.1.0/../../../../sparc64-unknown-linux-gnu/bin/ld: Register %g7 used incompatibly: #scratch in /usr/src/glibc-64bit/nscd/dbg_log.o, previously __thread_self in /usr/src/glibc-64bit/nscd/nscd.o
/usr/src/glibc-64bit/nscd/dbg_log.o: could not read symbols: File format not recognized
collect2: ld returned 1 exit status
Dredged out of the Fedora Core 5 SRPM gcc-4.1.0-20060304.tar.bz2.