Building error with PGI compiler

Issue #70 closed
jongchoi created an issue

I am trying to build PAI 5.7.0 with a PGI compiler but getting the following error:

make[2]: Entering directory `/gpfs/alpine/csc143/world-shared/jyc/summit/papi-5.7.0/src/libpfm4/lib'
pgcc   -g -Wall -Werror -Wextra -Wno-unused-parameter -I. -I/gpfs/alpine/csc143/world-shared/jyc/summit/papi-5.7.0/src/libpfm4/lib/../include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -D_REENTRANT -I. -fvisibility=hidden -DCONFIG_PFMLIB_ARCH_POWERPC -I. -c pfmlib_common.c
pgcc-Error-Unknown switch: -Wall
pgcc-Error-Unknown switch: -Werror
pgcc-Error-Unknown switch: -Wextra
pgcc-Error-Unknown switch: -Wno-unused-parameter
pgcc-Error-Unknown switch: -fvisibility=hidden
make[2]: *** [pfmlib_common.o] Error 1
make[2]: Leaving directory `/gpfs/alpine/csc143/world-shared/jyc/summit/papi-5.7.0/src/libpfm4/lib'
make[1]: *** [lib] Error 2
make[1]: Leaving directory `/gpfs/alpine/csc143/world-shared/jyc/summit/papi-5.7.0/src/libpfm4'
make: *** [libpfm4/lib/libpfm.a] Error 2

I am wondering if PAPI supports PGI compiler. Is there any way to replace compiler flags. I tried ./configure CFLAGS="" CC=pgcc LDFLAGS="" CPPFLAGS="" but didn’t work.

I will appreciate any advice. Thanks.

Comments (3)

  1. Frank Winkler

    Since it is currently not so easy to solve this issue, may I ask why you need a PAPI compiled with the PGI compiler? Even if your application requires PGI you can still link against a PAPI library that has been built with gcc. But if this does not solve the problem, could you please give us more details about your purpose? Thanks, Frank

  2. Log in to comment