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: 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:30:59 +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>
> -----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?
Thanks,
Balaji V. Iyer.
> Gerald
>
> On Tue, 5 Nov 2013, Gerald Pfeifer wrote:
> > thanks for looking into this. Unfortunately, with SVN revision 204424
> > (that is, after this fix) bootstrap still fails for me with what looks
> > to be the same failure mode?
> >
> > libtool: compile: /scratch2/tmp/gerald/OBJ-1105-2159/./gcc/xgcc
> > -B/scratch2/tmp/gerald/OBJ-1105-2159/./gcc/
> > -B/home/gerald/gcc-ref10-i386/i386-unknown-freebsd1 0.0/bin/
> > -B/home/gerald/gcc-ref10-i386/i386-unknown-freebsd10.0/lib/ -isystem
> > /home/gerald/gcc-ref10-i386/i386-unknown-freebsd10.0/include -isystem
> > /home/gerald/gcc-ref10-i386/i386-unknown-freebsd10.0/sys-include
> > /scratch2/tmp/gerald/gcc-HEAD/libobjc/linking.m -c -I.
> > -I/scratch2/tmp/gerald/gcc-HEAD/libobjc -g -O2 -W -Wall
> > -Wwrite-strings -Wstrict-prototypes -DIN_GCC -DIN_TARGET_LIBS
> > -fno-strict-aliasing -fexceptions
> > -I/scratch2/tmp/gerald/gcc-HEAD/libobjc/../gcc
> > -I/scratch2/tmp/gerald/gcc-HEAD/libobjc/../gcc/config -I../.././gcc
> > -I/scratch2/tmp/gerald/gc c-HEAD/libobjc/../libgcc -I../libgcc
> > -I/scratch2/tmp/gerald/gcc-HEAD/libobjc/../include -fgnu-runtime -fPIC
> > -DPIC -o .libs/linking.o
> > /home/gerald/10-i386/bin/ld: cannot find -ldl
> > collect2: error: ld returned 1 exit status
> >
> >
> > Might this be due to
> >
> > # Hack for Cygwin
> > libcilkrts_la_LDFLAGS = -version-info 5:0:0 -lpthread -ldl \
> > $(am__append_1) $(am__append_2) -no-undefined
> >
> > in Makefile.in?
> >
> > Gerald