Compilation error PEINCLUDE not defined

Issue #75 new
mnlfqi created an issue

I get the following error, when I ./configure && make

gcc -Ilibpfm4/include -fvisibility=hidden -I. -g  -Wall -DOSLOCK=\"linux-lock.h\" -DOSCONTEXT=\"linux-context.h\" -O2 -c high-level/papi_hl.c -o papi_hl.o

In file included from papi_libpfm4_events.c:13:
papi_libpfm4_events.h:9:10: error: #include expects "FILENAME" or <FILENAME>
    9 | #include PEINCLUDE
      |          ^~~~~~~~~
papi_libpfm4_events.h:24:3: error: unknown type name 'perf_event_attr_t'
   24 |   perf_event_attr_t attr;
      |   ^~~~~~~~~~~~~~~~~
make[1]: *** [Rules.pfm4_pe:62: papi_libpfm4_events.o] Error 1
make[1]: *** Waiting for unfinished jobs....
high-level/papi_hl.c: In function 'PAPI_hl_region_begin':
high-level/papi_hl.c:1726:23: warning: implicit declaration of function 'PAPI_rate_stop'; did you mean 'PAPI_stop'? [-Wimplicit-function-declaration]
 1726 |       if ( ( retval = PAPI_rate_stop() ) != PAPI_OK )
      |                       ^~~~~~~~~~~~~~
      |                       PAPI_stop
make[1]: Leaving directory '/tmp/tmp.dsVO43ddhk/papi/src'
make: *** [Rules.pfm4_pe:43: libpfm4/lib/libpfm.a] Error 2

I’ve managed to compile it with

./configure --with-pfm-root=./libpfm && make

I’ve attached configure and make logs

I’ve also noticed the same problem in stable-5.7 branch

Comments (1)

  1. Log in to comment