This is the mail archive of the
mailing list for the glibc project.
Sparc64 Glibc 2.4 Build issue
- From: Jim Gifford <maillist at jg555 dot com>
- To: libc-alpha at sourceware dot org
- Date: Sat, 29 Apr 2006 15:54:02 -0700
- Subject: Sparc64 Glibc 2.4 Build issue
GCC 4.10 - Binutils 2.16.92 - Glibc 2.4
When cross-compiling GLIBC 2.4, everything build ok, but when we build
for the final-system build, we run into this strange error.
/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
Now adding <include "tls.h"> to dbg_log.c fixes the issue.
I have compared both builds of nscd and both configs from the build, and I can't see where the
the difference occurs.
I have the posted at
http://ftp.jg555.com/errors/cross for the cross-compiled - (config and nscd)
http://ftp.jg555.com/errors/native for the build that fails
I've done several builds on other architectures, with no problems, just Sparc seems to be an issue
with this configuration.
Any suggestions or ideas. I have both systems at the ready to test things out.