* profiling in GCC
@ 1997-07-23 8:18 Richard Holmes
0 siblings, 0 replies; 3+ messages in thread
From: Richard Holmes @ 1997-07-23 8:18 UTC (permalink / raw)
Hello,
I want to use gprof on an executable, but I'm having some trouble. Perhaps
someone can give me some advice.
I compiled my program using gcc 2.7.2.1 with the -pg flag and made sure
I linked in all the right libraries (I think), such as libm_p rather
than libm. What happens is that as soon as I start my program I get
a "segmentation violation", which doesn't happen if I compile without the
-pg flag. I traced the problem to a call to ctime() by using gdb.
If I take out the call to ctime() and rerun I get an "illegal
instruction" error that I can't trace with gdb. Again, it all works fine if
I don't use the -pg flag. Any ideas? I was originally using
the libc from glibc-0.961212-4.axp.rpm and tried using the libraries
from glibc-profile-2.0.3-1.alpha.rpm, but that didn't change anything.
I remember some list traffic about profiling in the last month or two,
but the archives at redhat.com don't seem to be available at the moment.
Rich
---------------------------------------
Richard Holmes
Los Alamos National Laboratory
Group XTA
MS B220
Los Alamos, NM 87545
(505) 667-3598
holmes@lanl.gov
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: profiling in GCC
@ 1997-07-23 9:09 Stephan Schroepfer
0 siblings, 0 replies; 3+ messages in thread
From: Stephan Schroepfer @ 1997-07-23 9:09 UTC (permalink / raw)
Richard Holmes wrote:
>
> Hello,
>
> I want to use gprof on an executable, but I'm having some trouble. Perhaps
> someone can give me some advice.
>
> I compiled my program using gcc 2.7.2.1 with the -pg flag and made sure
> I linked in all the right libraries (I think), such as libm_p rather
> than libm. What happens is that as soon as I start my program I get
> a "segmentation violation", which doesn't happen if I compile without the
> -pg flag.
If you are using RH4.1, see
http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0463.html
for a fix for gprof in binutils-2.7 relative to the Red Hat 4.1
binutils RPM
and
http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0464.html
for a fix for three object files in libc_p.a both posted by
David Mosberger-Tang (davidm@azstarnet.com).
If you are using RH4.2, it would be nice if you could let me know
that (sorry, I currently don't have access to my Alpha, so I'm not
able to compare version numbers of 'my' RPMS).
Stefan Schroepfer,
scr@iis.fhg.de
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: profiling in GCC
@ 1997-07-23 20:05 Richard Holmes
0 siblings, 0 replies; 3+ messages in thread
From: Richard Holmes @ 1997-07-23 20:05 UTC (permalink / raw)
Stephan,
Thanks for the references. Unfortunately, the mailing list archives
are inaccessible. You wouldn't happen to have the text of those
message available, would you?
Rich
Stephan Schroepfer wrote:
>Richard Holmes wrote:
>>
>> Hello,
>>
>> I want to use gprof on an executable, but I'm having some trouble. Perhaps
>> someone can give me some advice.
>>
>> I compiled my program using gcc 2.7.2.1 with the -pg flag and made sure
>> I linked in all the right libraries (I think), such as libm_p rather
>> than libm. What happens is that as soon as I start my program I get
>> a "segmentation violation", which doesn't happen if I compile without the
>> -pg flag.
>
>If you are using RH4.1, see
>
>http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0463.html
>
>for a fix for gprof in binutils-2.7 relative to the Red Hat 4.1
>binutils RPM
>and
>
>http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0464.html
>
>for a fix for three object files in libc_p.a both posted by
>David Mosberger-Tang (davidm@azstarnet.com).
>
>If you are using RH4.2, it would be nice if you could let me know
>that (sorry, I currently don't have access to my Alpha, so I'm not
>able to compare version numbers of 'my' RPMS).
---------------------------------------
Richard Holmes
Los Alamos National Laboratory
Group XTA
MS B220
Los Alamos, NM 87545
(505) 667-3598
holmes@lanl.gov
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-07-23 20:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-23 8:18 profiling in GCC Richard Holmes
-- strict thread matches above, loose matches on Subject: below --
1997-07-23 9:09 Stephan Schroepfer
1997-07-23 20:05 Richard Holmes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox