PAPI 4.2.0 Build error on RH 4.8

Open discussion of PAPI.

PAPI 4.2.0 Build error on RH 4.8

Postby pmargar » Thu Nov 03, 2011 7:24 pm

I'm trying compile PAPI 4.2.0 on RedHat 4.8 / x86_64 ( 8 x 2666 MHz, Intel(R)Xeon(R) (2 socket, quad core, No HT))
GCC: 4.5.2
Kernel : 2.6.9-89 + perfctr 2.6.x
I am getting the following build error
Any help will be wellcome.
...
gcc -E -DFORTRANUNDERSCORE papi_fwrappers.c > papi_fwrappers_.c
gcc -E -DFORTRANDOUBLEUNDERSCORE papi_fwrappers.c > papi_fwrappers__.c
gcc -E -DFORTRANCAPS papi_fwrappers.c > upper_PAPI_FWRAPPERS.c
gcc -fPIC -DPIC -shared -Wl,-soname -Wl,libpapi.so -Xlinker "-rpath" -Xlinker "/usr/local/lib" -Wl,-rpath-link -Wl,/tmp/ps_build/papi-4.2.0/src/perfctr-2.6.x/usr.lib -Wl,-rpath-link -Wl,/tmp/ps_build/papi-4.2.0/src/libpfm-3.y/lib -I. -g -DSTATIC_PAPI_EVENTS_TABLE -D_REENTRANT -D_GNU_SOURCE -DUSE_COMPILER_TLS -Wall -I/tmp/ps_build/papi-4.2.0/src/perfctr-2.6.x/usr.lib -I/tmp/ps_build/papi-4.2.0/src/perfctr-2.6.x/linux/include -DPERFCTR26 -I/tmp/ps_build/papi-4.2.0/src/libpfm-3.y/include -DPERFCTR_PFM_EVENTS -Wextra -DSUBSTRATE=\"perfctr-x86.h\" -O2 -DPAPI_NO_MEMORY_MANAGEMENT x86_cache_info.c linux-timer.c linux-common.c perfctr.c papi_libpfm3_events.c papi_libpfm_presets.c papi.c papi_internal.c papi_hl.c extras.c multiplex.c papi_fwrappers.c papi_fwrappers_.c papi_fwrappers__.c upper_PAPI_FWRAPPERS.c papi_data.c threads.c cpus.c linux-memory.c perfctr-x86.c papi_preset.c papi_vector.c papi_memory.c freq.c papi_user_events.c -o libpapi.so.4 -Bdynamic -L/tmp/ps_build/papi-4.2.0/src/perfctr-2.6.x/usr.lib -lperfctr -L/tmp/ps_build/papi-4.2.0/src/libpfm-3.y/lib -lpfm
linux-timer.c: In function 'init_proc_thread_timer':
linux-timer.c:276:2: warning: implicit declaration of function 'mygettid'
linux-timer.c:277:2: warning: implicit declaration of function 'open'
linux-timer.c:277:18: error: 'O_RDONLY' undeclared (first use in this function)
linux-timer.c:277:18: note: each undeclared identifier is reported only once for each function it appears in
linux-timer.c:282:9: error: 'hwd_context_t' has no member named 'stat_fd'
linux-timer.c: In function '_linux_get_virt_usec':
linux-timer.c:301:18: error: 'hwd_context_t' has no member named 'stat_fd'
linux-timer.c:312:14: error: 'hwd_context_t' has no member named 'stat_fd'
linux-timer.c:334:40: error: '_x86_vector' undeclared (first use in this function)
make[2]: *** [libpapi.so.4] Error 1
...
pmargar
 
Posts: 5
Joined: Thu Nov 03, 2011 6:51 pm

Re: PAPI 4.2.0 Build error on RH 4.8

Postby vweaver1 » Tue Nov 08, 2011 4:29 pm

pmargar wrote:I'm trying compile PAPI 4.2.0 on RedHat 4.8 / x86_64 ( 8 x 2666 MHz, Intel(R)Xeon(R) (2 socket, quad core, No HT))
GCC: 4.5.2
Kernel : 2.6.9-89 + perfctr 2.6.x
I am getting the following build error
Any help will be wellcome.
...
gcc -E -DFORTRANUNDERSCORE papi_fwrappers.c > papi_fwrappers_.c
gcc -E -DFORTRANDOUBLEUNDERSCORE papi_fwrappers.c > papi_fwrappers__.c
gcc -E -DFORTRANCAPS papi_fwrappers.c > upper_PAPI_FWRAPPERS.c
gcc -fPIC -DPIC -shared -Wl,-soname -Wl,libpapi.so -Xlinker "-rpath" -Xlinker "/usr/local/lib" -Wl,-rpath-link -Wl,/tmp/ps_build/papi-4.2.0/src/perfctr-2.6.x/usr.lib -Wl,-rpath-link -Wl,/tmp/ps_build/papi-4.2.0/src/libpfm-3.y/lib -I. -g -DSTATIC_PAPI_EVENTS_TABLE -D_REENTRANT -D_GNU_SOURCE -DUSE_COMPILER_TLS -Wall -I/tmp/ps_build/papi-4.2.0/src/perfctr-2.6.x/usr.lib -I/tmp/ps_build/papi-4.2.0/src/perfctr-2.6.x/linux/include -DPERFCTR26 -I/tmp/ps_build/papi-4.2.0/src/libpfm-3.y/include -DPERFCTR_PFM_EVENTS -Wextra -DSUBSTRATE=\"perfctr-x86.h\" -O2 -DPAPI_NO_MEMORY_MANAGEMENT x86_cache_info.c linux-timer.c linux-common.c perfctr.c papi_libpfm3_events.c papi_libpfm_presets.c papi.c papi_internal.c papi_hl.c extras.c multiplex.c papi_fwrappers.c papi_fwrappers_.c papi_fwrappers__.c upper_PAPI_FWRAPPERS.c papi_data.c threads.c cpus.c linux-memory.c perfctr-x86.c papi_preset.c papi_vector.c papi_memory.c freq.c papi_user_events.c -o libpapi.so.4 -Bdynamic -L/tmp/ps_build/papi-4.2.0/src/perfctr-2.6.x/usr.lib -lperfctr -L/tmp/ps_build/papi-4.2.0/src/libpfm-3.y/lib -lpfm
linux-timer.c: In function 'init_proc_thread_timer':
linux-timer.c:276:2: warning: implicit declaration of function 'mygettid'
linux-timer.c:277:2: warning: implicit declaration of function 'open'
linux-timer.c:277:18: error: 'O_RDONLY' undeclared (first use in this function)
linux-timer.c:277:18: note: each undeclared identifier is reported only once for each function it appears in
linux-timer.c:282:9: error: 'hwd_context_t' has no member named 'stat_fd'
linux-timer.c: In function '_linux_get_virt_usec':
linux-timer.c:301:18: error: 'hwd_context_t' has no member named 'stat_fd'
linux-timer.c:312:14: error: 'hwd_context_t' has no member named 'stat_fd'
linux-timer.c:334:40: error: '_x86_vector' undeclared (first use in this function)
make[2]: *** [libpapi.so.4] Error 1
...


did you use any unusual options to configure?

From what I can tell you can't currently use proc_thread_timer with perfctr.
vweaver1
 
Posts: 50
Joined: Wed Feb 17, 2010 4:02 pm

Re: PAPI 4.2.0 Build error on RH 4.8

Postby pmargar » Tue Nov 08, 2011 5:29 pm

The only option I used was "--prefix=<dir>". Then I tried "--with-virtualtimer=clock_thread_cputime_id" and compiled successfully.
So far I don't have any issue with it, works normal for Intel and AMD processors, on RH4.8 and RH5.5.
pmargar
 
Posts: 5
Joined: Thu Nov 03, 2011 6:51 pm


Return to General discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron