This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: ld segmentation fault
- To: Brian Chamberlain <bkchamb at uswest dot net>
- Subject: Re: ld segmentation fault
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Tue, 20 Jun 2000 12:20:59 +1000 (EST)
- cc: binutils at sourceware dot cygnus dot com
On Mon, 19 Jun 2000, Brian Chamberlain wrote:
> I have binutils-2.10-rc3 installed on an x86 machine
> with Mandrake Linux 7.0.
> The easiest way to get ld to segfault is to try and build
> binutils-2.10-rc3 again after it's been installed.
> I get the following error when running configure:
>
> collect2: ld terminated with signal 11 [segmentation fault]
> The command 'gcc -o conftest -O2 -mcpu=k6 -fstrict-aliasing
> conftest.c' failed.
>
> I'm using the following command to configure binutils:
> CFLAGS="-O2 -mcpu=k6 -fstrict-aliasing" ./configure
> --prefix=/usr --host=i586-pc-linux-gnu --enable-shared
>
> I have glibc-2.1.3 and gcc-2.95.2 installed.
I would guess that this is a problem with gcc and -mcpu=k6, or you have
exposed a bug in binutils due to using -fstrict-aliasing. Would you
please try recompiling without one or both of these flags and tell us the
results.
I've just finished recompiling binutils-2.10 (using as-new and ld-new from
a previous compile) without any problems. This was with
--host=i586-linux --prefix=/usr --target=i586-linux --disable-nls
--enable-targets=i586-linuxaout,i586-coff,i586-mingw32,m68k-coff, no
messing with CFLAGS, and gcc version 2.96 20000123.
Regards, Alan Modra
--
Linuxcare. Support for the Revolution.