From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <78db1fb446f5f65b4dcb606c059b665c.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199703062020.PAA23275@max.tiac.net> Date: Thu, 6 Mar 1997 15:19:54 -0500 (EST) From: Arthur Lobo Subject: Re: Profiling using gprof > > > >>>>> "arthur" == Arthur Lobo writes: > > arthur> On trying to profile a run of code compiled with the RHL 4.1 > arthur> gcc compiler (-pg option) on my PC164 (kernel 2.1.23) I get, > > arthur> gprof: `gmon.out' is incompatible with first gmon file > > arthur> Does anyone know what this means and/or how to go about > arthur> profiling successfully? > > How did you get gcc to compile with -pg? I am using RH 4.0 and tried > both libc-profile from 4.1 and devel. ld complained about > bfd assertion failed elf64-alpha.c: 2312 > several times and produced a binary. However, the binary did a > segmentation fault immediately. The same program runs OK when linked > w/o -pg. I got a clean link with RHL 4.1 glibc, devel, profile (0.961212-3) (linked with libc.a). Running the code generates a gmon.out file, but gprof does not process it. If I link with libc_p.a, the executable is created but seg faults on running. GDB o/p: Program received signal SIGSEGV, Segmentation fault. __ieee_set_fp_control () at ../sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S:29 ../sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S:29: No such file or directory. Current language: auto; currently asm > > Regards, > > Rui-Tao Dong ~{6-HpLN~} 25591 Aria Drive > rdong@internetMCI.com Mission Viejo, CA 92692 > (714)457-9970(H) > > > -- > 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 > > -- 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