Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue: papi@master fails to build with %oneapi compiler #40398

Open
4 tasks done
iskra-anl opened this issue Oct 9, 2023 · 2 comments
Open
4 tasks done

Comments

@iskra-anl
Copy link
Contributor

Steps to reproduce the issue

$ spack spec -I papi@master %oneapi
Input spec
--------------------------------
 -   papi@master%oneapi

Concretized
--------------------------------
 -   papi@master%oneapi@2023.05.15.006.001~cuda~debug+example~infiniband~lmsensors~nvml~powercap~rapl~rocm~rocm_smi~sde+shared~static_tools build_system=autotools patches=472b161 arch=linux-sles15-icelake

Error message

Error message
==> Installing papi-master-3zotku7lji7uavyt4377rb2uiu356bvk [1/1]
==> No binary for papi-master-3zotku7lji7uavyt4377rb2uiu356bvk found: installing from source
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
1 out of 1 hunk ignored -- saving rejects to file src/configure.in.rej
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
2 out of 2 hunks ignored -- saving rejects to file src/libpfm4/lib/pfmlib_common.c.rej
==> Patch /home/iskra/spack/var/spack/repos/builtin/packages/papi/intel-oneapi-compiler-fixes.patch failed.
==> Error: ProcessError: Command exited with status 1:
    '/usr/bin/patch' '-s' '-p' '1' '-i' '/home/iskra/spack/var/spack/repos/builtin/packages/papi/intel-oneapi-compiler-fixes.patch' '-d' '.'

Information on your system

  • Spack: 0.21.0.dev0 (492a811)
  • Python: 3.6.15
  • Platform: linux-sles15-icelake
  • Concretizer: clingo

Additional information

Basically, the latest PAPI version available in Spack is fairly old (6.0.0.1). The latest 7.0.0 or 7.0.1 releases are not in Spack for some reason. And git master doesn't build with Intel's oneAPI compiler using Spack because the patch that Spack attempts to apply in that case is already applied in the current git sources. @G-Ragghianti @gcongiu could you add the latest PAPI releases to Spack and constrain the patching so that it's not attempted with master?

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
  • I have uploaded the build log and environment files
  • I have searched the issues of this repo and believe this is not a duplicate
@G-Ragghianti
Copy link
Contributor

We have an open PR for papi@7.0.0.1 #38443 which is waiting for someone to create a patch that implements the cray compiler fix that is mentioned in the PR. I will look into doing this soon.

@wyphan
Copy link
Contributor

wyphan commented Dec 22, 2023

@iskra-anl The PR has just been merged, can you test again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants