Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Sep 1998 02:23:24 -0600 (MDT)
From:      Brandon Gillespie <brandon@ice.cold.org>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   conf/8061: profiling utilities seperate from profiling libs, broken
Message-ID:  <199809270823.CAA20139@ice.cold.org>

next in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809270823.CAA20139>