HELP on PAPI 3.7.1 in Ubuntu Linux 9.10

Open discussion of PAPI.

HELP on PAPI 3.7.1 in Ubuntu Linux 9.10

Postby sijusamuel » Thu Nov 19, 2009 2:01 pm

I am getting the following error while doing 'make test' on machine with following details:

Machine
===========
Description: Ubuntu 9.10
Linux mymachine 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz

PAPI 3.7.1 is configured with,
./configure --with-pcl=yes --with-pcl-incdir=/usr/src/linux-headers-2.6.31-14/include/linux --prefix=/usr/local/papi-3.7.1

ERROR during 'make test'. ( part of it is pasted)
=======================================

user@mymachine:~/PAPIEX3/papi-3.7.1/src$ make test
cd ctests; make CC="gcc" CC_R="gcc -pthread" CFLAGS="-I.. -g -O2 -DSTATIC_PERFMON_EVENTS_TABLE -D_REENTRANT -D_GNU_SOURCE -Wall -DUSE_COMPILER_TLS -DPAPI_NO_MEMORY_MANAGEMENT -DSTATIC_PERFMON_EVENTS_TABLE -DPCLINCLUDE=\"/usr/src/linux-headers-2.6.31-14/include/linux/perf_counter.h\" -I/home/user/PAPIEX3/papi-3.7.1/src/libpfm-3.y/include -DSUBSTRATE_USES_LIBPFM" SMPCFLGS="" OMPCFLGS="" TOPTFLAGS="-g -O" NOOPT="" LDFLAGS=" " LIBRARY=../libpapi.a ear serial forkexec_tests overflow_tests profile_tests multiplex_and_pthreads shared
make[1]: Entering directory `/home/user/PAPIEX3/papi-3.7.1/src/ctests'
gcc -I. -I.. -g -O2 -DSTATIC_PERFMON_EVENTS_TABLE -D_REENTRANT -D_GNU_SOURCE -Wall -DUSE_COMPILER_TLS -DPAPI_NO_MEMORY_MANAGEMENT -DSTATIC_PERFMON_EVENTS_TABLE -DPCLINCLUDE="/usr/src/linux-headers-2.6.31-14/include/linux/perf_counter.h" -I/home/user/PAPIEX3/papi-3.7.1/src/libpfm-3.y/include -DSUBSTRATE_USES_LIBPFM -g -O earprofile.c do_loops.o test_utils.o dummy.o prof_utils.o ../libpapi.a -o earprofile
../libpapi.a(pcl.o): In function `_papi_hwd_update_control_state':
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:3261: undefined reference to `pfm_dispatch_events'
../libpapi.a(pcl.o): In function `_papi_hwd_init_substrate':
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:2089: undefined reference to `pfm_initialize'
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:2096: undefined reference to `pfm_get_version'
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:2119: undefined reference to `pfm_get_pmu_type'
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:2126: undefined reference to `pfm_get_pmu_name'
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:2137: undefined reference to `pfm_get_num_events'
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:2148: undefined reference to `pfm_get_num_counters'
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:2091: undefined reference to `pfm_strerror'
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:2098: undefined reference to `pfm_strerror'
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:2121: undefined reference to `pfm_strerror'
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:2128: undefined reference to `pfm_strerror'
/home/user/PAPIEX3/papi-3.7.1/src/pcl.c:2139: undefined reference to `pfm_strerror'
../libpapi.a(papi_pfm_events.o): In function `_papi_pfm_ntv_bits_to_info':
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:1050: undefined reference to `pfm_get_event_counters'
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:1070: undefined reference to `pfm_get_event_code_counter'
../libpapi.a(papi_pfm_events.o): In function `convert_pfm_masks':
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:667: undefined reference to `pfm_get_event_mask_code'
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:671: undefined reference to `pfm_strerror'
../libpapi.a(papi_pfm_events.o): In function `_papi_pfm_ntv_bits_to_info':
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:1071: undefined reference to `pfm_strerror'
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:1051: undefined reference to `pfm_strerror'
../libpapi.a(papi_pfm_events.o): In function `_pfm_get_counter_info':
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:961: undefined reference to `pfm_get_event_counters'
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:965: undefined reference to `pfm_get_num_counters'

--------
-------
../libpapi.a(papi_pfm_events.o): In function `generate_preset_search_map':
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:585: undefined reference to `pfm_find_full_event'
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:592: undefined reference to `pfm_strerror'
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:556: undefined reference to `pfm_get_cycle_event'
/home/user/PAPIEX3/papi-3.7.1/src/papi_pfm_events.c:569: undefined reference to `pfm_get_inst_retired_event'
collect2: ld returned 1 exit status
make[1]: *** [earprofile] Error 1


Thanks,Siju
sijusamuel
 
Posts: 4
Joined: Wed Oct 14, 2009 3:50 pm

Re: HELP on PAPI 3.7.1 in Ubuntu Linux 9.10

Postby Dan Terpstra » Thu Nov 19, 2009 8:01 pm

These undefined references are from the libpfm library which is included in the PAPI distribution and which should be built prior to the PAPI library files themselves. Occasionally if you get an error in the build of that library and invoke make again the PAPI files will be built without the libpfm files. Try make clean or make clobber followed by make to see if this cleans things up.
Dan Terpstra
 
Posts: 57
Joined: Mon Aug 24, 2009 5:42 pm

Re: HELP on PAPI 3.7.1 in Ubuntu Linux 9.10

Postby sijusamuel » Fri Nov 20, 2009 1:15 pm

Today, I could install 3.7.1, succefully . I guess yesterday I used 'configure, make test' and missed 'make' step.
sijusamuel
 
Posts: 4
Joined: Wed Oct 14, 2009 3:50 pm


Return to General discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest