public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Shared libobjc in gcc 3.0.2 doesn't work with "make check"
@ 2001-10-16 23:46 H . J . Lu
  2001-10-17  0:58 ` Franz Sirl
  0 siblings, 1 reply; 4+ messages in thread
From: H . J . Lu @ 2001-10-16 23:46 UTC (permalink / raw)
  To: gcc

The ObjC testcase doesn't work at all unless there is libgcc_s.so.1
somewhere available for dynamic linker. It is because the shared
libobjc has libgcc_s.so.1 in DT_NEEDED and the GNU linker treats
it just like dynamic linker. That means ld won't search -L for
libgcc_s.so.1. If there is no libgcc_s.so.1 for dynamic linker,
which happens when you never install gcc 3.x before, all ObjC tests
will fail. For ObjC test, you should use LD_LIBRARY_PATH Or -rpath
for the final link.


H.J.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Shared libobjc in gcc 3.0.2 doesn't work with "make check"
  2001-10-16 23:46 Shared libobjc in gcc 3.0.2 doesn't work with "make check" H . J . Lu
@ 2001-10-17  0:58 ` Franz Sirl
  2001-10-17  8:18   ` H . J . Lu
  0 siblings, 1 reply; 4+ messages in thread
From: Franz Sirl @ 2001-10-17  0:58 UTC (permalink / raw)
  To: H . J . Lu; +Cc: gcc

At 08:46 17.10.2001, H . J . Lu wrote:
>The ObjC testcase doesn't work at all unless there is libgcc_s.so.1
>somewhere available for dynamic linker. It is because the shared
>libobjc has libgcc_s.so.1 in DT_NEEDED and the GNU linker treats
>it just like dynamic linker. That means ld won't search -L for
>libgcc_s.so.1. If there is no libgcc_s.so.1 for dynamic linker,
>which happens when you never install gcc 3.x before, all ObjC tests
>will fail. For ObjC test, you should use LD_LIBRARY_PATH Or -rpath
>for the final link.

AFAIR this was fixed in the mainline by:

2001-06-16  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

         * gccspec.c (lang_specific_driver): If compiling ObjC, add
         -shared-libgcc when necessary.
         * Makefile.in (gccspec.o): Compile with DRIVER_DEFINES.

Hmm, totally forgot about that, it should have gone into 3.0.1 already...

Franz.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Shared libobjc in gcc 3.0.2 doesn't work with "make check"
  2001-10-17  0:58 ` Franz Sirl
@ 2001-10-17  8:18   ` H . J . Lu
  2001-10-17  8:46     ` Franz Sirl
  0 siblings, 1 reply; 4+ messages in thread
From: H . J . Lu @ 2001-10-17  8:18 UTC (permalink / raw)
  To: Franz Sirl; +Cc: gcc

On Wed, Oct 17, 2001 at 09:58:29AM +0200, Franz Sirl wrote:
> At 08:46 17.10.2001, H . J . Lu wrote:
> >The ObjC testcase doesn't work at all unless there is libgcc_s.so.1
> >somewhere available for dynamic linker. It is because the shared
> >libobjc has libgcc_s.so.1 in DT_NEEDED and the GNU linker treats
> >it just like dynamic linker. That means ld won't search -L for
> >libgcc_s.so.1. If there is no libgcc_s.so.1 for dynamic linker,
> >which happens when you never install gcc 3.x before, all ObjC tests
> >will fail. For ObjC test, you should use LD_LIBRARY_PATH Or -rpath
> >for the final link.
> 
> AFAIR this was fixed in the mainline by:
> 
> 2001-06-16  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
> 
>          * gccspec.c (lang_specific_driver): If compiling ObjC, add
>          -shared-libgcc when necessary.
>          * Makefile.in (gccspec.o): Compile with DRIVER_DEFINES.
> 
> Hmm, totally forgot about that, it should have gone into 3.0.1 already...

Why not backport it to 3.0.x?


H.J.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Shared libobjc in gcc 3.0.2 doesn't work with "make check"
  2001-10-17  8:18   ` H . J . Lu
@ 2001-10-17  8:46     ` Franz Sirl
  0 siblings, 0 replies; 4+ messages in thread
From: Franz Sirl @ 2001-10-17  8:46 UTC (permalink / raw)
  To: H . J . Lu; +Cc: gcc

At 17:18 17.10.2001, H . J . Lu wrote:
>On Wed, Oct 17, 2001 at 09:58:29AM +0200, Franz Sirl wrote:
> > At 08:46 17.10.2001, H . J . Lu wrote:
> > >The ObjC testcase doesn't work at all unless there is libgcc_s.so.1
> > >somewhere available for dynamic linker. It is because the shared
> > >libobjc has libgcc_s.so.1 in DT_NEEDED and the GNU linker treats
> > >it just like dynamic linker. That means ld won't search -L for
> > >libgcc_s.so.1. If there is no libgcc_s.so.1 for dynamic linker,
> > >which happens when you never install gcc 3.x before, all ObjC tests
> > >will fail. For ObjC test, you should use LD_LIBRARY_PATH Or -rpath
> > >for the final link.
> >
> > AFAIR this was fixed in the mainline by:
> >
> > 2001-06-16  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
> >
> >          * gccspec.c (lang_specific_driver): If compiling ObjC, add
> >          -shared-libgcc when necessary.
> >          * Makefile.in (gccspec.o): Compile with DRIVER_DEFINES.
> >
> > Hmm, totally forgot about that, it should have gone into 3.0.1 already...
>
>Why not backport it to 3.0.x?

As I said I forgot about it and now it's too late for 3.0.2. I'll put it in 
my queue for 3.0.3.

Franz.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-10-17  8:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-16 23:46 Shared libobjc in gcc 3.0.2 doesn't work with "make check" H . J . Lu
2001-10-17  0:58 ` Franz Sirl
2001-10-17  8:18   ` H . J . Lu
2001-10-17  8:46     ` Franz Sirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).