[Bug c++/33357] New: collect2: ld terminated with signal 11 [Segmentation fault]
I don't know how to fill in much of this form but I hope all will be clear from the following transcript. I'm hoping for advice on what to do (upgrade?) to fix the problem or failing that what to do to help diagnose it. === [EMAIL PROTECTED]:~/mysql-5.0.45/client> g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o .libs/mysql mysql.o readline.o sql_string .o completion_hash.o ../cmd-line-utils/libedit/libedit.a -lncurses ../libmysql/ .libs/libmysqlclient.so -lcrypt -lnsl -lm -lz -Wl,--rpath -Wl,/home/dcohen/mysql /lib/mysql collect2: ld terminated with signal 11 [Segmentation fault] [EMAIL PROTECTED]:~/mysql-5.0.45/client> g++ --version g++ (GCC) 4.1.0 (SUSE Linux) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [EMAIL PROTECTED]:~/mysql-5.0.45/client> uname -a Linux saturn 2.6.16.27-0.9-default #1 SMP Tue Feb 13 09:35:18 UTC 2007 ia64 ia64 ia64 GNU/Linux [EMAIL PROTECTED]:~/mysql-5.0.45/client> -- Summary: collect2: ld terminated with signal 11 [Segmentation fault] Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: don-gcc at isis dot cs3-inc dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33357
[Bug other/33357] collect2: ld terminated with signal 11 [Segmentation fault]
--- Comment #2 from don-gcc at isis dot cs3-inc dot com 2007-09-09 03:43 --- Subject: collect2: ld terminated with signal 11 [Segmentation fault] pinskia at gcc dot gnu dot org writes: > This is ld crashing and ld is part of the binutils project. Mike Frysinger writes: > you should start with what version of binutils you're actually using ... run > `ld --version` > if that version != 2.18, then you should first upgrade Thank you both for your replies. I have now built binutils 2.18. However I'm not root on this machine and so cannot install it in the place where the original command (g++ -O3 -DDBUG_OFF ...) will find it. Can either of you tell me how to arrange for the g++ command to use the version of ld I've just built? I see at least two problems here. First, g++ is not simply calling ld on the same arguments - when I replace g++ with ld I get an error about unrecognized option -DDBUG_OFF. Second, I suspect that the ld I just built is the file ~/binutils-2.18/ld/ld-new - is that correct? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33357
[Bug other/33357] collect2: ld terminated with signal 11 [Segmentation fault]
--- Comment #5 from don-gcc at isis dot cs3-inc dot com 2007-09-17 16:31 --- Subject: Re: collect2: ld terminated with signal 11 [Segmentation fault] Nick Clifton writes: > There are several possibilities: ... I ended up following the recommendation below - worked fine. I installed the binutils build into my own directory and then added the -B. In fact I just added that to the input I passed to .configure and the entire mysql build completed without problem. --- Comment #3 from schwab at suse dot de 2007-09-09 08:09 --- Use -B${binutils-bindir}, where ${binutils-bindir} is the directory where the binutils binaries were installed. `-BPREFIX' This option specifies where to find the executables, libraries, include files, and data files of the compiler itself. The compiler driver program runs one or more of the subprograms `cpp', `cc1', `as' and `ld'. It tries PREFIX as a prefix for each program it tries to run, both with and without `MACHINE/VERSION/' (*note Target Options::). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33357