This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH] Fix for PR bootstrap/58951
- From: "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>
- To: Jeff Law <law at redhat dot com>, Gerald Pfeifer <gerald at pfeifer dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 12 Nov 2013 04:44:52 +0000
- Subject: RE: [PATCH] Fix for PR bootstrap/58951
- Authentication-results: sourceware.org; auth=none
- References: <BF230D13CA30DD48930C31D4099330003A49AE24 at FMSMSX101 dot amr dot corp dot intel dot com> <alpine dot LNX dot 2 dot 00 dot 1311052334300 dot 2665 at tuna dot site> <alpine dot LNX dot 2 dot 00 dot 1311111850580 dot 1711 at tuna dot site> <BF230D13CA30DD48930C31D4099330003A49D9AA at FMSMSX101 dot amr dot corp dot intel dot com> <5281B136 dot 50403 at redhat dot com>
> -----Original Message-----
> From: gcc-patches-owner@gcc.gnu.org [mailto:gcc-patches-
> owner@gcc.gnu.org] On Behalf Of Jeff Law
> Sent: Monday, November 11, 2013 11:40 PM
> To: Iyer, Balaji V; Gerald Pfeifer
> Cc: gcc-patches@gcc.gnu.org
> Subject: Re: [PATCH] Fix for PR bootstrap/58951
>
> On 11/11/13 21:30, Iyer, Balaji V wrote:
> >
> >
> >> -----Original Message-----
> >> From: Gerald Pfeifer [mailto:gerald@pfeifer.com]
> >> Sent: Monday, November 11, 2013 6:52 PM
> >> To: Iyer, Balaji V
> >> Cc: gcc-patches@gcc.gnu.org
> >> Subject: Re: [PATCH] Fix for PR bootstrap/58951
> >>
> >> Hi Balaji,
> >>
> >> any chance to get this fixed? Bootstrap on FreeBSD has now been
> >> broken for some two weeks overall and I hope there aren't other
> >> things hidden behind this one.
> >>
> >
> > Hi Gerald,
> > I tried to remove the -ldl flag, but it is giving me errors like this:
> >
> > /b-trunk-gcc/x86_64-unknown-linux-gnu/./libcilkrts/.libs/libcilkrts.so:
> undefined reference to `dladdr'
> > /b-trunk-gcc/x86_64-unknown-linux-gnu/./libcilkrts/.libs/libcilkrts.so:
> undefined reference to `dlopen'
> > /b-trunk-gcc/x86_64-unknown-linux-gnu/./libcilkrts/.libs/libcilkrts.so:
> undefined reference to `dlclose'
> >
> > Do you have any suggestions about how to fix them?
> Are you linking with -nostdlib or something similar? IIRC those routines are
> provided by libc on *bsd*. On other systems you may need to link in libdl via
> -ldl.
>
Yes, I am. In my system SUSE, I need to explicitly link it.
>
> I'm sure there's autoconf bits to test whether or not -ldl should be used for
> any given system.
>
Ah Ok. I will dig into it tomorrow.
>
>
> jeff