From brandon@ice.cold.org Sun Sep 27 01:23:34 1998 Received: from ice.cold.org (cold.org [206.81.134.103]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA00589 for ; Sun, 27 Sep 1998 01:23:33 -0700 (PDT) (envelope-from brandon@ice.cold.org) Received: (from brandon@localhost) by ice.cold.org (8.8.8/8.8.5) id CAA20139; Sun, 27 Sep 1998 02:23:24 -0600 (MDT) Message-Id: <199809270823.CAA20139@ice.cold.org> Date: Sun, 27 Sep 1998 02:23:24 -0600 (MDT) From: Brandon Gillespie Reply-To: brandon@ice.cold.org To: FreeBSD-gnats-submit@freebsd.org Subject: profiling utilities seperate from profiling libs, broken X-Send-Pr-Version: 3.2 >Number: 8061 >Category: conf >Synopsis: profiling utilities seperate from profiling libs, broken >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 27 01:30:01 PDT 1998 >Closed-Date: Tue Aug 14 10:47:27 PDT 2001 >Last-Modified: Tue Aug 14 10:49:40 PDT 2001 >Originator: Brandon Gillespie >Release: FreeBSD 2.2.7-RELEASE i386 >Organization: >Environment: >Description: After about two weeks of being harrassed by a programmer on one of my boxes, I started to dig into it myself. He's been trying to use gprof and the profiling stuff (built with gcc -pg), and its been giving him the error: cc -pg -g -O -Iinclude -Imodules -Lmodules grammar.o coldcc.o [..lots of objects..] shs.o crypt.o -lm -o coldcc ld: -lc_p: no match *** Error code 1 A few frustrating hours later I finally figured out the problem is I didn't install the 'Profiling Libraries' when I did the base OS install/upgrade. This is a problem, because none of the docs on gprof, or cc -pg, or anywhere else say they need to be installed (and infact I only barely remembered seeing the option in the installer). >How-To-Repeat: Just install an OS without the profiled libraries, then try to compile and link some code using the -pg option. >Fix: This is a serious frustration factor... IMHO, one of two things needs to be done: 1) update the man page on anything regarding profiling to say in big letters that 'this will not work unless the profiling libraries are installed' 2) pull all profiling commands out of the base install and wrap them in with proflibs as a generic 'Code Profiling Libraries and Utilities' module, and change it so cc -pg will error out if they are not installed (rather than simply dying with an error of not being able to find libc_p). >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: schweikh State-Changed-When: Tue Aug 14 10:47:27 PDT 2001 State-Changed-Why: I've updated gprof(1) manual page in -current to add a note on how we name profiled libraries and how you may specify them if you use -l directly. http://www.FreeBSD.org/cgi/query-pr.cgi?pr=8061 >Unformatted: