icl-utk-edu / papi

Other
114 stars 51 forks source link

Error building component tests for sysdetect,sde with Cray compiler #24

Closed G-Ragghianti closed 1 year ago

G-Ragghianti commented 1 year ago

As seen here: https://gitlab.spack.io/spack/spack/-/jobs/7405712

And discussed here: https://github.com/spack/spack/pull/38443#issuecomment-1596213490

When building with Cray fortran compiler, error is:

/home/gitlab-runner-1/builds/Q2MuKA89/0/spack/spack/lib/spack/env/cce/ftn -free -I../../.. -o query_device_simple_f query_device_simple_f.F ../../../libpapi.a 
ftn-78 ftn: ERROR in command line
  The -f option has an invalid argument, "ree".

The Makefile sysdetect/tests/Makefile falls back to using "FFLAGS = -free" which is not a valid command-line option for the cray fortran compiler. This is also present in the sde comonent tests.

gcongiu commented 1 year ago

@G-Ragghianti thank you for reporting this

wyphan commented 1 year ago

@gcongiu I just added the patch to spack/spack#38443, please take a look.