From owner-freebsd-questions@FreeBSD.ORG Tue Apr 29 19:58:10 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40570106567A for ; Tue, 29 Apr 2008 19:58:10 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from cavuit02.kulnet.kuleuven.be (cavuit02.kulnet.kuleuven.be [134.58.240.44]) by mx1.freebsd.org (Postfix) with ESMTP id EE9628FC12 for ; Tue, 29 Apr 2008 19:58:09 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from smtps01.kuleuven.be (smtpshost01.kulnet.kuleuven.be [134.58.240.74]) by cavuit02.kulnet.kuleuven.be (Postfix) with ESMTP id 8CE8B51C004; Tue, 29 Apr 2008 21:58:03 +0200 (CEST) Received: from kalimero.kotnet.org (kalimero.kotnet.org [10.4.16.222]) by smtps01.kuleuven.be (Postfix) with ESMTP id 36E0B31E703; Tue, 29 Apr 2008 21:58:03 +0200 (CEST) Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.14.2/8.14.2) with ESMTP id m3TJw2SY038132; Tue, 29 Apr 2008 21:58:02 +0200 (CEST) (envelope-from tijl@ulyssis.org) X-Kuleuven: This mail passed the K.U.Leuven mailcluster From: Tijl Coosemans To: nayak_purushotham@yahoo.com Date: Tue, 29 Apr 2008 21:58:00 +0200 User-Agent: KMail/1.9.7 References: <745065.54909.qm@web56112.mail.re3.yahoo.com> In-Reply-To: <745065.54909.qm@web56112.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804292158.01628.tijl@ulyssis.org> X-KULeuven-Information: Katholieke Universiteit Leuven X-KULeuven-Scanned: Found to be clean X-Spam-Status: not spam, SpamAssassin (not cached, score=-50, required 5, autolearn=disabled, KUL_SMTPS -50.00) X-KULeuven-Envelope-From: tijl@ulyssis.org Cc: freebsd-questions@freebsd.org Subject: Re: Profiled C++ libraries X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2008 19:58:10 -0000 On Tuesday 29 April 2008 18:44:15 Purushotham Nayak wrote: > I'm trying to use gprof to profile some code but compilation fails > because it can't find libstdc++_p (GCC 3.4.6). I tried using gcc 4.2 > but it can't find m_p. I have /usr/src/contrib/libstdc++ but can't > find the documentation that the README file is referring to > (docs/html/documentation.html). Can anyone please let me know how to > get a profiled version of the c++ library for my platform. > > I'm using FreeBSD 6.0 i386. I thought they were installed by default, but in any case you should find libstdc++_p.a under /usr/obj after doing this: % cd /usr/src/gnu/lib/libstdc++/ % make obj && make depend && make Make sure you don't have anything like NO_PROFILE, NOPROFILE or WITHOUT_PROFILE defined in /etc/make.conf.