🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51979

Re: Trouble: Using gprof - gcc

#51979
From: Marek MAKOWSKI
Date: Fri, 05 Mar 1993 07:42
34 lines
2062 bytes
S\xren Ejnar Kristensen, 931101#BPJ (sek@id.dth.dk) wrote:
: 
: I am having trouble with using gprof (from binutils-2.0) with
: gcc (gcc-2.3.3).
: I use the -pg option for both compiler and linker and gets the msg:
: 	ld: -lc_p: No such file or directory
: 
: I supose that c_p is missing in my lib, if so then how do I get it?
: If you have any sugestions I would appreciate an e-mail werry much...

My experience is based on Sun-Sparc and may not be relevant for another
hardware.
First make sure, that you have -pg flags passed to ld (I also use -static).
Second, make sure that you have libc_p.a in a place which is checked by
ld (I think it should be in a "standard" place, like /usr/lib,
if it is in another place use -L).
I think that this library belongs to a standard distribution (it is also
used by cc and f77), therefore if the library was removed then should be
"recoverable".

Now let me share with you my problem:
for several functions in my program, the respective function names are
replaced by
gcc_compiled [xx]
If you know how to avoid this, please advise (I posted details to the same
group yesterday).

Regards,
Marek Makowski
-- 
                  Marek Makowski  | Email: marek@iiasa.ac.at
         International Institute  | Phone: +43 02236 71.5210
     for Applied System Analysis  | Fax:   +43 02236 71.313
       A-2361 Laxenburg, Austria  | Telex: 079137 iiasa a
Technical Details
Message-ID: <1993Mar5.074228.3400@iiasa.ac.at>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!howland.reston.ans.net!paladin.american.edu!news.univie.ac.at!iiasa.ac.at!marek
References: <9303031602.AA04636@idsun3.id.dth.dk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,1431f061ee25d5ce
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-03-04 23:42:28 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!howland.reston.ans.net!paladin.american.edu!news.univie.ac.at!iiasa.ac.at!marek
From: marek@iiasa.ac.at (Marek  MAKOWSKI)
Subject: Re: Trouble: Using gprof - gcc
Message-ID: <1993Mar5.074228.3400@iiasa.ac.at>
Organization: IIASA, Laxenburg, Austria
X-Newsreader: TIN [version 1.1 PL6]
References: <9303031602.AA04636@idsun3.id.dth.dk>
Distribution: gnu
Date: Fri, 5 Mar 1993 07:42:28 GMT
Lines: 34