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: Build of 4.1.0 in cross env


FERANDELLE Pascal wrote:
>
> So now, I have a complete cross powerpc-linux gcc chain in 4.1.0, and I test on a simple HelloWorld Java program.
> It does not link because there is an undefined reference to __tls_get_addr, needed by libgcj.so.
> I did not have this problem in 3.4.4.
>
> Any idea ?

It should be in the target lib libpthread.so.  Make sure your
LD_LIBRARY_PATH points to the dir where that lib resides.



The problem is that I don't have any __tls_get_addr in my target libpthread.so ...
And I don't have call to this reference in my native 4.1.0 libgcj.so.
Is this new reference generated only in cross env ?
Is there any way to bypass this ?

Yes, There is a new configure option added for exactly this reason.

RTFM about the --disable-tls top level configure option.

David Daney.


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