Hi,

Just let you know, problem solved. It is because in jikesrvm the c is built with old gcc toolchain.
 
Thanks!
Best
Junjie


From: Junjie Qian <junjie.qian@yahoo.com>
To: "perfmon2-libpfm4-commits@lists.sourceforge.net" <perfmon2-libpfm4-commits@lists.sourceforge.net>
Sent: Tuesday, August 20, 2013 8:33 PM
Subject: another question on libpfm4 compile error

Hi all,

I asked the incompatible libpfm.so question last time, which turns out is the 32bit/64bit problem.

But now another problem comes, and I know this is compile problem that because the software (jikesrvm) doesnot link the library correctly. I searched and tried to figure out by myself with the example all two days, but failed. Could anyone give me some hint on it?

the error info shows as:
     [exec] /tmp/user/1012/ccaspxS0.o: In function `sysPerfEventInit':
     [exec] /home/jqian/projects/jvm_cache_management/work-folder/jikesrvm-3.1.3-generational-zeroing/tools/bootImageRunner/sys.C:478: undefined reference to `pfm_initialize'
     [exec] /home/jqian/projects/jvm_cache_management/work-folder/jikesrvm-3.1.3-generational-zeroing/tools/bootImageRunner/sys.C:480: undefined reference to `pfm_strerror'
     [exec] /tmp/user/1012/ccaspxS0.o: In function `sysPerfEventCreate':
     [exec] /home/jqian/projects/jvm_cache_management/work-folder/jikesrvm-3.1.3-generational-zeroing/tools/bootImageRunner/sys.C:500: undefined reference to `pfm_get_perf_event_encoding'
     [exec] /home/jqian/projects/jvm_cache_management/work-folder/jikesrvm-3.1.3-generational-zeroing/tools/bootImageRunner/sys.C:502: undefined reference to `pfm_strerror'
     [exec] collect2: error: ld returned 1 exit status
 
The library "perfmon/libpfm.h" and "perfmon/err.h" are included, and compiled with -lpfm. It is using g++.

Thanks!
Best
Junjie

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
perfmon2-libpfm4-commits mailing list
perfmon2-libpfm4-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-libpfm4-commits