i am trying to install papi 3.7.1 on ubuntu 9.10 but after the configuration stage when i try to install it by typing make i got the following errors:
In file included from pcl.h:42,
from papi_internal.h:177,
from x86_cache_info.c:15:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from x86_cache_info.c:15:
pcl.h:60: error: array type has incomplete element type
In file included from pcl.h:42,
from papi_internal.h:177,
from papi_pfm_events.c:18:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from papi_pfm_events.c:18:
pcl.h:60: error: array type has incomplete element type
sys_perf_counter_open.c:22: warning: ‘struct perf_counter_attr’ declared inside parameter list
sys_perf_counter_open.c:22: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from pcl.h:42,
from papi_internal.h:177,
from papi.c:23:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from papi.c:23:
pcl.h:60: error: array type has incomplete element type
In file included from pcl.h:42,
from papi_internal.h:177,
from papi_internal.c:27:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from papi_internal.c:27:
pcl.h:60: error: array type has incomplete element type
In file included from pcl.h:42,
from papi_internal.h:177,
from papi_hl.c:22:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from papi_hl.c:22:
pcl.h:60: error: array type has incomplete element type
In file included from pcl.h:42,
from papi_internal.h:177,
from extras.c:27:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from extras.c:27:
pcl.h:60: error: array type has incomplete element type
In file included from pcl.h:42,
from papi_internal.h:177,
from multiplex.c:103:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from multiplex.c:103:
pcl.h:60: error: array type has incomplete element type
In file included from pcl.h:42,
from papi_internal.h:177,
from papi_data.c:27:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from papi_data.c:27:
pcl.h:60: error: array type has incomplete element type
In file included from pcl.h:42,
from papi_internal.h:177,
from threads.c:17:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from threads.c:17:
pcl.h:60: error: array type has incomplete element type
In file included from pcl.h:42,
from papi_internal.h:177,
from perfmon-memory.c:2:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from perfmon-memory.c:2:
pcl.h:60: error: array type has incomplete element type
In file included from pcl.h:42,
from papi_internal.h:177,
from pcl.c:13:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from pcl.c:13:
pcl.h:60: error: array type has incomplete element type
pcl.c: In function ‘close_pcl_evts’:
pcl.c:1968: error: ‘PERF_COUNTER_IOC_DISABLE’ undeclared (first use in this function)
pcl.c:1968: error: (Each undeclared identifier is reported only once
pcl.c:1968: error: for each function it appears in.)
pcl.c: In function ‘pcl_enable_counters’:
pcl.c:2386: error: ‘PERF_COUNTER_IOC_ENABLE’ undeclared (first use in this function)
pcl.c: In function ‘_papi_hwd_reset’:
pcl.c:2423: error: ‘PERF_COUNTER_IOC_RESET’ undeclared (first use in this function)
pcl.c: In function ‘_papi_hwd_read’:
pcl.c:2480: error: ‘PERF_COUNTER_IOC_DISABLE’ undeclared (first use in this function)
pcl.c:2521: error: ‘__u64’ undeclared (first use in this function)
pcl.c:2545: error: ‘PERF_COUNTER_IOC_ENABLE’ undeclared (first use in this function)
pcl.c: In function ‘_papi_hwd_stop’:
pcl.c:2584: error: ‘PERF_COUNTER_IOC_DISABLE’ undeclared (first use in this function)
pcl.c: In function ‘mmap_read_head’:
pcl.c:2766: error: dereferencing pointer to incomplete type
pcl.c: In function ‘mmap_write_tail’:
pcl.c:2780: error: dereferencing pointer to incomplete type
pcl.c: In function ‘mmap_read’:
pcl.c:2804: error: field ‘header’ has incomplete type
pcl.c:2808: error: field ‘header’ has incomplete type
pcl.c:2813: error: field ‘header’ has incomplete type
pcl.c:2854: error: ‘PERF_EVENT_SAMPLE’ undeclared (first use in this function)
pcl.c:2857: error: ‘PERF_EVENT_LOST’ undeclared (first use in this function)
pcl.c: In function ‘_papi_hwd_dispatch_timer’:
pcl.c:2953: error: ‘__u64’ undeclared (first use in this function)
pcl.c:2953: error: expected ‘;’ before ‘ip’
pcl.c:2971: error: ‘ip’ undeclared (first use in this function)
pcl.c:2971: error: expected expression before ‘)’ token
pcl.c: In function ‘_papi_hwd_set_profile’:
pcl.c:3065: error: ‘PERF_SAMPLE_IP’ undeclared (first use in this function)
pcl.c: In function ‘_papi_hwd_set_overflow’:
pcl.c:3140: error: ‘PERF_SAMPLE_IP’ undeclared (first use in this function)
pcl.c: In function ‘_papi_hwd_update_control_state’:
pcl.c:3210: error: ‘__u64’ undeclared (first use in this function)
pcl.c:3210: error: expected ‘;’ before ‘pe_event’
pcl.c:3214: error: invalid application of ‘sizeof’ to incomplete type ‘struct perf_counter_attr’
pcl.c:3262: error: ‘pe_event’ undeclared (first use in this function)
pcl.c:3266: error: ‘PERF_TYPE_RAW’ undeclared (first use in this function)
pcl.c:3341: error: ‘PERF_FORMAT_TOTAL_TIME_ENABLED’ undeclared (first use in this function)
pcl.c:3341: error: ‘PERF_FORMAT_TOTAL_TIME_RUNNING’ undeclared (first use in this function)
In file included from pcl.h:42,
from papi_internal.h:177,
from papi_preset.c:11:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from papi_preset.c:11:
pcl.h:60: error: array type has incomplete element type
In file included from pcl.h:42,
from papi_internal.h:177,
from papi_vector.c:13:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from papi_vector.c:13:
pcl.h:60: error: array type has incomplete element type
In file included from pcl.h:42,
from papi_internal.h:177,
from papi_memory.c:27:
syscalls.h:9: warning: ‘struct perf_counter_attr’ declared inside parameter list
syscalls.h:9: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from papi_internal.h:177,
from papi_memory.c:27:
pcl.h:60: error: array type has incomplete element type
make[1]: *** [libpapi.so] Error 1
make[1]: Leaving directory `/home/kasapis/Desktop/papi-3.7.1/src'
make: *** [/home/kasapis/Desktop/papi-3.7.1/src/libpfm-3.y/lib/libpfm.a] Error 2
Any help would be great!
Thanks in advance
