This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 for the cross-compiled - (config and nscd)
and 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]