From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2163 invoked by uid 1002); 9 Jan 2003 22:35:56 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 18526 invoked from network); 9 Jan 2003 22:35:55 -0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@gentoo.org Path: not-for-mail From: Bengt Gorden Date: Thu, 09 Jan 2003 23:31:21 +0100 Message-ID: <3E1DF839.80009@sunet.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@main.gmane.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020608 X-Accept-Language: en-us, en Sender: news Subject: [gentoo-dev] gcc -pg not working properly X-Archives-Salt: ab6da6c6-22c0-4766-acb2-d7745a8bafc7 X-Archives-Hash: febc62421d9a7ac24d79d41b7c305ff4 I tried this on gentoo-user first but didn't get any answere there so I try my luck here. I need to profile some programs but it seems to me that gcc with -pg doesn't work in gentoo. I have tested with gcc 2.95.3 and 3.2, on different machines. Both produce gmon.out that is wrong. It has no data in it. I just made a "hello world" to check it. Anyone knows a sollution to this problem? bengan@iib tmp $ more hello.c #include int main(void) { printf("Hello World\n"); return 0; } bengan@iib tmp $ gcc -pg -o hello hello.c bengan@iib tmp $ ./hello Hello World bengan@iib tmp $ ls -l gmon.out -rw-r--r-- 1 bengan users 283 Jan 9 08:44 gmon.out bengan@iib tmp $ gprof hello gprof: gmon.out file is missing call-graph data I have tested it on MacOS X with gcc 3.1 and on netbsd with gcc 2.95.3 and it works fine. /Bengan -- gentoo-dev@gentoo.org mailing list