Skip to content

elfutils error #3951

@stevenrbrandt

Description

@stevenrbrandt

Steps to reproduce

I attempted to install apptainer on my cluster with spack. It failed when installing elfutils, it said it couldn't find a header file named archive.h. So I built libarchive to my environment and built again. I got the same error message, but now libarchive was installed. So I added elfutils as follows

spack add elfutils cppflags="-I$(spack location -i libarchive)/include"

Then I did a concretize -f and an install and everything worked.

So the bug is with the elfutils package. It doesn't handle the libarchive dependency correctly.

I should add that I always build my environments with

spack config add concretizer:unify:true

Error message

No response

Information on your system

Queen Bee 4 is a Redhat cluster with a Lustre file system.

Spack debug report:

* **Spack:** 1.2.0.dev0 (https://github.com/spack/spack/commit/b47619603d05fa41a20278af0ac190b2fd7b2540)
* **Builtin repo:** https://github.com/spack/spack-packages/commit/876d656ad17366f92e2233d843ba285d655150dd
* **Python:** 3.11.5
* **Platform:** linux-rhel8-icelake

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions