Hi there. This program looks great, and I'm looking forward to using it.
However the problems I'm having seem to be with gprof or functioncheck.
I am using KDevelop 1.4 under KDE2.1.1 on a clean install of Mandrake 7.2. I have tried profiling using both gprof and functioncheck.
Gprof:
I compile with the -pg option, which spits out the gmon.out file. When I try to open that file with kprof it reports that gmon.out is not in a.out format. running gprof from the command line produces a similar error message.
I find this odd because, well, everything is ELF. I loaded the a.out kernel module and that didn't seem to help at all. I linked my program with the special glibc-profile package (using -lc_p) and that made no difference. Mandrake uses binutils-2.10.x, which is the most recent release. I have tried updating the compiler/libraries from CVS at http://gcc.gnu.org. I have not tried recompiling binutils. I tried updating to Mandrake 8.0. That was a mistake. Hmmm... I have probably gone WAY out of my way for something stupid.
Now with function check:
When running configure I get the following message:
checking whether the C++ compiler (g++ -O0 -g3 -pg -Wall -finstrument-functions -pipe ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.
When I look at config.log here's what it says:
/tmp/ccsxiytX.o: In function `main':
/root/kmusicdb/configure:1510: undefined reference to `__cyg_profile_func_enter'
/root/kmusicdb/configure:1510: undefined reference to `__cyg_profile_func_exit'
collect2: ld returned 1 exit status
Does someone know what's going on/what am I doing wrong?
Thanks
Will.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is normal (RTFM :-). You should try to open either the <b>executable</b> file that you compiled, KProf will automatically find the <code>gmon.out</code> or <code>fnccheck.out</code> file in the same directory.
The alternative is to open the text profile results that you generate using a command line, please have a look at the on-line help for that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there. This program looks great, and I'm looking forward to using it.
However the problems I'm having seem to be with gprof or functioncheck.
I am using KDevelop 1.4 under KDE2.1.1 on a clean install of Mandrake 7.2. I have tried profiling using both gprof and functioncheck.
Gprof:
I compile with the -pg option, which spits out the gmon.out file. When I try to open that file with kprof it reports that gmon.out is not in a.out format. running gprof from the command line produces a similar error message.
I find this odd because, well, everything is ELF. I loaded the a.out kernel module and that didn't seem to help at all. I linked my program with the special glibc-profile package (using -lc_p) and that made no difference. Mandrake uses binutils-2.10.x, which is the most recent release. I have tried updating the compiler/libraries from CVS at http://gcc.gnu.org. I have not tried recompiling binutils. I tried updating to Mandrake 8.0. That was a mistake. Hmmm... I have probably gone WAY out of my way for something stupid.
Now with function check:
When running configure I get the following message:
checking whether the C++ compiler (g++ -O0 -g3 -pg -Wall -finstrument-functions -pipe ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.
When I look at config.log here's what it says:
/tmp/ccsxiytX.o: In function `main':
/root/kmusicdb/configure:1510: undefined reference to `__cyg_profile_func_enter'
/root/kmusicdb/configure:1510: undefined reference to `__cyg_profile_func_exit'
collect2: ld returned 1 exit status
Does someone know what's going on/what am I doing wrong?
Thanks
Will.
This is normal (RTFM :-). You should try to open either the <b>executable</b> file that you compiled, KProf will automatically find the <code>gmon.out</code> or <code>fnccheck.out</code> file in the same directory.
The alternative is to open the text profile results that you generate using a command line, please have a look at the on-line help for that.