public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] gcc -pg not working properly
@ 2003-01-09 22:31 Bengt Gorden
  0 siblings, 0 replies; only message in thread
From: Bengt Gorden @ 2003-01-09 22:31 UTC (permalink / raw
  To: gentoo-dev

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 <stdio.h>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-09 22:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-09 22:31 [gentoo-dev] gcc -pg not working properly Bengt Gorden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox