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