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: Libjava (gij) testting on the mainline


Andrew Haley writes:
 > Andrew Pinski writes:
 >  > With clean sources on x86_64-linux-gnu, I am getting almost all tests 
 >  > for running gij to fail.  Does anyone know what is going on here?
 > 
 > I'll have a try now.

You are right.  The error is

lt-gij: relocation error: /home/aph/gcc/trunk/build-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/libjava/.libs/libgcj.so.7: symbol _Unwind_GetIPInfo, version GCC_4.2.0 not defined in file libgcc_s.so.1 with link time reference

The problem is that gij has a hard-coded rpath to the install dir:

[aph@zorro libjava]$ readelf -d .libs/lt-gij 

Dynamic section at offset 0x830 contains 27 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libgij.so.7]
 0x0000000000000001 (NEEDED)             Shared library: [libgcj.so.7]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x000000000000000f (RPATH)              Library rpath: [/home/aph/gcc/trunk/build-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/libjava/.libs:/home/aph/gcc/install/lib/../lib64]

Running `make install' fixes it.  :-(

Andrew.


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