This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: __tls_get_addr()


Al Niessner wrote:
I did a google for the patch and found nothing. Can you suggest where to
find it or what its name is?


It was sent by me to the gcc-patches@gcc.gnu.org mailing list sometime within the past year.


These are relevant to your problem:

http://gcc.gnu.org/ml/gcc-patches/2006-11/msg00521.html
http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00723.html

David Daney



On Fri, 2007-01-05 at 17:45 -0800, David Daney wrote:

Al Niessner wrote:

I am trying to build gcj 4.1.0 for a PPC 405. gcc/g++ work well enough,
but no matter how I compile gcj I always get undefined references to
__tls_get_addr() in libgcj. I have searched the web and scanned the news
group, but did not find anything overly helpful. I have tried compiling
with --disable-tls and --without-tls and --with-tls. In all cases I am
getting a libgcj that wants tls and a glibc that does not. In fact, I do
not think that glibc is supporting it at all for some reason on the
PPC-405. Normally I would think gcc/glibc had something to do with all
this, but those tools work just fine together. It seems to be the gcj
that is the odd man out today. Any suggestions or known flags that I
should set to fix this?


IIRC I added --disable-tls in 4.2, so it might not work in 4.1. I don't have time to verify in exactly which version --disable-tls appeared, but I suspect that 4.1.0 is missing it and that is your problem. You could try back-porting the patch to your version.


David Daney


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