This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Libjava (gij) testting on the mainline
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Andrew Haley <aph at redhat dot com>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, gcc-patches at gcc dot gnu dot org, GCC Development <gcc at gcc dot gnu dot org>, java at gcc dot gnu dot org
- Date: Wed, 1 Mar 2006 07:10:44 -0800
- Subject: Re: PATCH: Libjava (gij) testting on the mainline
- References: <41bdabf64db69b747f9b980eee938cc7@physics.uc.edu> <17413.29112.513103.670080@zapata.pink> <17413.35351.514991.391567@zapata.pink> <20060301140645.GB17673@lucon.org> <17413.43913.279621.338882@zapata.pink>
On Wed, Mar 01, 2006 at 02:11:21PM +0000, Andrew Haley wrote:
> H. J. Lu writes:
> > On Wed, Mar 01, 2006 at 11:48:39AM +0000, Andrew Haley wrote:
> > > 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. :-(
> > >
> >
> > The fix was posted at
> >
> > http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01486.html
>
> If it still works, please check it in.
Ooops. The correct patch is
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg00663.html
for ltmain.sh. Libtool is braindead when libgcc_s is involved. Should
I check it in once it is verified?
H.J.