From owner-freebsd-bugs Sun Sep 27 01:30:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA01490 for freebsd-bugs-outgoing; Sun, 27 Sep 1998 01:30:17 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA01467 for ; Sun, 27 Sep 1998 01:30:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id BAA16297; Sun, 27 Sep 1998 01:30:01 -0700 (PDT) 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 X-Send-Pr-Version: 3.2 Subject: conf/8061: profiling utilities seperate from profiling libs, broken Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8061 >Category: conf >Synopsis: profiling utilities seperate from profiling libs, broken >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 27 01:30:01 PDT 1998 >Last-Modified: >Originator: Brandon Gillespie >Organization: >Release: FreeBSD 2.2.7-RELEASE i386 >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). >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message