Debian bug report logs - #1643 ld gets fatal eror when linking for profiling Package: binutils ; Reported by: Dirk.Eddelbuettel@qed.econ.queensu.ca; 20 days old. ----------------------------------------------------------------------- Message received at debian-bugs: From enws428.EAS.ASU.EDU!deisher Wed Oct 11 12:23:20 1995 Return-Path: Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0t36kK-0002BMC; Wed, 11 Oct 95 12:23 PDT Received: from asuvax.EAS.ASU.EDU by pixar.com with SMTP id AA03142 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Wed, 11 Oct 1995 12:22:57 -0700 Received: from ganges (enws428.EAS.ASU.EDU) by asuvax.eas.asu.edu with SMTP id AA02147 (5.65c/IDA-1.4.4 for debian-bugs@pixar.com); Wed, 11 Oct 1995 12:19:57 -0700 Received: by ganges (5.x/SMI-SVR4) id AA10006; Wed, 11 Oct 1995 12:22:02 -0700 Date: Wed, 11 Oct 1995 12:22:02 -0700 Message-Id: <9510111922.AA10006@ganges> From: Michael E. Deisher To: debian-bugs@pixar.com Cc: Dirk.Eddelbuettel@qed.econ.queensu.ca In-Reply-To: <9510111858.AA09660@ganges> (message from Michael E. Deisher on Wed, 11 Oct 1995 11:58:22 -0700) Subject: Re: Bug#1643: ld gets fatal eror when linking for profiling On Wed, 11 Oct 1995 11:58:22 -0700, Michael E. Deisher said: > On Wed, 11 Oct 95 11:58 EDT, Dirk.Eddelbuettel@qed.econ.queensu.ca > said: >> Linking a C or C++ program for profiling causes `ld' to die with >> ld: Output file requires shared library `libc.so.4' gcc: Internal >> compiler error: program ld got fatal signal 6 as soon as a library >> is involved. A simple program `foo.c' can be linked with gcc -o foo >> foo.o -pg but as soon as, say, a math.h function and the `-lm' >> switch are added the fatal error can be reproduced. I use the most >> recent gcc and friends from debian-0.93/binary/devel. > I don't think it has to do with profiling. I just got the following > error. I am NOT linking with "-pg". I just tried turning off debugging altogether. My code compiles just fine. If I turn debugging back on (by passing a single "-g" to gcc), I get: ld: Output file requires shared library `libc.so.4' gcc: Internal compiler error: program ld got fatal signal 6 Not good. --Mike ----------------------------------------------------------------------- Acknowledgement sent to Michael E. Deisher : Extra info received and forwarded. Full text available. ----------------------------------------------------------------------- Information forwarded to debian-devel@pixar.com : Bug#1643 ; Package binutils . Full text available. ----------------------------------------------------------------------- Message received at debian-bugs: From enws428.EAS.ASU.EDU!deisher Wed Oct 11 11:58:54 1995 Return-Path: Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0t36Mg-0006ZQC; Wed, 11 Oct 95 11:58 PDT Received: from asuvax.EAS.ASU.EDU by pixar.com with SMTP id AA01337 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Wed, 11 Oct 1995 11:58:31 -0700 Received: from ganges (enws428.EAS.ASU.EDU) by asuvax.eas.asu.edu with SMTP id AA01212 (5.65c/IDA-1.4.4 for debian-bugs@pixar.com); Wed, 11 Oct 1995 11:56:18 -0700 Received: by ganges (5.x/SMI-SVR4) id AA09660; Wed, 11 Oct 1995 11:58:22 -0700 Date: Wed, 11 Oct 1995 11:58:22 -0700 Message-Id: <9510111858.AA09660@ganges> From: Michael E. Deisher To: Dirk.Eddelbuettel@qed.econ.queensu.ca, debian-bugs@pixar.com Cc: debian-bugs@pixar.com In-Reply-To: (Dirk.Eddelbuettel@qed.econ.queensu.ca) Subject: Re: Bug#1643: ld gets fatal eror when linking for profiling On Wed, 11 Oct 95 11:58 EDT, Dirk.Eddelbuettel@qed.econ.queensu.ca said: > Linking a C or C++ program for profiling causes `ld' to die with ld: > Output file requires shared library `libc.so.4' gcc: Internal > compiler error: program ld got fatal signal 6 as soon as a library > is involved. A simple program `foo.c' can be linked with gcc -o foo > foo.o -pg but as soon as, say, a math.h function and the `-lm' > switch are added the fatal error can be reproduced. I use the most > recent gcc and friends from debian-0.93/binary/devel. I don't think it has to do with profiling. I just got the following error. I am NOT linking with "-pg". diannau% make gcc -g -g -O2 -Wall -D_POSIX_SOURCE -o xp scanargs.o setools.o oldtools.o \ nrtools.o nrutil.o xp.c -L/usr/X11R6/lib -lsx -lXaw -lXmu -lXt -lX11 -lm ld: Output file requires shared library `libc.so.4' gcc: Internal compiler error: program ld got fatal signal 6 make: *** [xp] Error 1 It's strange because other programs I've written compile just fine under Debian. :-/ I'm using lots of math functions, though. Perhaps you are right about it having something to do with libm. --Mike ----------------------------------------------------------------------- Acknowledgement sent to Michael E. Deisher : Extra info received and forwarded. Full text available. ----------------------------------------------------------------------- Information forwarded to debian-devel@pixar.com : Bug#1643 ; Package binutils . Full text available. ----------------------------------------------------------------------- Message received at debian-bugs: From qed.econ.queensu.ca!edd Wed Oct 11 09:00:41 1995 Return-Path: Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0t33aD-00064oC; Wed, 11 Oct 95 09:00 PDT Received: from post.QueensU.CA (knot.QueensU.CA) by pixar.com with SMTP id AA19327 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Wed, 11 Oct 1995 09:00:18 -0700 Received: from miles.econ.queensu.ca (free1-slip203.tele.QueensU.CA [130.15.126.203]) by post.QueensU.CA (8.6.12/8.6.10+ASH) with SMTP id MAA09667 for ; Wed, 11 Oct 1995 12:00:32 -0400 Received: by miles.econ.queensu.ca id (Debian /\oo/\ Smail3.1.29.1 #29.33); Wed, 11 Oct 95 11:58 EDT Message-Id: Date: Wed, 11 Oct 95 11:58 EDT To: Debian Bugs Subject: ld gets fatal eror when linking for profiling From: Dirk.Eddelbuettel@qed.econ.queensu.ca Package: binutils Version: 2.5.2 Revision: 3 Linking a C or C++ program for profiling causes `ld' to die with ld: Output file requires shared library `libc.so.4' gcc: Internal compiler error: program ld got fatal signal 6 as soon as a library is involved. A simple program `foo.c' can be linked with gcc -o foo foo.o -pg but as soon as, say, a math.h function and the `-lm' switch are added the fatal error can be reproduced. I use the most recent gcc and friends from debian-0.93/binary/devel. -- Dirk.Eddelbuettel@qed.econ.queensu.ca http://qed.econ.queensu.ca/~edd ----------------------------------------------------------------------- Acknowledgement sent to Dirk.Eddelbuettel@qed.econ.queensu.ca : New bug report received and forwarded. Full text available. ----------------------------------------------------------------------- Report forwarded to debian-devel@pixar.com : Bug#1643 ; Package binutils . Full text available. ----------------------------------------------------------------------- Ian Jackson / iwj10@thor.cam.ac.uk , with the debian-bugs tracking mechanism This page last modified 07:43:01 GMT Wed 01 Nov