Tutorial setup

If you have not done the prior sections, you’ll need to start the docker image:

docker run -it ghcr.io/spack/tutorial:sc23

and then set Spack up like this:

git clone --depth=100 --branch=releases/v0.21 https://github.com/spack/spack
. spack/share/spack/setup-env.sh
spack tutorial -y
spack bootstrap now
spack compiler find

See the Basic Installation Tutorial for full details on setup. For more help, join us in the #tutorial channel on Slack – get an invitation at slack.spack.io

Package Creation Tutorial

This tutorial walks you through the steps for creating and debugging a simple Spack package. We will develop and debug a package using an iterative approach in order to gain more experience with additional Spack commands. For consistency, we will create the package for mpileaks (https://github.com/LLNL/mpileaks), which is an MPI debugging tool.

What is a Spack Package?

Spack packages are installation scripts, which are essentially recipes for building (and testing) software.

They define properties and behavior of the build, such as:

  • where to find and how to retrieve the software;

  • its dependencies;

  • options for building from source; and

  • build commands.

They can also define checks of the installed software that can be performed after the installation.

Once we’ve specified a package’s recipe, users can ask Spack to build the software with different features on any of the supported systems.

Getting Started

In order to avoid modifying your Spack installation with the package we are creating, add a package repository just for this tutorial by entering the following command:

$ spack repo add $SPACK_ROOT/var/spack/repos/tutorial/
==> Added repo with namespace 'tutorial'.

Doing this ensures changes we make here do not adversely affect other parts of the tutorial. You can find out more about repositories at Package Repositories.

Creating the Package File

Note

Before proceeding, make sure your EDITOR environment variable is set to the path of your preferred text editor.

Suppose you want to install software that depends on mpileaks but found Spack did not already have a built-in package for it. This means you are going to have to create one.

Spack’s create command builds a new package from a template by taking the location of the package’s source code and using it to:

  • fetch the code;

  • create a package skeleton; and

  • open the file up in your editor of choice.

Note

An example of creating a package from software with more available versions can be found at Creating and Editing Packages.

The mpileaks source code is available in a tarball in the software’s repository (https://github.com/LLNL/mpileaks). Spack will look at the contents of the tarball and generate a package when we run spack create with the URL:

$ spack create --name tutorial-mpileaks https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz
==> Using specified package name: 'tutorial-mpileaks'
==> Fetching https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz
==> This package looks like it uses the autotools build system
==> Created template for tutorial-mpileaks package
==> Created package file: /home/spack/spack/var/spack/repos/tutorial/packages/tutorial-mpileaks/package.py

You should now be in your text editor of choice, with the package.py file open for editing.

Your package.py file should reside in the tutorial-mpileaks subdirectory of your tutorial repository’s packages directory, i.e., $SPACK_ROOT/var/spack/repos/tutorial/packages/tutorial-mpileaks/package.py

Take a moment to look over the file.

As we can see from the skeleton contents, shown below, the Spack template:

  • provides instructions for how to contribute your package to the Spack repository;

  • indicates the software is built with Autotools;

  • provides a docstring template;

  • provides an example homepage URL;

  • shows how to specify a list of package maintainers;

  • specifies the version directive, with checksum, for the software;

  • shows a dependency directive example; and

  • provides a skeleton configure_args method.

tutorial-mpileaks/package.py (from tutorial/examples/packaging/0.package.py)
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

# ----------------------------------------------------------------------------
# If you submit this package back to Spack as a pull request,
# please first remove this boilerplate and all FIXME comments.
#
# This is a template package file for Spack.  We've put "FIXME"
# next to all the things you'll want to change. Once you've handled
# them, you can save this file and test your package like this:
#
#     spack install tutorial-mpileaks
#
# You can edit this file again by typing:
#
#     spack edit tutorial-mpileaks
#
# See the Spack documentation for more information on packaging.
# ----------------------------------------------------------------------------

from spack import *


class TutorialMpileaks(AutotoolsPackage):
    """FIXME: Put a proper description of your package here."""

    # FIXME: Add a proper url for your package's homepage here.
    homepage = "https://www.example.com"
    url      = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"

    # FIXME: Add a list of GitHub accounts to
    # notify when the package is updated.
    # maintainers("github_user1", "github_user2")

    version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")

    # FIXME: Add dependencies if required.
    # depends_on("foo")

    def configure_args(self):
        # FIXME: Add arguments other than --prefix
        # FIXME: If not needed delete this function
        args = []
        return args

Note

The maintainers field is a comma-separated list of GitHub user names for those people who are willing to be notified when a change is made to the package. This information is useful for developers who maintain a Spack package for their own software and or rely on software maintained by other people.

Since we are providing a url, we can confirm the checksum, or sha256 calculation. Exit your editor to return to the command line and use the spack checksum command:

$ spack checksum tutorial-mpileaks 1.0
==> Found 1 version of tutorial-mpileaks
==> Fetching https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz

    version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")

Note the entire version directive is provided for your convenience.

We will now fill in the provided placeholders as we:

  • document some information about this package;

  • add dependencies; and

  • add the configuration arguments needed to build the package.

For the moment, though, let’s see what Spack does with the skeleton by trying to install the package using the spack install command:

$ spack install tutorial-mpileaks
==> Installing gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7 [1/2]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gmake-4.4.1/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7.spack
==> Extracting gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7 from binary cache
==> gmake: Successfully installed gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7
  Search: 0.00s.  Fetch: 0.09s.	 Install: 0.05s.  Extract: 0.04s.  Relocate: 0.01s.  Total: 0.14s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7
==> Installing tutorial-mpileaks-1.0-lxhhwqacj5ptrs5vnfg4opmcffrfh7g2 [2/2]
==> No binary for tutorial-mpileaks-1.0-lxhhwqacj5ptrs5vnfg4opmcffrfh7g2 found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/2e/2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825.tar.gz
==> No patches needed for tutorial-mpileaks
==> tutorial-mpileaks: Executing phase: 'autoreconf'
==> tutorial-mpileaks: Executing phase: 'configure'
==> Error: ProcessError: Command exited with status 1:
    '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-lxhhwqacj5ptrs5vnfg4opmcffrfh7g2/spack-src/configure' '--prefix=/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-lxhhwqacj5ptrs5vnfg4opmcffrfh7g2'

1 error found in build log:
     35	   checking for mpipgcc... no
     36	   Checking whether not-found responds to '-showme:compile'... no
     37	   Checking whether not-found responds to '-showme'... no
     38	   Checking whether not-found responds to '-compile-info'... no
     39	   Checking whether not-found responds to '-show'... no
     40	   /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-lxhhwqacj5ptrs5vnfg4opmcf
	   frfh7g2/spack-src/configure: line 4931: Echo: command not found
  >> 41	   configure: error: unable to locate adept-utils installation

See build log for details:
  /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-lxhhwqacj5ptrs5vnfg4opmcffrfh7g2/spack-build-out.txt

It clearly did not build. The error indicates configure is unable to find the installation location of a dependency.

So let’s start to customize the package to our software.

Adding Package Documentation

First let’s fill in the documentation.

Bring mpileaks’ package.py file back into your $EDITOR with the spack edit command:

$ spack edit tutorial-mpileaks

Let’s make the following changes:

  • remove the instructions between dashed lines at the top;

  • replace the first FIXME comment with a description of mpileaks in the docstring;

  • replace the homepage property with the correct link; and

  • uncomment the maintainers property and add your GitHub user name.

Note

We will exclude the Copyright clause and license identifier in the remainder of the package snippets here to reduce the length of the tutorial documentation; however, the copyright is required for published packages.

Now make the changes and additions to your package.py file.

The resulting package should contain the following information:

mpileaks/package.py (from tutorial/examples/packaging/1.package.py)
from spack import *


class TutorialMpileaks(AutotoolsPackage):
    """Tool to detect and report MPI objects like MPI_Requests and
    MPI_Datatypes."""

    homepage = "https://github.com/LLNL/mpileaks"
    url      = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"

    maintainers("adamjstewart")

    version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")

    # FIXME: Add dependencies if required.
    # depends_on("foo")

    def configure_args(self):
        # FIXME: Add arguments other than --prefix
        # FIXME: If not needed delete this function
        args = []
        return args

At this point we’ve only updated key documentation within the package. It won’t help us build the software but the information is now available for review.

Let’s enter the spack info command for the package:

$ spack info tutorial-mpileaks
AutotoolsPackage:   tutorial-mpileaks

Description:
    Tool to detect and report MPI objects like MPI_Requests and
    MPI_Datatypes.

Homepage: https://github.com/LLNL/mpileaks

Preferred version:
    1.0	   https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz

Safe versions:
    1.0	   https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz

Deprecated versions:
    None

Variants:
    build_system [autotools]	    autotools
	Build systems supported by the package

Build Dependencies:
    gmake  gnuconfig

Link Dependencies:
    None

Run Dependencies:
    None

Licenses:
    None

Take a moment to look over the output. You should see the following information derived from the package:

  • it is an Autotools package;

  • it has the description, homepage, and maintainer(s) we provided;

  • it is not externally detectable;

  • it has the URL we gave the spack create command;

  • the preferred version was derived from the code;

  • the default Autotools package installation phases are listed;

  • the gnuconfig build dependency is inherited from AutotoolsPackage;

  • both the link and run dependencies are None at this point;

As we fill in more information about the package, the spack info command will become more informative.

Note

More information on using Autotools packages is provided in AutotoolsPackage.

The full list of build systems known to Spack can be found at Build Systems.

More information on the build-time tests can be found at https://spack.readthedocs.io/en/latest/packaging_guide.html#build-time-tests.

Refer to the links at the end of this section for more information.

Now we’re ready to start filling in the build recipe.

Adding Dependencies

First we’ll add the dependencies determined by reviewing documentation in the software’s repository (https://github.com/LLNL/mpileaks). The mpileaks software relies on three third-party libraries:

  • mpi,

  • adept-utils, and

  • callpath.

Note

Luckily, all of these dependencies are built-in packages in Spack; otherwise, we would have to create packages for them as well.

Bring mpileaks’ package.py file back up in your $EDITOR with the spack edit command:

$ spack edit tutorial-mpileaks

and add the dependencies by specifying them using the depends_on directive as shown below:

tutorial-mpileaks/package.py (from tutorial/examples/packaging/2.package.py)
from spack import *


class TutorialMpileaks(AutotoolsPackage):
    """Tool to detect and report MPI objects like MPI_Requests and
    MPI_Datatypes."""

    homepage = "https://github.com/LLNL/mpileaks"
    url      = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"

    maintainers("adamjstewart")

    version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")

    depends_on("mpi")
    depends_on("adept-utils")
    depends_on("callpath")

    def configure_args(self):
        # FIXME: Add arguments other than --prefix
        # FIXME: If not needed delete this function
        args = []
        return args

Adding dependencies tells Spack that it must ensure these packages are installed before it can build our package.

Note

The mpi dependency is different from the other two in that it is a virtual dependency. That means Spack must satisfy the dependency with a package that provides the mpi interface, such as openmpi or mvapich2.

We call such packages providers. More information on virtual dependencies can be found in the Packaging Guide linked at the bottom of this tutorial.

Let’s check that dependencies are effectively built when we try to install tutorial-mpileaks:

$ spack install tutorial-mpileaks
==> Installing boost-1.72.0-mxnvckahgnzim3vtymzk5kydav6fukfd [1/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-boost-1.72.0-mxnvckahgnzim3vtymzk5kydav6fukfd.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/boost-1.72.0/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-boost-1.72.0-mxnvckahgnzim3vtymzk5kydav6fukfd.spack
==> Extracting boost-1.72.0-mxnvckahgnzim3vtymzk5kydav6fukfd from binary cache
==> boost: Successfully installed boost-1.72.0-mxnvckahgnzim3vtymzk5kydav6fukfd
  Search: 0.00s.  Fetch: 0.14s.	 Install: 3.05s.  Extract: 3.03s.  Relocate: 0.01s.  Total: 3.19s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/boost-1.72.0-mxnvckahgnzim3vtymzk5kydav6fukfd
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7
==> Installing ca-certificates-mozilla-2023-05-30-ct4al4udowha5xuopzhn3elwj2tsjomj [3/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-ca-certificates-mozilla-2023-05-30-ct4al4udowha5xuopzhn3elwj2tsjomj.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/ca-certificates-mozilla-2023-05-30/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-ca-certificates-mozilla-2023-05-30-ct4al4udowha5xuopzhn3elwj2tsjomj.spack
==> Extracting ca-certificates-mozilla-2023-05-30-ct4al4udowha5xuopzhn3elwj2tsjomj from binary cache
==> ca-certificates-mozilla: Successfully installed ca-certificates-mozilla-2023-05-30-ct4al4udowha5xuopzhn3elwj2tsjomj
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.02s.  Extract: 0.01s.  Relocate: 0.01s.  Total: 0.03s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/ca-certificates-mozilla-2023-05-30-ct4al4udowha5xuopzhn3elwj2tsjomj
==> Installing util-macros-1.19.3-b7j7735jjga7hkzuwzrwvzqnatlld2nb [4/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-util-macros-1.19.3-b7j7735jjga7hkzuwzrwvzqnatlld2nb.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/util-macros-1.19.3/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-util-macros-1.19.3-b7j7735jjga7hkzuwzrwvzqnatlld2nb.spack
==> Extracting util-macros-1.19.3-b7j7735jjga7hkzuwzrwvzqnatlld2nb from binary cache
==> util-macros: Successfully installed util-macros-1.19.3-b7j7735jjga7hkzuwzrwvzqnatlld2nb
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.02s.  Extract: 0.01s.  Relocate: 0.01s.  Total: 0.03s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/util-macros-1.19.3-b7j7735jjga7hkzuwzrwvzqnatlld2nb
==> Installing pkgconf-1.9.5-zjgtpdofa5acoyfs62cczvdj3gjngy3y [5/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-pkgconf-1.9.5-zjgtpdofa5acoyfs62cczvdj3gjngy3y.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pkgconf-1.9.5/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-pkgconf-1.9.5-zjgtpdofa5acoyfs62cczvdj3gjngy3y.spack
==> Extracting pkgconf-1.9.5-zjgtpdofa5acoyfs62cczvdj3gjngy3y from binary cache
==> pkgconf: Successfully installed pkgconf-1.9.5-zjgtpdofa5acoyfs62cczvdj3gjngy3y
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.04s.  Extract: 0.02s.  Relocate: 0.01s.  Total: 0.05s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pkgconf-1.9.5-zjgtpdofa5acoyfs62cczvdj3gjngy3y
==> Installing libiconv-1.17-ivn4eq42mmvco5l3drcxjzbmpto5nfi2 [6/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libiconv-1.17-ivn4eq42mmvco5l3drcxjzbmpto5nfi2.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiconv-1.17/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libiconv-1.17-ivn4eq42mmvco5l3drcxjzbmpto5nfi2.spack
==> Extracting libiconv-1.17-ivn4eq42mmvco5l3drcxjzbmpto5nfi2 from binary cache
==> libiconv: Successfully installed libiconv-1.17-ivn4eq42mmvco5l3drcxjzbmpto5nfi2
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.08s.  Extract: 0.07s.  Relocate: 0.01s.  Total: 0.09s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiconv-1.17-ivn4eq42mmvco5l3drcxjzbmpto5nfi2
==> Installing zstd-1.5.5-jkznmrmqdgtpzvs42qxljrjs6m6f6aho [7/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-zstd-1.5.5-jkznmrmqdgtpzvs42qxljrjs6m6f6aho.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zstd-1.5.5/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-zstd-1.5.5-jkznmrmqdgtpzvs42qxljrjs6m6f6aho.spack
==> Extracting zstd-1.5.5-jkznmrmqdgtpzvs42qxljrjs6m6f6aho from binary cache
==> zstd: Successfully installed zstd-1.5.5-jkznmrmqdgtpzvs42qxljrjs6m6f6aho
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.05s.  Extract: 0.04s.  Relocate: 0.01s.  Total: 0.06s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zstd-1.5.5-jkznmrmqdgtpzvs42qxljrjs6m6f6aho
==> Installing xz-5.4.1-axxqoeqv4lckdxrkvdp6f376ndmade4c [8/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-xz-5.4.1-axxqoeqv4lckdxrkvdp6f376ndmade4c.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/xz-5.4.1/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-xz-5.4.1-axxqoeqv4lckdxrkvdp6f376ndmade4c.spack
==> Extracting xz-5.4.1-axxqoeqv4lckdxrkvdp6f376ndmade4c from binary cache
==> xz: Successfully installed xz-5.4.1-axxqoeqv4lckdxrkvdp6f376ndmade4c
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.10s.  Extract: 0.09s.  Relocate: 0.01s.  Total: 0.12s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/xz-5.4.1-axxqoeqv4lckdxrkvdp6f376ndmade4c
==> Installing findutils-4.9.0-cws3eftnvff7shmr3acylis3utohkxfn [9/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-findutils-4.9.0-cws3eftnvff7shmr3acylis3utohkxfn.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/findutils-4.9.0/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-findutils-4.9.0-cws3eftnvff7shmr3acylis3utohkxfn.spack
==> Extracting findutils-4.9.0-cws3eftnvff7shmr3acylis3utohkxfn from binary cache
==> findutils: Successfully installed findutils-4.9.0-cws3eftnvff7shmr3acylis3utohkxfn
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.09s.  Extract: 0.07s.  Relocate: 0.01s.  Total: 0.10s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/findutils-4.9.0-cws3eftnvff7shmr3acylis3utohkxfn
==> Installing berkeley-db-18.1.40-ku7makqmto7yrue2y3duu2phqtnvqd26 [10/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-berkeley-db-18.1.40-ku7makqmto7yrue2y3duu2phqtnvqd26.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/berkeley-db-18.1.40/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-berkeley-db-18.1.40-ku7makqmto7yrue2y3duu2phqtnvqd26.spack
==> Extracting berkeley-db-18.1.40-ku7makqmto7yrue2y3duu2phqtnvqd26 from binary cache
==> berkeley-db: Successfully installed berkeley-db-18.1.40-ku7makqmto7yrue2y3duu2phqtnvqd26
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.13s.  Extract: 0.11s.  Relocate: 0.02s.  Total: 0.14s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/berkeley-db-18.1.40-ku7makqmto7yrue2y3duu2phqtnvqd26
==> Installing libiberty-2.41-duir6ffkanf7hwkjwgjyrvoh2nxikw3q [11/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libiberty-2.41-duir6ffkanf7hwkjwgjyrvoh2nxikw3q.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiberty-2.41/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libiberty-2.41-duir6ffkanf7hwkjwgjyrvoh2nxikw3q.spack
==> Extracting libiberty-2.41-duir6ffkanf7hwkjwgjyrvoh2nxikw3q from binary cache
==> libiberty: Successfully installed libiberty-2.41-duir6ffkanf7hwkjwgjyrvoh2nxikw3q
  Search: 0.00s.  Fetch: 0.02s.	 Install: 0.05s.  Extract: 0.04s.  Relocate: 0.01s.  Total: 0.06s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiberty-2.41-duir6ffkanf7hwkjwgjyrvoh2nxikw3q
==> Installing libsigsegv-2.14-zuopqrik4y7vhqq2isjnr6mbixyks4uk [12/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libsigsegv-2.14-zuopqrik4y7vhqq2isjnr6mbixyks4uk.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libsigsegv-2.14/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libsigsegv-2.14-zuopqrik4y7vhqq2isjnr6mbixyks4uk.spack
==> Extracting libsigsegv-2.14-zuopqrik4y7vhqq2isjnr6mbixyks4uk from binary cache
==> libsigsegv: Successfully installed libsigsegv-2.14-zuopqrik4y7vhqq2isjnr6mbixyks4uk
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.03s.  Extract: 0.02s.  Relocate: 0.01s.  Total: 0.04s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libsigsegv-2.14-zuopqrik4y7vhqq2isjnr6mbixyks4uk
==> Installing zlib-ng-2.1.4-5xcetrvs3fzd7k27dw5duyxitnsy4uvh [13/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-zlib-ng-2.1.4-5xcetrvs3fzd7k27dw5duyxitnsy4uvh.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zlib-ng-2.1.4/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-zlib-ng-2.1.4-5xcetrvs3fzd7k27dw5duyxitnsy4uvh.spack
==> Extracting zlib-ng-2.1.4-5xcetrvs3fzd7k27dw5duyxitnsy4uvh from binary cache
==> zlib-ng: Successfully installed zlib-ng-2.1.4-5xcetrvs3fzd7k27dw5duyxitnsy4uvh
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.03s.  Extract: 0.02s.  Relocate: 0.01s.  Total: 0.04s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zlib-ng-2.1.4-5xcetrvs3fzd7k27dw5duyxitnsy4uvh
==> Installing ncurses-6.4-qqlh6asufg6vhjnkbhwxl3jmocyolykt [14/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-ncurses-6.4-qqlh6asufg6vhjnkbhwxl3jmocyolykt.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/ncurses-6.4/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-ncurses-6.4-qqlh6asufg6vhjnkbhwxl3jmocyolykt.spack
==> Extracting ncurses-6.4-qqlh6asufg6vhjnkbhwxl3jmocyolykt from binary cache
==> ncurses: Successfully installed ncurses-6.4-qqlh6asufg6vhjnkbhwxl3jmocyolykt
  Search: 0.00s.  Fetch: 0.02s.	 Install: 0.82s.  Extract: 0.79s.  Relocate: 0.02s.  Total: 0.84s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/ncurses-6.4-qqlh6asufg6vhjnkbhwxl3jmocyolykt
==> Installing nghttp2-1.57.0-my64owhngq5r4nl2lpysh2skvrq3nlo5 [15/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-nghttp2-1.57.0-my64owhngq5r4nl2lpysh2skvrq3nlo5.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/nghttp2-1.57.0/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-nghttp2-1.57.0-my64owhngq5r4nl2lpysh2skvrq3nlo5.spack
==> Extracting nghttp2-1.57.0-my64owhngq5r4nl2lpysh2skvrq3nlo5 from binary cache
==> nghttp2: Successfully installed nghttp2-1.57.0-my64owhngq5r4nl2lpysh2skvrq3nlo5
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.04s.  Extract: 0.03s.  Relocate: 0.01s.  Total: 0.05s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/nghttp2-1.57.0-my64owhngq5r4nl2lpysh2skvrq3nlo5
==> Installing diffutils-3.9-ueheij3wbhepmelnkti3jsglzzknb4en [16/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-diffutils-3.9-ueheij3wbhepmelnkti3jsglzzknb4en.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/diffutils-3.9/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-diffutils-3.9-ueheij3wbhepmelnkti3jsglzzknb4en.spack
==> Extracting diffutils-3.9-ueheij3wbhepmelnkti3jsglzzknb4en from binary cache
==> diffutils: Successfully installed diffutils-3.9-ueheij3wbhepmelnkti3jsglzzknb4en
  Search: 0.00s.  Fetch: 0.02s.	 Install: 0.08s.  Extract: 0.06s.  Relocate: 0.01s.  Total: 0.09s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/diffutils-3.9-ueheij3wbhepmelnkti3jsglzzknb4en
==> Installing libxml2-2.10.3-67qoxbv3pyyep745wytvlgnnosn6pwnr [17/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libxml2-2.10.3-67qoxbv3pyyep745wytvlgnnosn6pwnr.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxml2-2.10.3/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libxml2-2.10.3-67qoxbv3pyyep745wytvlgnnosn6pwnr.spack
==> Extracting libxml2-2.10.3-67qoxbv3pyyep745wytvlgnnosn6pwnr from binary cache
==> libxml2: Successfully installed libxml2-2.10.3-67qoxbv3pyyep745wytvlgnnosn6pwnr
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.15s.  Extract: 0.13s.  Relocate: 0.02s.  Total: 0.16s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxml2-2.10.3-67qoxbv3pyyep745wytvlgnnosn6pwnr
==> Installing pigz-2.7-catlxmodt7sirns2di5pod576omq32hk [18/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-pigz-2.7-catlxmodt7sirns2di5pod576omq32hk.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pigz-2.7/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-pigz-2.7-catlxmodt7sirns2di5pod576omq32hk.spack
==> Extracting pigz-2.7-catlxmodt7sirns2di5pod576omq32hk from binary cache
==> pigz: Successfully installed pigz-2.7-catlxmodt7sirns2di5pod576omq32hk
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.03s.  Extract: 0.01s.  Relocate: 0.01s.  Total: 0.04s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pigz-2.7-catlxmodt7sirns2di5pod576omq32hk
==> Installing libedit-3.1-20210216-s4kq4wo6ii3vt3s354agguqm462yu32q [19/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libedit-3.1-20210216-s4kq4wo6ii3vt3s354agguqm462yu32q.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libedit-3.1-20210216/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libedit-3.1-20210216-s4kq4wo6ii3vt3s354agguqm462yu32q.spack
==> Extracting libedit-3.1-20210216-s4kq4wo6ii3vt3s354agguqm462yu32q from binary cache
==> libedit: Successfully installed libedit-3.1-20210216-s4kq4wo6ii3vt3s354agguqm462yu32q
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.06s.  Extract: 0.04s.  Relocate: 0.01s.  Total: 0.07s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libedit-3.1-20210216-s4kq4wo6ii3vt3s354agguqm462yu32q
==> Installing readline-8.2-xxgqlmjyegrwwuq2pq4zaq7y6qojp3mz [20/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-readline-8.2-xxgqlmjyegrwwuq2pq4zaq7y6qojp3mz.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/readline-8.2/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-readline-8.2-xxgqlmjyegrwwuq2pq4zaq7y6qojp3mz.spack
==> Extracting readline-8.2-xxgqlmjyegrwwuq2pq4zaq7y6qojp3mz from binary cache
==> readline: Successfully installed readline-8.2-xxgqlmjyegrwwuq2pq4zaq7y6qojp3mz
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.08s.  Extract: 0.06s.  Relocate: 0.01s.  Total: 0.09s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/readline-8.2-xxgqlmjyegrwwuq2pq4zaq7y6qojp3mz
==> Installing bzip2-1.0.8-4oz3kpfibmlvfizzivudj7pnzm2w7ce7 [21/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-bzip2-1.0.8-4oz3kpfibmlvfizzivudj7pnzm2w7ce7.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/bzip2-1.0.8/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-bzip2-1.0.8-4oz3kpfibmlvfizzivudj7pnzm2w7ce7.spack
==> Extracting bzip2-1.0.8-4oz3kpfibmlvfizzivudj7pnzm2w7ce7 from binary cache
==> bzip2: Successfully installed bzip2-1.0.8-4oz3kpfibmlvfizzivudj7pnzm2w7ce7
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.04s.  Extract: 0.02s.  Relocate: 0.01s.  Total: 0.05s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/bzip2-1.0.8-4oz3kpfibmlvfizzivudj7pnzm2w7ce7
==> Installing m4-1.4.19-jnv5nut43juhm7esjn3tvxas6m67zbx4 [22/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-m4-1.4.19-jnv5nut43juhm7esjn3tvxas6m67zbx4.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/m4-1.4.19/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-m4-1.4.19-jnv5nut43juhm7esjn3tvxas6m67zbx4.spack
==> Extracting m4-1.4.19-jnv5nut43juhm7esjn3tvxas6m67zbx4 from binary cache
==> m4: Successfully installed m4-1.4.19-jnv5nut43juhm7esjn3tvxas6m67zbx4
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.07s.  Extract: 0.05s.  Relocate: 0.01s.  Total: 0.08s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/m4-1.4.19-jnv5nut43juhm7esjn3tvxas6m67zbx4
==> Installing gdbm-1.23-m626hzwxamau2a4cbu2hptq477qnufc4 [23/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-gdbm-1.23-m626hzwxamau2a4cbu2hptq477qnufc4.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gdbm-1.23/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-gdbm-1.23-m626hzwxamau2a4cbu2hptq477qnufc4.spack
==> Extracting gdbm-1.23-m626hzwxamau2a4cbu2hptq477qnufc4 from binary cache
==> gdbm: Successfully installed gdbm-1.23-m626hzwxamau2a4cbu2hptq477qnufc4
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.07s.  Extract: 0.05s.  Relocate: 0.02s.  Total: 0.08s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gdbm-1.23-m626hzwxamau2a4cbu2hptq477qnufc4
==> Installing tar-1.34-vdb3ozocdu73c4gl45gnzcjgscfye6mg [24/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-tar-1.34-vdb3ozocdu73c4gl45gnzcjgscfye6mg.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tar-1.34/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-tar-1.34-vdb3ozocdu73c4gl45gnzcjgscfye6mg.spack
==> Extracting tar-1.34-vdb3ozocdu73c4gl45gnzcjgscfye6mg from binary cache
==> tar: Successfully installed tar-1.34-vdb3ozocdu73c4gl45gnzcjgscfye6mg
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.13s.  Extract: 0.10s.  Relocate: 0.02s.  Total: 0.15s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tar-1.34-vdb3ozocdu73c4gl45gnzcjgscfye6mg
==> Installing libtool-2.4.7-rgag55hxbjmkoqpx4gnr2golz2zfyvnt [25/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libtool-2.4.7-rgag55hxbjmkoqpx4gnr2golz2zfyvnt.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libtool-2.4.7/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libtool-2.4.7-rgag55hxbjmkoqpx4gnr2golz2zfyvnt.spack
==> Extracting libtool-2.4.7-rgag55hxbjmkoqpx4gnr2golz2zfyvnt from binary cache
==> libtool: Successfully installed libtool-2.4.7-rgag55hxbjmkoqpx4gnr2golz2zfyvnt
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.08s.  Extract: 0.06s.  Relocate: 0.02s.  Total: 0.09s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libtool-2.4.7-rgag55hxbjmkoqpx4gnr2golz2zfyvnt
==> Installing perl-5.38.0-dg34i2ae7omo77k6ntqkb6zi76gmeava [26/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-perl-5.38.0-dg34i2ae7omo77k6ntqkb6zi76gmeava.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/perl-5.38.0/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-perl-5.38.0-dg34i2ae7omo77k6ntqkb6zi76gmeava.spack
==> Extracting perl-5.38.0-dg34i2ae7omo77k6ntqkb6zi76gmeava from binary cache
==> perl: Successfully installed perl-5.38.0-dg34i2ae7omo77k6ntqkb6zi76gmeava
  Search: 0.00s.  Fetch: 0.03s.	 Install: 1.06s.  Extract: 0.93s.  Relocate: 0.12s.  Total: 1.09s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/perl-5.38.0-dg34i2ae7omo77k6ntqkb6zi76gmeava
==> Installing gettext-0.22.3-y26lmloj3u6romzd6j3xdfiib7gnkbga [27/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-gettext-0.22.3-y26lmloj3u6romzd6j3xdfiib7gnkbga.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gettext-0.22.3/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-gettext-0.22.3-y26lmloj3u6romzd6j3xdfiib7gnkbga.spack
==> Extracting gettext-0.22.3-y26lmloj3u6romzd6j3xdfiib7gnkbga from binary cache
==> gettext: Successfully installed gettext-0.22.3-y26lmloj3u6romzd6j3xdfiib7gnkbga
  Search: 0.00s.  Fetch: 0.03s.	 Install: 0.76s.  Extract: 0.70s.  Relocate: 0.05s.  Total: 0.79s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gettext-0.22.3-y26lmloj3u6romzd6j3xdfiib7gnkbga
==> Installing libpciaccess-0.17-af4bqq6hwe23ojn7i3o2n7ws2b7wu64m [28/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libpciaccess-0.17-af4bqq6hwe23ojn7i3o2n7ws2b7wu64m.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libpciaccess-0.17/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libpciaccess-0.17-af4bqq6hwe23ojn7i3o2n7ws2b7wu64m.spack
==> Extracting libpciaccess-0.17-af4bqq6hwe23ojn7i3o2n7ws2b7wu64m from binary cache
==> libpciaccess: Successfully installed libpciaccess-0.17-af4bqq6hwe23ojn7i3o2n7ws2b7wu64m
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.02s.  Extract: 0.01s.  Relocate: 0.01s.  Total: 0.03s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libpciaccess-0.17-af4bqq6hwe23ojn7i3o2n7ws2b7wu64m
==> Installing autoconf-2.69-mnfnoa5qnshe7gdq7gnlkwowqxyrymia [29/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-autoconf-2.69-mnfnoa5qnshe7gdq7gnlkwowqxyrymia.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/autoconf-2.69/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-autoconf-2.69-mnfnoa5qnshe7gdq7gnlkwowqxyrymia.spack
==> Extracting autoconf-2.69-mnfnoa5qnshe7gdq7gnlkwowqxyrymia from binary cache
==> autoconf: Successfully installed autoconf-2.69-mnfnoa5qnshe7gdq7gnlkwowqxyrymia
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.07s.  Extract: 0.04s.  Relocate: 0.02s.  Total: 0.07s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/autoconf-2.69-mnfnoa5qnshe7gdq7gnlkwowqxyrymia
==> Installing openssl-3.1.3-35j7wvrf3jovxokjkzdrpv265sfrjwga [30/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-openssl-3.1.3-35j7wvrf3jovxokjkzdrpv265sfrjwga.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssl-3.1.3/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-openssl-3.1.3-35j7wvrf3jovxokjkzdrpv265sfrjwga.spack
==> Extracting openssl-3.1.3-35j7wvrf3jovxokjkzdrpv265sfrjwga from binary cache
==> openssl: Successfully installed openssl-3.1.3-35j7wvrf3jovxokjkzdrpv265sfrjwga
  Search: 0.00s.  Fetch: 0.02s.	 Install: 0.24s.  Extract: 0.22s.  Relocate: 0.01s.  Total: 0.26s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssl-3.1.3-35j7wvrf3jovxokjkzdrpv265sfrjwga
==> Installing libxcrypt-4.4.35-hezcx7ggdisbf6oqol5ucfch7emlggqk [31/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libxcrypt-4.4.35-hezcx7ggdisbf6oqol5ucfch7emlggqk.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxcrypt-4.4.35/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libxcrypt-4.4.35-hezcx7ggdisbf6oqol5ucfch7emlggqk.spack
==> Extracting libxcrypt-4.4.35-hezcx7ggdisbf6oqol5ucfch7emlggqk from binary cache
==> libxcrypt: Successfully installed libxcrypt-4.4.35-hezcx7ggdisbf6oqol5ucfch7emlggqk
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.04s.  Extract: 0.03s.  Relocate: 0.01s.  Total: 0.05s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxcrypt-4.4.35-hezcx7ggdisbf6oqol5ucfch7emlggqk
==> Installing elfutils-0.189-xnvt4jsw4zbkvyp5w4zayfavuoe2e7px [32/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-elfutils-0.189-xnvt4jsw4zbkvyp5w4zayfavuoe2e7px.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/elfutils-0.189/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-elfutils-0.189-xnvt4jsw4zbkvyp5w4zayfavuoe2e7px.spack
==> Extracting elfutils-0.189-xnvt4jsw4zbkvyp5w4zayfavuoe2e7px from binary cache
==> elfutils: Successfully installed elfutils-0.189-xnvt4jsw4zbkvyp5w4zayfavuoe2e7px
  Search: 0.00s.  Fetch: 0.03s.	 Install: 0.36s.  Extract: 0.30s.  Relocate: 0.05s.  Total: 0.39s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/elfutils-0.189-xnvt4jsw4zbkvyp5w4zayfavuoe2e7px
==> Installing bison-3.8.2-lza42n2wukvkldw6vcrp3iwpvw7d6oni [33/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-bison-3.8.2-lza42n2wukvkldw6vcrp3iwpvw7d6oni.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/bison-3.8.2/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-bison-3.8.2-lza42n2wukvkldw6vcrp3iwpvw7d6oni.spack
==> Extracting bison-3.8.2-lza42n2wukvkldw6vcrp3iwpvw7d6oni from binary cache
==> bison: Successfully installed bison-3.8.2-lza42n2wukvkldw6vcrp3iwpvw7d6oni
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.20s.  Extract: 0.15s.  Relocate: 0.03s.  Total: 0.21s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/bison-3.8.2-lza42n2wukvkldw6vcrp3iwpvw7d6oni
==> Installing hwloc-2.9.1-dyrsjedv3fxwdi3sutxieq2rcz4etdib [34/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-hwloc-2.9.1-dyrsjedv3fxwdi3sutxieq2rcz4etdib.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/hwloc-2.9.1/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-hwloc-2.9.1-dyrsjedv3fxwdi3sutxieq2rcz4etdib.spack
==> Extracting hwloc-2.9.1-dyrsjedv3fxwdi3sutxieq2rcz4etdib from binary cache
==> hwloc: Successfully installed hwloc-2.9.1-dyrsjedv3fxwdi3sutxieq2rcz4etdib
  Search: 0.00s.  Fetch: 0.02s.	 Install: 0.22s.  Extract: 0.18s.  Relocate: 0.02s.  Total: 0.24s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/hwloc-2.9.1-dyrsjedv3fxwdi3sutxieq2rcz4etdib
==> Installing automake-1.16.5-d3cncglfvi2mpx7ytpfqnleyc233qcej [35/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-automake-1.16.5-d3cncglfvi2mpx7ytpfqnleyc233qcej.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/automake-1.16.5/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-automake-1.16.5-d3cncglfvi2mpx7ytpfqnleyc233qcej.spack
==> Extracting automake-1.16.5-d3cncglfvi2mpx7ytpfqnleyc233qcej from binary cache
==> automake: Successfully installed automake-1.16.5-d3cncglfvi2mpx7ytpfqnleyc233qcej
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.11s.  Extract: 0.06s.  Relocate: 0.03s.  Total: 0.12s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/automake-1.16.5-d3cncglfvi2mpx7ytpfqnleyc233qcej
==> Installing curl-8.4.0-ijsmc3jx2cjmdy2svodqqkeimkooheod [36/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-curl-8.4.0-ijsmc3jx2cjmdy2svodqqkeimkooheod.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/curl-8.4.0/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-curl-8.4.0-ijsmc3jx2cjmdy2svodqqkeimkooheod.spack
==> Extracting curl-8.4.0-ijsmc3jx2cjmdy2svodqqkeimkooheod from binary cache
==> curl: Successfully installed curl-8.4.0-ijsmc3jx2cjmdy2svodqqkeimkooheod
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.15s.  Extract: 0.13s.  Relocate: 0.01s.  Total: 0.16s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/curl-8.4.0-ijsmc3jx2cjmdy2svodqqkeimkooheod
==> Installing libdwarf-20180129-qabscwjrgqm5u7yvckt32xf54x3wp7nk [37/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libdwarf-20180129-qabscwjrgqm5u7yvckt32xf54x3wp7nk.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libdwarf-20180129/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libdwarf-20180129-qabscwjrgqm5u7yvckt32xf54x3wp7nk.spack
==> Extracting libdwarf-20180129-qabscwjrgqm5u7yvckt32xf54x3wp7nk from binary cache
==> libdwarf: Successfully installed libdwarf-20180129-qabscwjrgqm5u7yvckt32xf54x3wp7nk
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.10s.  Extract: 0.06s.  Relocate: 0.03s.  Total: 0.11s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libdwarf-20180129-qabscwjrgqm5u7yvckt32xf54x3wp7nk
==> Installing krb5-1.20.1-tjiqlymlbmjxyyvwlkumu4qq65nuqr3w [38/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-krb5-1.20.1-tjiqlymlbmjxyyvwlkumu4qq65nuqr3w.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/krb5-1.20.1/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-krb5-1.20.1-tjiqlymlbmjxyyvwlkumu4qq65nuqr3w.spack
==> Extracting krb5-1.20.1-tjiqlymlbmjxyyvwlkumu4qq65nuqr3w from binary cache
==> krb5: Successfully installed krb5-1.20.1-tjiqlymlbmjxyyvwlkumu4qq65nuqr3w
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.13s.  Extract: 0.09s.  Relocate: 0.03s.  Total: 0.14s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/krb5-1.20.1-tjiqlymlbmjxyyvwlkumu4qq65nuqr3w
==> Installing libevent-2.1.12-wpvxxkafb3j7uc465iekvpyhew3brhl7 [39/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libevent-2.1.12-wpvxxkafb3j7uc465iekvpyhew3brhl7.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libevent-2.1.12/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-libevent-2.1.12-wpvxxkafb3j7uc465iekvpyhew3brhl7.spack
==> Extracting libevent-2.1.12-wpvxxkafb3j7uc465iekvpyhew3brhl7 from binary cache
==> libevent: Successfully installed libevent-2.1.12-wpvxxkafb3j7uc465iekvpyhew3brhl7
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.11s.  Extract: 0.08s.  Relocate: 0.01s.  Total: 0.12s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libevent-2.1.12-wpvxxkafb3j7uc465iekvpyhew3brhl7
==> Installing numactl-2.0.14-mbwdizyinycylldk4lrjvq2y474cd5bk [40/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-numactl-2.0.14-mbwdizyinycylldk4lrjvq2y474cd5bk.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/numactl-2.0.14/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-numactl-2.0.14-mbwdizyinycylldk4lrjvq2y474cd5bk.spack
==> Extracting numactl-2.0.14-mbwdizyinycylldk4lrjvq2y474cd5bk from binary cache
==> numactl: Successfully installed numactl-2.0.14-mbwdizyinycylldk4lrjvq2y474cd5bk
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.05s.  Extract: 0.03s.  Relocate: 0.01s.  Total: 0.06s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/numactl-2.0.14-mbwdizyinycylldk4lrjvq2y474cd5bk
==> Installing cmake-3.27.7-kd6xihnhlzyfwafeilow6t2mvolyryor [41/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-cmake-3.27.7-kd6xihnhlzyfwafeilow6t2mvolyryor.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/cmake-3.27.7/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-cmake-3.27.7-kd6xihnhlzyfwafeilow6t2mvolyryor.spack
==> Extracting cmake-3.27.7-kd6xihnhlzyfwafeilow6t2mvolyryor from binary cache
==> cmake: Successfully installed cmake-3.27.7-kd6xihnhlzyfwafeilow6t2mvolyryor
  Search: 0.00s.  Fetch: 0.05s.	 Install: 1.55s.  Extract: 1.42s.  Relocate: 0.12s.  Total: 1.60s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/cmake-3.27.7-kd6xihnhlzyfwafeilow6t2mvolyryor
==> Installing openssh-9.5p1-zjwxy3znkrc3yslkm3eoyewet5bxacjc [42/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-openssh-9.5p1-zjwxy3znkrc3yslkm3eoyewet5bxacjc.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssh-9.5p1/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-openssh-9.5p1-zjwxy3znkrc3yslkm3eoyewet5bxacjc.spack
==> Extracting openssh-9.5p1-zjwxy3znkrc3yslkm3eoyewet5bxacjc from binary cache
==> openssh: Successfully installed openssh-9.5p1-zjwxy3znkrc3yslkm3eoyewet5bxacjc
  Search: 0.00s.  Fetch: 0.02s.	 Install: 0.17s.  Extract: 0.11s.  Relocate: 0.05s.  Total: 0.19s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssh-9.5p1-zjwxy3znkrc3yslkm3eoyewet5bxacjc
==> Installing pmix-5.0.1-fhkyvm3nsv5cjxhfszdx2y3rieh274vn [43/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-pmix-5.0.1-fhkyvm3nsv5cjxhfszdx2y3rieh274vn.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pmix-5.0.1/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-pmix-5.0.1-fhkyvm3nsv5cjxhfszdx2y3rieh274vn.spack
==> Extracting pmix-5.0.1-fhkyvm3nsv5cjxhfszdx2y3rieh274vn from binary cache
==> pmix: Successfully installed pmix-5.0.1-fhkyvm3nsv5cjxhfszdx2y3rieh274vn
  Search: 0.00s.  Fetch: 0.02s.	 Install: 0.27s.  Extract: 0.23s.  Relocate: 0.03s.  Total: 0.29s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pmix-5.0.1-fhkyvm3nsv5cjxhfszdx2y3rieh274vn
==> Installing intel-tbb-2020.3-yz7cbec7xfeecpseip264hhoeuyzj42f [44/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-intel-tbb-2020.3-yz7cbec7xfeecpseip264hhoeuyzj42f.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/intel-tbb-2020.3/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-intel-tbb-2020.3-yz7cbec7xfeecpseip264hhoeuyzj42f.spack
==> Extracting intel-tbb-2020.3-yz7cbec7xfeecpseip264hhoeuyzj42f from binary cache
==> intel-tbb: Successfully installed intel-tbb-2020.3-yz7cbec7xfeecpseip264hhoeuyzj42f
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.12s.  Extract: 0.10s.  Relocate: 0.01s.  Total: 0.13s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/intel-tbb-2020.3-yz7cbec7xfeecpseip264hhoeuyzj42f
==> Installing openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof [45/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof.spack
==> Extracting openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof from binary cache
==> openmpi: Successfully installed openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof
  Search: 0.00s.  Fetch: 0.02s.	 Install: 0.56s.  Extract: 0.49s.  Relocate: 0.05s.  Total: 0.58s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof
==> Installing dyninst-12.3.0-iarivsqzjxv635xtdeehj3ehnq5goziu [46/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-dyninst-12.3.0-iarivsqzjxv635xtdeehj3ehnq5goziu.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/dyninst-12.3.0/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-dyninst-12.3.0-iarivsqzjxv635xtdeehj3ehnq5goziu.spack
==> Extracting dyninst-12.3.0-iarivsqzjxv635xtdeehj3ehnq5goziu from binary cache
==> dyninst: Successfully installed dyninst-12.3.0-iarivsqzjxv635xtdeehj3ehnq5goziu
  Search: 0.00s.  Fetch: 0.02s.	 Install: 0.30s.  Extract: 0.23s.  Relocate: 0.05s.  Total: 0.32s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/dyninst-12.3.0-iarivsqzjxv635xtdeehj3ehnq5goziu
==> Installing adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf [47/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf.spack
==> Extracting adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf from binary cache
==> adept-utils: Successfully installed adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.08s.  Extract: 0.04s.  Relocate: 0.03s.  Total: 0.09s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf
==> Installing callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz [48/49]
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz.spec.json.sig
==> Fetching file:///mirror/build_cache/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4/linux-ubuntu22.04-x86_64_v3-gcc-11.4.0-callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz.spack
==> Extracting callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz from binary cache
==> callpath: Successfully installed callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz
  Search: 0.00s.  Fetch: 0.01s.	 Install: 0.35s.  Extract: 0.05s.  Relocate: 0.27s.  Total: 0.36s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz
==> Installing tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd [49/49]
==> No binary for tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd found: installing from source
==> Using cached archive: /home/spack/spack/var/spack/cache/_source-cache/archive/2e/2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825.tar.gz
==> No patches needed for tutorial-mpileaks
==> tutorial-mpileaks: Executing phase: 'autoreconf'
==> tutorial-mpileaks: Executing phase: 'configure'
==> Error: ProcessError: Command exited with status 1:
    '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd/spack-src/configure' '--prefix=/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd'

1 error found in build log:
     28	   checking whether /home/spack/spack/lib/spack/env/gcc/gcc and cc understand -c and
	   -o together... yes
     29	   checking whether we are using the GNU C++ compiler... yes
     30	   checking whether /home/spack/spack/lib/spack/env/gcc/g++ accepts -g... yes
     31	   checking dependency style of /home/spack/spack/lib/spack/env/gcc/g++... gcc3
     32	   checking for /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/op
	   enmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/bin/mpicc... /home/spack/spack/opt/sp
	   ack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob
	   3cznoof/bin/mpicc
     33	   Checking whether /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.
	   0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/bin/mpicc responds to '-showme:co
	   mpile'... yes
  >> 34	   configure: error: unable to locate adept-utils installation

See build log for details:
  /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd/spack-build-out.txt

Note

This command may take a while to run and may produce more output if you don’t already have an MPI installed or configured in Spack.

We see that Spack has now identified and built all of our dependencies. It found that the:

  • openmpi package will satisfy our mpi dependency;

  • adept-utils is a concrete dependency; and

  • callpath is a concrete dependency.

But we are still not able to build the package.

Debugging Package Builds

Our tutorial-mpileaks package is still not building due to the adept-utils package’s configure error. Experienced Autotools developers will likely already see the problem and its solution.

But let’s take this opportunity to use Spack features to investigate the problem. Our options for proceeding are:

  • review the build log; and

  • build the package manually.

Reviewing the Build Log

The build log might yield some clues so let’s look at the contents of the spack-build-out.txt file at the path recommended above by our failed installation:

$ cat /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd/spack-build-out.txt
==> tutorial-mpileaks: Executing phase: 'autoreconf'
==> tutorial-mpileaks: Executing phase: 'configure'
==> [2023-11-12-09:25:36.753161] Find (recursive): /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd/spack-src ['configure']
==> [2023-11-12-09:25:36.754030] Find complete: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd/spack-src ['configure']
==> [2023-11-12-09:25:36.754344] FILTER FILE: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd/spack-src/configure [replacing "^(\s*if test x-L = )("\$p" \|\|\s*)$"]
==> [2023-11-12-09:25:36.777358] FILTER FILE: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd/spack-src/configure [replacing "^(\s*test x-R = )("\$p")(; then\s*)$"]
==> [2023-11-12-09:25:36.799398] FILTER FILE: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd/spack-src/configure [replacing "^(\s*test \$p = "-R")(; then\s*)$"]
==> [2023-11-12-09:25:36.822103] '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd/spack-src/configure' '--prefix=/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-ld6dflzj5vwcfnx7nhprmrogn5yfi2pd'
checking metadata... no
checking installation directory variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... /home/spack/spack/lib/spack/env/gcc/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/spack/spack/lib/spack/env/gcc/gcc accepts -g... yes
checking for /home/spack/spack/lib/spack/env/gcc/gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /home/spack/spack/lib/spack/env/gcc/gcc... gcc3
checking whether /home/spack/spack/lib/spack/env/gcc/gcc and cc understand -c and -o together... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /home/spack/spack/lib/spack/env/gcc/g++ accepts -g... yes
checking dependency style of /home/spack/spack/lib/spack/env/gcc/g++... gcc3
checking for /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/bin/mpicc... /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/bin/mpicc
Checking whether /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/bin/mpicc responds to '-showme:compile'... yes
configure: error: unable to locate adept-utils installation

In this case the error conveniently appears on the last line of the log and the output from spack install.

Here we also see a number of checks performed by the configure command. Most importantly, the last line is very clear: the installation path of the adept-utils dependency cannot be found.

Note

Spack automatically adds standard include and library directories to the compiler’s search path but it is not uncommon for this information to not get picked up. Some software, like mpileaks, requires the paths to be explicitly provided on the command line.

So let’s investigate further from the staged build directory.

Building Manually

First let’s try to build the package manually to see if we can figure out how to solve the problem.

Let’s move to the build directory using the spack cd command:

$ spack cd tutorial-mpileaks

You should now be in the appropriate stage directory since this command moves us into the working directory of the last attempted build. If not, you can cd into the directory above that contained the spack-build-out.txt file then into it’s spack-src subdirectory.

Now let’s ensure the environment is properly set up using the spack build-env command:

$ spack build-env tutorial-mpileaks bash

This command spawned a new shell containing the same environment that Spack used to build the tutorial-mpileaks package. (Feel free to substitute your favorite shell for bash.)

Note

If you are running using an AWS instance, you’ll want to substitute your home directory for /home/spack below.

From here we can manually re-run the build using the configure command:

$ ./configure --prefix=/home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/mpileaks-1.0-wl3kx4o4bgegghl4u7hb3jk4toina3fx
checking metadata... no
checking installation directory variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... /home/spack/spack/lib/spack/env/gcc/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/spack/spack/lib/spack/env/gcc/gcc accepts -g... yes
checking for /home/spack/spack/lib/spack/env/gcc/gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /home/spack/spack/lib/spack/env/gcc/gcc... gcc3
checking whether /home/spack/spack/lib/spack/env/gcc/gcc and cc understand -c and -o together... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /home/spack/spack/lib/spack/env/gcc/g++ accepts -g... yes
checking dependency style of /home/spack/spack/lib/spack/env/gcc/g++... gcc3
checking for /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.3-jfxctqwar7wb65rn7wf5mot7m4jxmsey/bin/mpicc... /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.3-jfxctqwar7wb65rn7wf5mot7m4jxmsey/bin/mpicc
Checking whether /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.3-jfxctqwar7wb65rn7wf5mot7m4jxmsey/bin/mpicc responds to '-showme:compile'... yes
configure: error: unable to locate adept-utils installation
checking metadata... no
checking installation directory variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... /home/spack/spack/lib/spack/env/gcc/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/spack/spack/lib/spack/env/gcc/gcc accepts -g... yes
checking for /home/spack/spack/lib/spack/env/gcc/gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /home/spack/spack/lib/spack/env/gcc/gcc... gcc3
checking whether /home/spack/spack/lib/spack/env/gcc/gcc and cc understand -c and -o together... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /home/spack/spack/lib/spack/env/gcc/g++ accepts -g... yes
checking dependency style of /home/spack/spack/lib/spack/env/gcc/g++... gcc3
checking for /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.1-p5qicacmcy72pjljd4lfdy66kavxp3tv/bin/mpicc... /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.1-p5qicacmcy72pjljd4lfdy66kavxp3tv/bin/mpicc
Checking whether /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.1-p5qicacmcy72pjljd4lfdy66kavxp3tv/bin/mpicc responds to '-showme:compile'... yes
configure: error: unable to locate adept-utils installation

And we get the same results as before. Unfortunately, the output does not provide any additional information that can help us with the build.

Given that this is a simple package built with configure and we know that installation directories need to be specified, we can use its help to see what command line options are available for the software.

$ ./configure --help
`configure' configures mpileaks 1.0 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/mpileaks]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-adept-utils=PATH Specify adept-utils path
  --with-callpath=PATH    Specify libcallpath path
  --with-stack-start-c=value
                          Specify integer number for MPILEAKS_STACK_START for
                          C code
  --with-stack-start-fortran=value
                          Specify integer number for MPILEAKS_STACK_START for
                          FORTRAN code
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPP         C preprocessor
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <moody20@llnl.gov>.

Note that you can specify the paths for the two concrete dependencies with the following options:

  • --with-adept-utils=PATH

  • --with-callpath=PATH

So let’s leave the spawned shell and return to the Spack repository directory:

$ exit
$ cd $SPACK_ROOT

Now that we know what arguments to provide, we can update the recipe.

Specifying Configure Arguments

We now know which options we need to pass to configure, but how do we know where to find the installation paths for the package’s dependencies from within the package.py file?

Fortunately, we can query the package’s concrete Spec instance. The self.spec property holds the package’s directed acyclic graph (DAG) of its dependencies. Each dependency’s Spec, accessed by name, has a prefix property containing its installation path.

So let’s add the configuration arguments for specifying the paths to the two concrete dependencies in the configure_args method of our package.

Bring mpileaks’ package.py file back up in your $EDITOR with the spack edit command:

$ spack edit tutorial-mpileaks

and add the --with-adept-utils and --with-callpath arguments in the configure_args method as follows:

tutorial-mpileaks/package.py (from tutorial/examples/packaging/3.package.py)
from spack import *


class TutorialMpileaks(AutotoolsPackage):
    """Tool to detect and report MPI objects like MPI_Requests and
    MPI_Datatypes."""

    homepage = "https://github.com/LLNL/mpileaks"
    url      = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"

    maintainers("adamjstewart")

    version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")

    depends_on("mpi")
    depends_on("adept-utils")
    depends_on("callpath")

    def configure_args(self):
        args = [
            "--with-adept-utils={0}".format(self.spec["adept-utils"].prefix),
            "--with-callpath={0}".format(self.spec["callpath"].prefix),
        ]

        return args

Since this is an AutotoolsPackage, the arguments returned from the method will automatically get passed to configure during the build.

Now let’s try the build again:

$ spack install tutorial-mpileaks
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/boost-1.72.0-mxnvckahgnzim3vtymzk5kydav6fukfd
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libpciaccess-0.17-af4bqq6hwe23ojn7i3o2n7ws2b7wu64m
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiconv-1.17-ivn4eq42mmvco5l3drcxjzbmpto5nfi2
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/xz-5.4.1-axxqoeqv4lckdxrkvdp6f376ndmade4c
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zlib-ng-2.1.4-5xcetrvs3fzd7k27dw5duyxitnsy4uvh
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/ncurses-6.4-qqlh6asufg6vhjnkbhwxl3jmocyolykt
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/numactl-2.0.14-mbwdizyinycylldk4lrjvq2y474cd5bk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/bzip2-1.0.8-4oz3kpfibmlvfizzivudj7pnzm2w7ce7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zstd-1.5.5-jkznmrmqdgtpzvs42qxljrjs6m6f6aho
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxcrypt-4.4.35-hezcx7ggdisbf6oqol5ucfch7emlggqk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pkgconf-1.9.5-zjgtpdofa5acoyfs62cczvdj3gjngy3y
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/intel-tbb-2020.3-yz7cbec7xfeecpseip264hhoeuyzj42f
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiberty-2.41-duir6ffkanf7hwkjwgjyrvoh2nxikw3q
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssl-3.1.3-35j7wvrf3jovxokjkzdrpv265sfrjwga
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libedit-3.1-20210216-s4kq4wo6ii3vt3s354agguqm462yu32q
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxml2-2.10.3-67qoxbv3pyyep745wytvlgnnosn6pwnr
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pigz-2.7-catlxmodt7sirns2di5pod576omq32hk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libevent-2.1.12-wpvxxkafb3j7uc465iekvpyhew3brhl7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/hwloc-2.9.1-dyrsjedv3fxwdi3sutxieq2rcz4etdib
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tar-1.34-vdb3ozocdu73c4gl45gnzcjgscfye6mg
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pmix-5.0.1-fhkyvm3nsv5cjxhfszdx2y3rieh274vn
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gettext-0.22.3-y26lmloj3u6romzd6j3xdfiib7gnkbga
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/krb5-1.20.1-tjiqlymlbmjxyyvwlkumu4qq65nuqr3w
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/elfutils-0.189-xnvt4jsw4zbkvyp5w4zayfavuoe2e7px
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssh-9.5p1-zjwxy3znkrc3yslkm3eoyewet5bxacjc
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/dyninst-12.3.0-iarivsqzjxv635xtdeehj3ehnq5goziu
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libdwarf-20180129-qabscwjrgqm5u7yvckt32xf54x3wp7nk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz
==> Installing tutorial-mpileaks-1.0-r7ipiosmmok6tgiuhzykn2jaouqhhpgt [32/32]
==> No binary for tutorial-mpileaks-1.0-r7ipiosmmok6tgiuhzykn2jaouqhhpgt found: installing from source
==> Using cached archive: /home/spack/spack/var/spack/cache/_source-cache/archive/2e/2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825.tar.gz
==> No patches needed for tutorial-mpileaks
==> tutorial-mpileaks: Executing phase: 'autoreconf'
==> tutorial-mpileaks: Executing phase: 'configure'
==> tutorial-mpileaks: Executing phase: 'build'
==> tutorial-mpileaks: Executing phase: 'install'
==> tutorial-mpileaks: Successfully installed tutorial-mpileaks-1.0-r7ipiosmmok6tgiuhzykn2jaouqhhpgt
  Stage: 0.01s.	 Autoreconf: 0.00s.  Configure: 4.87s.	Build: 3.77s.  Install: 0.20s.	Post-install: 0.07s.  Total: 9.25s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-r7ipiosmmok6tgiuhzykn2jaouqhhpgt

Success!

All we needed to do was add the path arguments for the two concrete packages for configure to perform a simple, no frills build.

But is that all we can do to help other users build our software?

Adding Variants

What if we want to expose the software’s optional features in the package? We can do this by adding build-time options using package variants.

Recall from configure’s help output for tutorial-mpileaks that the software has several optional features and packages that we could support in Spack. Two stand out for tutorial purposes because they both take integers, as opposed to simply allowing them to be enabled or disabled.

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-adept-utils=PATH Specify adept-utils path
  --with-callpath=PATH    Specify libcallpath path
  --with-stack-start-c=value
                          Specify integer number for MPILEAKS_STACK_START for
                          C code
  --with-stack-start-fortran=value
                          Specify integer number for MPILEAKS_STACK_START for
                          FORTRAN code
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]

According to the software’s documentation (https://github.com/LLNL/mpileaks), the integer values for the --with-stack-start-* options represent the numbers of calls to shave off of the top of the stack traces for each language, effectively reducing the noise of internal mpileaks library function calls in generated traces.

For simplicity, we’ll use one variant to supply the value for both arguments.

Supporting this optional feature will require two changes to the package:

  • add a variant directive; and

  • change the configure options to use the value.

Let’s add the variant to expect an int value with a default of 0. Defaulting to 0 effectively disables the option. Also change configure_args to retrieve the value and add the corresponding configure arguments when a non-zero value is provided by the user.

Bring mpileaks’ package.py file back up in your $EDITOR with the spack edit command:

$ spack edit tutorial-mpileaks

and add the variant directive and associated arguments as follows:

tutorial-mpileaks/package.py (from tutorial/examples/packaging/4.package.py)
from spack import *


class TutorialMpileaks(AutotoolsPackage):
    """Tool to detect and report MPI objects like MPI_Requests and
    MPI_Datatypes."""

    homepage = "https://github.com/LLNL/mpileaks"
    url      = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"

    maintainers("adamjstewart")

    version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")

    variant("stackstart", values=int, default=0,
            description="Specify the number of stack frames to truncate")

    depends_on("mpi")
    depends_on("adept-utils")
    depends_on("callpath")

    def configure_args(self):
        args = [
            "--with-adept-utils={0}".format(self.spec["adept-utils"].prefix),
            "--with-callpath={0}".format(self.spec["callpath"].prefix),
        ]

        stackstart = int(self.spec.variants["stackstart"].value)
        if stackstart:
            args.extend([
                "--with-stack-start-c={0}".format(stackstart),
                "--with-stack-start-fortran={0}".format(stackstart),
            ])

        return args

Notice that the variant directive is translated into a variants dictionary in self.spec. Also note that the value provided by the user is accessed by the entry’s value property.

Now run the installation again with the --verbose install option – to get more output during the build – and the new stackstart package option:

$ spack install --verbose tutorial-mpileaks stackstart=4
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/boost-1.72.0-mxnvckahgnzim3vtymzk5kydav6fukfd
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libpciaccess-0.17-af4bqq6hwe23ojn7i3o2n7ws2b7wu64m
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiconv-1.17-ivn4eq42mmvco5l3drcxjzbmpto5nfi2
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/xz-5.4.1-axxqoeqv4lckdxrkvdp6f376ndmade4c
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zlib-ng-2.1.4-5xcetrvs3fzd7k27dw5duyxitnsy4uvh
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/ncurses-6.4-qqlh6asufg6vhjnkbhwxl3jmocyolykt
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/numactl-2.0.14-mbwdizyinycylldk4lrjvq2y474cd5bk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/bzip2-1.0.8-4oz3kpfibmlvfizzivudj7pnzm2w7ce7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zstd-1.5.5-jkznmrmqdgtpzvs42qxljrjs6m6f6aho
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxcrypt-4.4.35-hezcx7ggdisbf6oqol5ucfch7emlggqk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pkgconf-1.9.5-zjgtpdofa5acoyfs62cczvdj3gjngy3y
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/intel-tbb-2020.3-yz7cbec7xfeecpseip264hhoeuyzj42f
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiberty-2.41-duir6ffkanf7hwkjwgjyrvoh2nxikw3q
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssl-3.1.3-35j7wvrf3jovxokjkzdrpv265sfrjwga
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxml2-2.10.3-67qoxbv3pyyep745wytvlgnnosn6pwnr
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libedit-3.1-20210216-s4kq4wo6ii3vt3s354agguqm462yu32q
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pigz-2.7-catlxmodt7sirns2di5pod576omq32hk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libevent-2.1.12-wpvxxkafb3j7uc465iekvpyhew3brhl7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/hwloc-2.9.1-dyrsjedv3fxwdi3sutxieq2rcz4etdib
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tar-1.34-vdb3ozocdu73c4gl45gnzcjgscfye6mg
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pmix-5.0.1-fhkyvm3nsv5cjxhfszdx2y3rieh274vn
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gettext-0.22.3-y26lmloj3u6romzd6j3xdfiib7gnkbga
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/krb5-1.20.1-tjiqlymlbmjxyyvwlkumu4qq65nuqr3w
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/elfutils-0.189-xnvt4jsw4zbkvyp5w4zayfavuoe2e7px
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssh-9.5p1-zjwxy3znkrc3yslkm3eoyewet5bxacjc
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libdwarf-20180129-qabscwjrgqm5u7yvckt32xf54x3wp7nk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/dyninst-12.3.0-iarivsqzjxv635xtdeehj3ehnq5goziu
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz
==> Installing tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv [32/32]
==> No binary for tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv found: installing from source
==> Using cached archive: /home/spack/spack/var/spack/cache/_source-cache/archive/2e/2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825.tar.gz
==> No patches needed for tutorial-mpileaks
==> tutorial-mpileaks: Executing phase: 'autoreconf'
==> tutorial-mpileaks: Executing phase: 'configure'
==> [2023-11-12-09:26:49.256106] Find (recursive): /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src ['configure']
==> [2023-11-12-09:26:49.256769] Find complete: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src ['configure']
==> [2023-11-12-09:26:49.257023] FILTER FILE: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/configure [replacing "^(\s*if test x-L = )("\$p" \|\|\s*)$"]
==> [2023-11-12-09:26:49.272434] FILTER FILE: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/configure [replacing "^(\s*test x-R = )("\$p")(; then\s*)$"]
==> [2023-11-12-09:26:49.286937] FILTER FILE: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/configure [replacing "^(\s*test \$p = "-R")(; then\s*)$"]
==> [2023-11-12-09:26:49.302941] '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/configure' '--prefix=/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv' '--with-adept-utils=/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf' '--with-callpath=/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz' '--with-stack-start-c=4' '--with-stack-start-fortran=4'
checking metadata... no
checking installation directory variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... /home/spack/spack/lib/spack/env/gcc/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/spack/spack/lib/spack/env/gcc/gcc accepts -g... yes
checking for /home/spack/spack/lib/spack/env/gcc/gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /home/spack/spack/lib/spack/env/gcc/gcc... gcc3
checking whether /home/spack/spack/lib/spack/env/gcc/gcc and cc understand -c and -o together... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /home/spack/spack/lib/spack/env/gcc/g++ accepts -g... yes
checking dependency style of /home/spack/spack/lib/spack/env/gcc/g++... gcc3
checking for /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/bin/mpicc... /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/bin/mpicc
Checking whether /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/bin/mpicc responds to '-showme:compile'... yes
checking for adept-utils installation... /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf
checking for libcallpath installation... /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /home/spack/spack/lib/spack/env/gcc/gcc... /home/spack/spack/lib/spack/env/ld
checking if the linker (/home/spack/spack/lib/spack/env/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /home/spack/spack/lib/spack/env/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from /home/spack/spack/lib/spack/env/gcc/gcc object... ok
/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/configure: line 7163: /usr/bin/file: No such file or directory
checking how to run the C preprocessor... /home/spack/spack/lib/spack/env/gcc/gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether /home/spack/spack/lib/spack/env/gcc/g++ accepts -g... (cached) yes
checking dependency style of /home/spack/spack/lib/spack/env/gcc/g++... (cached) gcc3
checking how to run the C++ preprocessor... /home/spack/spack/lib/spack/env/gcc/g++ -E
checking for objdir... .libs
checking if /home/spack/spack/lib/spack/env/gcc/gcc supports -fno-rtti -fno-exceptions... no
checking for /home/spack/spack/lib/spack/env/gcc/gcc option to produce PIC... -fPIC -DPIC
checking if /home/spack/spack/lib/spack/env/gcc/gcc PIC flag -fPIC -DPIC works... yes
checking if /home/spack/spack/lib/spack/env/gcc/gcc static flag -static works... yes
checking if /home/spack/spack/lib/spack/env/gcc/gcc supports -c -o file.o... yes
checking if /home/spack/spack/lib/spack/env/gcc/gcc supports -c -o file.o... (cached) yes
checking whether the /home/spack/spack/lib/spack/env/gcc/gcc linker (/home/spack/spack/lib/spack/env/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by /home/spack/spack/lib/spack/env/gcc/g++... /home/spack/spack/lib/spack/env/ld
checking if the linker (/home/spack/spack/lib/spack/env/ld) is GNU ld... yes
checking whether the /home/spack/spack/lib/spack/env/gcc/g++ linker (/home/spack/spack/lib/spack/env/ld) supports shared libraries... yes
checking for /home/spack/spack/lib/spack/env/gcc/g++ option to produce PIC... -fPIC -DPIC
checking if /home/spack/spack/lib/spack/env/gcc/g++ PIC flag -fPIC -DPIC works... yes
checking if /home/spack/spack/lib/spack/env/gcc/g++ static flag -static works... yes
checking if /home/spack/spack/lib/spack/env/gcc/g++ supports -c -o file.o... yes
checking if /home/spack/spack/lib/spack/env/gcc/g++ supports -c -o file.o... (cached) yes
checking whether the /home/spack/spack/lib/spack/env/gcc/g++ linker (/home/spack/spack/lib/spack/env/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) yes
checking whether byte ordering is bigendian... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating examples/Makefile
config.status: creating scripts/Makefile
config.status: creating scripts/srun-mpileaks
config.status: creating scripts/srun-mpileaksf
config.status: creating config/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
==> [2023-11-12-09:26:54.730753] Find (recursive): /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src ['libtool']
==> [2023-11-12-09:26:54.731267] Find complete: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src ['libtool']
==> [2023-11-12-09:26:54.731424] FILTER FILE: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/libtool [replacing "^wl=""$"]
==> [2023-11-12-09:26:54.738320] FILTER FILE: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/libtool [replacing "^pic_flag=""$"]
==> [2023-11-12-09:26:54.743563] FILTER FILE: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/libtool [replacing "^pic_flag=""$"]
==> [2023-11-12-09:26:54.770290] FILTER FILE: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/libtool [replacing "^pic_flag=""$"]
==> [2023-11-12-09:26:54.797123] FILTER FILE: /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/libtool [replacing "^pic_flag=""$"]
==> tutorial-mpileaks: Executing phase: 'build'
==> [2023-11-12-09:26:54.882579] 'make' '-j16' 'V=1'
Making all in scripts
make[1]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/scripts'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/scripts'
Making all in src
make[1]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/src'
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT mpileaks.lo -MD -MP -MF .deps/mpileaks.Tpo -c -o mpileaks.lo mpileaks.cpp
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT comm.lo -MD -MP -MF .deps/comm.Tpo -c -o comm.lo comm.cpp
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT datatype.lo -MD -MP -MF .deps/datatype.Tpo -c -o datatype.lo datatype.cpp
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT errhandler.lo -MD -MP -MF .deps/errhandler.Tpo -c -o errhandler.lo errhandler.cpp
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c -o fileio.lo fileio.cpp
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT group.lo -MD -MP -MF .deps/group.Tpo -c -o group.lo group.cpp
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT info.lo -MD -MP -MF .deps/info.Tpo -c -o info.lo info.cpp
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT keyval.lo -MD -MP -MF .deps/keyval.Tpo -c -o keyval.lo keyval.cpp
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT mem.lo -MD -MP -MF .deps/mem.Tpo -c -o mem.lo mem.cpp
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT op.lo -MD -MP -MF .deps/op.Tpo -c -o op.lo op.cpp
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT request.lo -MD -MP -MF .deps/request.Tpo -c -o request.lo request.cpp
/bin/bash ../libtool --tag=CXX	 --mode=compile /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config	  -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include	   -g -O2 -MT win.lo -MD -MP -MF .deps/win.Tpo -c -o win.lo win.cpp
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT mpileaks.lo -MD -MP -MF .deps/mpileaks.Tpo -c mpileaks.cpp	-fPIC -DPIC -o .libs/mpileaks.o
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT datatype.lo -MD -MP -MF .deps/datatype.Tpo -c datatype.cpp	-fPIC -DPIC -o .libs/datatype.o
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT comm.lo -MD -MP -MF .deps/comm.Tpo -c comm.cpp  -fPIC -DPIC -o .libs/comm.o
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT errhandler.lo -MD -MP -MF .deps/errhandler.Tpo -c errhandler.cpp  -fPIC -DPIC -o .libs/errhandler.o
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.cpp  -fPIC -DPIC -o .libs/fileio.o
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT mem.lo -MD -MP -MF .deps/mem.Tpo -c mem.cpp	 -fPIC -DPIC -o .libs/mem.o
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT group.lo -MD -MP -MF .deps/group.Tpo -c group.cpp  -fPIC -DPIC -o .libs/group.o
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT keyval.lo -MD -MP -MF .deps/keyval.Tpo -c keyval.cpp  -fPIC -DPIC -o .libs/keyval.o
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT request.lo -MD -MP -MF .deps/request.Tpo -c request.cpp  -fPIC -DPIC -o .libs/request.o
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT op.lo -MD -MP -MF .deps/op.Tpo -c op.cpp  -fPIC -DPIC -o .libs/op.o
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT info.lo -MD -MP -MF .deps/info.Tpo -c info.cpp  -fPIC -DPIC -o .libs/info.o
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT win.lo -MD -MP -MF .deps/win.Tpo -c win.cpp	 -fPIC -DPIC -o .libs/win.o
errhandler.cpp: In function 'int MPI_Errhandler_create(void (*)(ompi_communicator_t**, int*, ...), ompi_errhandler_t**)':
errhandler.cpp:33:34: warning: 'int PMPI_Errhandler_create(void (*)(ompi_communicator_t**, int*, ...), ompi_errhandler_t**)' is deprecated: PMPI_Errhandler_create was removed in MPI-3.0.  Use PMPI_Comm_create_errhandler instead.  continuing... [-Wdeprecated-declarations]
   33 |	  int rc = PMPI_Errhandler_create(function, eh);
      |		   ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from errhandler.cpp:10:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include/mpi.h:2835:20: note: declared here
 2835 | OMPI_DECLSPEC  int PMPI_Errhandler_create(MPI_Handler_function *function,
      |			   ^~~~~~~~~~~~~~~~~~~~~~
errhandler.cpp: In function 'int MPI_Errhandler_get(MPI_Comm, ompi_errhandler_t**)':
errhandler.cpp:40:31: warning: 'int PMPI_Errhandler_get(MPI_Comm, ompi_errhandler_t**)' is deprecated: PMPI_Errhandler_get was removed in MPI-3.0.  Use PMPI_Comm_get_errhandler instead.  continuing... [-Wdeprecated-declarations]
   40 |	  int rc = PMPI_Errhandler_get(comm, eh);
      |		   ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from errhandler.cpp:10:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include/mpi.h:2840:20: note: declared here
 2840 | OMPI_DECLSPEC  int PMPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler *errhandler)
      |			   ^~~~~~~~~~~~~~~~~~~
datatype.cpp: In function 'int MPI_Type_hvector(int, int, MPI_Aint, MPI_Datatype, ompi_datatype_t**)':
datatype.cpp:60:29: warning: 'int PMPI_Type_hvector(int, int, MPI_Aint, MPI_Datatype, ompi_datatype_t**)' is deprecated: PMPI_Type_hvector was removed in MPI-3.0.  Use PMPI_Type_create_hvector instead.  continuing... [-Wdeprecated-declarations]
   60 |	  int rc = PMPI_Type_hvector(count, blocklength, stride, oldtype, newtype);
      |		   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from datatype.cpp:10:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include/mpi.h:2861:20: note: declared here
 2861 | OMPI_DECLSPEC  int PMPI_Type_hvector(int count, int blocklength, MPI_Aint stride,
      |			   ^~~~~~~~~~~~~~~~~
datatype.cpp: In function 'int MPI_Type_hindexed(int, int*, MPI_Aint*, MPI_Datatype, ompi_datatype_t**)':
datatype.cpp:78:30: warning: 'int PMPI_Type_hindexed(int, int*, MPI_Aint*, MPI_Datatype, ompi_datatype_t**)' is deprecated: PMPI_Type_hindexed was removed in MPI-3.0.	Use PMPI_Type_create_hindexed instead.	continuing... [-Wdeprecated-declarations]
   78 |	  int rc = PMPI_Type_hindexed(count, array_of_blocklengths, array_of_displacements,
      |		   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   79 |				      oldtype, newtype);
      |				      ~~~~~~~~~~~~~~~~~
In file included from datatype.cpp:10:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include/mpi.h:2854:20: note: declared here
 2854 | OMPI_DECLSPEC  int PMPI_Type_hindexed(int count, int array_of_blocklengths[],
      |			   ^~~~~~~~~~~~~~~~~~
datatype.cpp: In function 'int MPI_Type_struct(int, int*, MPI_Aint*, ompi_datatype_t**, ompi_datatype_t**)':
datatype.cpp:88:28: warning: 'int PMPI_Type_struct(int, int*, MPI_Aint*, ompi_datatype_t**, ompi_datatype_t**)' is deprecated: PMPI_Type_struct was removed in MPI-3.0.	 Use PMPI_Type_create_struct instead.  continuing... [-Wdeprecated-declarations]
   88 |	  int rc = PMPI_Type_struct(count, array_of_blocklengths, array_of_displacements,
      |		   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   89 |				    array_of_types, newtype);
      |				    ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from datatype.cpp:10:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include/mpi.h:2873:20: note: declared here
 2873 | OMPI_DECLSPEC  int PMPI_Type_struct(int count, int array_of_blocklengths[],
      |			   ^~~~~~~~~~~~~~~~
keyval.cpp: In function 'int MPI_Keyval_create(int (*)(MPI_Comm, int, void*, void*, void*, int*), int (*)(MPI_Comm, int, void*, void*), int*, void*)':
keyval.cpp:38:30: warning: 'int PMPI_Keyval_create(int (*)(MPI_Comm, int, void*, void*, void*, int*), int (*)(MPI_Comm, int, void*, void*), int*, void*)' is deprecated: PMPI_Keyval_create was deprecated in MPI-2.0; use PMPI_Comm_create_keyval instead. [-Wdeprecated-declarations]
   38 |	  int rc = PMPI_Keyval_create(copy_fn, delete_fn, keyval, extra_state);
      |		   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from keyval.cpp:10:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include/mpi.h:2768:20: note: declared here
 2768 | OMPI_DECLSPEC  int PMPI_Keyval_create(MPI_Copy_function *copy_fn,
      |			   ^~~~~~~~~~~~~~~~~~
keyval.cpp: In function 'int MPI_Keyval_free(int*)':
keyval.cpp:93:28: warning: 'int PMPI_Keyval_free(int*)' is deprecated: PMPI_Keyval_free was deprecated in MPI-2.0; PMPI_Comm_free_keyval instead. [-Wdeprecated-declarations]
   93 |	  int rc = PMPI_Keyval_free(keyval);
      |		   ~~~~~~~~~~~~~~~~^~~~~~~~
In file included from keyval.cpp:10:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include/mpi.h:2774:20: note: declared here
 2774 | OMPI_DECLSPEC  int PMPI_Keyval_free(int *keyval)
      |			   ^~~~~~~~~~~~~~~~
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT errhandler.lo -MD -MP -MF .deps/errhandler.Tpo -c errhandler.cpp -o errhandler.o >/dev/null 2>&1
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT comm.lo -MD -MP -MF .deps/comm.Tpo -c comm.cpp -o comm.o >/dev/null 2>&1
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT group.lo -MD -MP -MF .deps/group.Tpo -c group.cpp -o group.o >/dev/null 2>&1
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT datatype.lo -MD -MP -MF .deps/datatype.Tpo -c datatype.cpp -o datatype.o >/dev/null 2>&1
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT keyval.lo -MD -MP -MF .deps/keyval.Tpo -c keyval.cpp -o keyval.o >/dev/null 2>&1
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT mem.lo -MD -MP -MF .deps/mem.Tpo -c mem.cpp -o mem.o >/dev/null 2>&1
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT info.lo -MD -MP -MF .deps/info.Tpo -c info.cpp -o info.o >/dev/null 2>&1
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT op.lo -MD -MP -MF .deps/op.Tpo -c op.cpp -o op.o >/dev/null 2>&1
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT mpileaks.lo -MD -MP -MF .deps/mpileaks.Tpo -c mpileaks.cpp -o mpileaks.o >/dev/null 2>&1
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.cpp -o fileio.o >/dev/null 2>&1
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT request.lo -MD -MP -MF .deps/request.Tpo -c request.cpp -o request.o >/dev/null 2>&1
libtool: compile:  /home/spack/spack/lib/spack/env/gcc/g++ -DHAVE_CONFIG_H -I. -I../config -DHAVE_CONFIG_H -I. -I../config -I../src -I../config -g -O2 -I//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/include -I/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/include -g -O2 -MT win.lo -MD -MP -MF .deps/win.Tpo -c win.cpp -o win.o >/dev/null 2>&1
mv -f .deps/errhandler.Tpo .deps/errhandler.Plo
mv -f .deps/comm.Tpo .deps/comm.Plo
mv -f .deps/datatype.Tpo .deps/datatype.Plo
mv -f .deps/mem.Tpo .deps/mem.Plo
mv -f .deps/info.Tpo .deps/info.Plo
mv -f .deps/mpileaks.Tpo .deps/mpileaks.Plo
mv -f .deps/keyval.Tpo .deps/keyval.Plo
mv -f .deps/win.Tpo .deps/win.Plo
mv -f .deps/group.Tpo .deps/group.Plo
mv -f .deps/op.Tpo .deps/op.Plo
mv -f .deps/fileio.Tpo .deps/fileio.Plo
mv -f .deps/request.Tpo .deps/request.Plo
/bin/bash ../libtool --tag=CXX	 --mode=link /home/spack/spack/lib/spack/env/gcc/g++  -g -O2 -avoid-version  -o libmpileaks.la -rpath /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/lib mpileaks.lo comm.lo datatype.lo errhandler.lo fileio.lo group.lo info.lo keyval.lo mem.lo op.lo request.lo win.lo -L/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/lib -ladept_cutils -ladept_timing -ladept_utils -L/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/lib -lcallpath
libtool: link: /home/spack/spack/lib/spack/env/gcc/g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o	 .libs/mpileaks.o .libs/comm.o .libs/datatype.o .libs/errhandler.o .libs/fileio.o .libs/group.o .libs/info.o .libs/keyval.o .libs/mem.o .libs/op.o .libs/request.o .libs/win.o	 -L/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf/lib -ladept_cutils -ladept_timing -ladept_utils -L/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/lib -lcallpath -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o	 -Wl,-soname -Wl,libmpileaks.so -o .libs/libmpileaks.so
libtool: link: ar cru .libs/libmpileaks.a  mpileaks.o comm.o datatype.o errhandler.o fileio.o group.o info.o keyval.o mem.o op.o request.o win.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libmpileaks.a
libtool: link: ( cd ".libs" && rm -f "libmpileaks.la" && ln -s "../libmpileaks.la" "libmpileaks.la" )
make[1]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/src'
Making all in examples
make[1]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/examples'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/examples'
make[1]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src'
==> tutorial-mpileaks: Executing phase: 'install'
==> [2023-11-12-09:26:58.797323] 'make' '-j16' 'install'
Making install in scripts
make[1]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/scripts'
make[2]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/scripts'
test -z "/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/bin" || /usr/bin/mkdir -p "/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/bin"
make[2]: Nothing to be done for 'install-data-am'.
 /usr/bin/install -c srun-mpileaks srun-mpileaksf '/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/bin'
make[2]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/scripts'
make[1]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/scripts'
Making install in src
make[1]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/src'
make[2]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/src'
test -z "/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/lib" || /usr/bin/mkdir -p "/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/lib"
make[2]: Nothing to be done for 'install-data-am'.
 /bin/bash ../libtool	--mode=install /usr/bin/install -c   libmpileaks.la '/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/lib'
libtool: install: /usr/bin/install -c .libs/libmpileaks.so /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/lib/libmpileaks.so
libtool: install: /usr/bin/install -c .libs/libmpileaks.lai /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/lib/libmpileaks.la
libtool: install: /usr/bin/install -c .libs/libmpileaks.a /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/lib/libmpileaks.a
libtool: install: chmod 644 /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/lib/libmpileaks.a
libtool: install: ranlib /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/lib/libmpileaks.a
libtool: finish: PATH="/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz/bin:/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof/bin:/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssh-9.5p1-zjwxy3znkrc3yslkm3eoyewet5bxacjc/bin:/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pigz-2.7-catlxmodt7sirns2di5pod576omq32hk/bin:/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7/bin:/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zstd-1.5.5-jkznmrmqdgtpzvs42qxljrjs6m6f6aho/bin:/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/xz-5.4.1-axxqoeqv4lckdxrkvdp6f376ndmade4c/bin:/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/bzip2-1.0.8-4oz3kpfibmlvfizzivudj7pnzm2w7ce7/bin:/home/spack/spack/lib/spack/env/gcc:/home/spack/spack/lib/spack/env/case-insensitive:/home/spack/spack/lib/spack/env:/home/spack/spack/bin:/opt/spack/view/bin:/root/spack/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/src'
make[1]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/src'
Making install in examples
make[1]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/examples'
make[2]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/examples'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/share/mpileaks/examples" || /usr/bin/mkdir -p "/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/share/mpileaks/examples"
 /usr/bin/install -c -m 644 tests.c mpiPing_leaky.f '/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/share/mpileaks/examples'
make[2]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/examples'
make[1]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src/examples'
make[1]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src'
make[2]: Entering directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/share/mpileaks" || /usr/bin/mkdir -p "/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/share/mpileaks"
 /usr/bin/install -c -m 644 README '/home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/share/mpileaks'
make[2]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src'
make[1]: Leaving directory '/tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv/spack-src'
==> [2023-11-12-09:26:59.010876] Find (recursive): /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv ['*.la']
==> [2023-11-12-09:26:59.012132] Find complete: /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv ['*.la']
==> tutorial-mpileaks: Successfully installed tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv
  Stage: 0.01s.	 Autoreconf: 0.00s.  Configure: 5.57s.	Build: 3.86s.  Install: 0.22s.	Post-install: 0.07s.  Total: 10.09s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-kxobzrmml5xfxcuk6qiandof4b54efpv

Notice the addition of the two stack start arguments in the configure command that appears at the end of the highlighted line after mpileaks’ Executing phase: 'configure'.

Adding Tests

The simplest tests we can add are sanity checks, which can be used to ensure the directories and files we expect to be installed for all versions of the package actually exist. If we look at a successful installation, we can see that the following directories will be installed:

  • bin

  • lib

  • share

So let’s add a simple sanity check to ensure they are present, BUT let’s enter a typo to see what happens:

tutorial-mpileaks/package.py (from tutorial/examples/packaging/5.package.py)
from spack import *


class TutorialMpileaks(AutotoolsPackage):
    """Tool to detect and report MPI objects like MPI_Requests and
    MPI_Datatypes."""

    homepage = "https://github.com/LLNL/mpileaks"
    url      = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"

    maintainers("adamjstewart")

    sanity_check_is_dir = ["bin", "lib", "shar"]

    version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")

    variant("stackstart", values=int, default=0,
            description="Specify the number of stack frames to truncate")

    depends_on("mpi")
    depends_on("adept-utils")
    depends_on("callpath")

    def configure_args(self):
        args = [
            "--with-adept-utils={0}".format(self.spec["adept-utils"].prefix),
            "--with-callpath={0}".format(self.spec["callpath"].prefix),
        ]

        stackstart = int(self.spec.variants["stackstart"].value)
        if stackstart:
            args.extend([
                "--with-stack-start-c={0}".format(stackstart),
                "--with-stack-start-fortran={0}".format(stackstart),
            ])

        return args

We’ll need to uninstall the package so we can re-run it with tests enabled:

$ spack uninstall -ay tutorial-mpileaks
==> Successfully uninstalled tutorial-mpileaks@1.0%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-x86_64_v3/r7ipios
==> Successfully uninstalled tutorial-mpileaks@1.0%gcc@11.4.0 build_system=autotools stackstart=4 arch=linux-ubuntu22.04-x86_64_v3/kxobzrm
$ spack install --test=root tutorial-mpileaks
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/boost-1.72.0-mxnvckahgnzim3vtymzk5kydav6fukfd
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libpciaccess-0.17-af4bqq6hwe23ojn7i3o2n7ws2b7wu64m
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiconv-1.17-ivn4eq42mmvco5l3drcxjzbmpto5nfi2
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/xz-5.4.1-axxqoeqv4lckdxrkvdp6f376ndmade4c
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zlib-ng-2.1.4-5xcetrvs3fzd7k27dw5duyxitnsy4uvh
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/ncurses-6.4-qqlh6asufg6vhjnkbhwxl3jmocyolykt
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/numactl-2.0.14-mbwdizyinycylldk4lrjvq2y474cd5bk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/bzip2-1.0.8-4oz3kpfibmlvfizzivudj7pnzm2w7ce7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zstd-1.5.5-jkznmrmqdgtpzvs42qxljrjs6m6f6aho
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxcrypt-4.4.35-hezcx7ggdisbf6oqol5ucfch7emlggqk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pkgconf-1.9.5-zjgtpdofa5acoyfs62cczvdj3gjngy3y
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/intel-tbb-2020.3-yz7cbec7xfeecpseip264hhoeuyzj42f
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiberty-2.41-duir6ffkanf7hwkjwgjyrvoh2nxikw3q
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssl-3.1.3-35j7wvrf3jovxokjkzdrpv265sfrjwga
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pigz-2.7-catlxmodt7sirns2di5pod576omq32hk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxml2-2.10.3-67qoxbv3pyyep745wytvlgnnosn6pwnr
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libedit-3.1-20210216-s4kq4wo6ii3vt3s354agguqm462yu32q
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libevent-2.1.12-wpvxxkafb3j7uc465iekvpyhew3brhl7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tar-1.34-vdb3ozocdu73c4gl45gnzcjgscfye6mg
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/hwloc-2.9.1-dyrsjedv3fxwdi3sutxieq2rcz4etdib
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gettext-0.22.3-y26lmloj3u6romzd6j3xdfiib7gnkbga
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pmix-5.0.1-fhkyvm3nsv5cjxhfszdx2y3rieh274vn
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/krb5-1.20.1-tjiqlymlbmjxyyvwlkumu4qq65nuqr3w
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/elfutils-0.189-xnvt4jsw4zbkvyp5w4zayfavuoe2e7px
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssh-9.5p1-zjwxy3znkrc3yslkm3eoyewet5bxacjc
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/dyninst-12.3.0-iarivsqzjxv635xtdeehj3ehnq5goziu
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libdwarf-20180129-qabscwjrgqm5u7yvckt32xf54x3wp7nk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz
==> Installing tutorial-mpileaks-1.0-qnuzy32kfzxzr5fkszdxiy5agdwq4mdq [32/32]
==> No binary for tutorial-mpileaks-1.0-qnuzy32kfzxzr5fkszdxiy5agdwq4mdq found: installing from source
==> Using cached archive: /home/spack/spack/var/spack/cache/_source-cache/archive/2e/2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825.tar.gz
==> No patches needed for tutorial-mpileaks
==> tutorial-mpileaks: Executing phase: 'autoreconf'
==> tutorial-mpileaks: Executing phase: 'configure'
==> tutorial-mpileaks: Executing phase: 'build'
==> tutorial-mpileaks: Executing phase: 'install'
==> Error: InstallError: Install failed for tutorial-mpileaks. No such directory in prefix: shar
See build log for details:
  /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-qnuzy32kfzxzr5fkszdxiy5agdwq4mdq/spack-build-out.txt

See test log for details:
  /tmp/spack/spack-stage/spack-stage-tutorial-mpileaks-1.0-qnuzy32kfzxzr5fkszdxiy5agdwq4mdq/install-time-test-log.txt

Notice the installation fails due to the missing directory.

Now let’s fix the error and try again:

tutorial-mpileaks/package.py (from tutorial/examples/packaging/6.package.py)
from spack import *


class TutorialMpileaks(AutotoolsPackage):
    """Tool to detect and report MPI objects like MPI_Requests and
    MPI_Datatypes."""

    homepage = "https://github.com/LLNL/mpileaks"
    url      = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"

    maintainers("adamjstewart")

    sanity_check_is_dir = ["bin", "lib", "share"]

    version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")

    variant("stackstart", values=int, default=0,
            description="Specify the number of stack frames to truncate")

    depends_on("mpi")
    depends_on("adept-utils")
    depends_on("callpath")

    def configure_args(self):
        args = [
            "--with-adept-utils={0}".format(self.spec["adept-utils"].prefix),
            "--with-callpath={0}".format(self.spec["callpath"].prefix),
        ]

        stackstart = int(self.spec.variants["stackstart"].value)
        if stackstart:
            args.extend([
                "--with-stack-start-c={0}".format(stackstart),
                "--with-stack-start-fortran={0}".format(stackstart),
            ])

        return args

We’ll need to uninstall the package so we can re-run it with tests enabled:

$ spack install --test=root tutorial-mpileaks
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/boost-1.72.0-mxnvckahgnzim3vtymzk5kydav6fukfd
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libpciaccess-0.17-af4bqq6hwe23ojn7i3o2n7ws2b7wu64m
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiconv-1.17-ivn4eq42mmvco5l3drcxjzbmpto5nfi2
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/xz-5.4.1-axxqoeqv4lckdxrkvdp6f376ndmade4c
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zlib-ng-2.1.4-5xcetrvs3fzd7k27dw5duyxitnsy4uvh
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/ncurses-6.4-qqlh6asufg6vhjnkbhwxl3jmocyolykt
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/numactl-2.0.14-mbwdizyinycylldk4lrjvq2y474cd5bk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/bzip2-1.0.8-4oz3kpfibmlvfizzivudj7pnzm2w7ce7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/zstd-1.5.5-jkznmrmqdgtpzvs42qxljrjs6m6f6aho
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxcrypt-4.4.35-hezcx7ggdisbf6oqol5ucfch7emlggqk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pkgconf-1.9.5-zjgtpdofa5acoyfs62cczvdj3gjngy3y
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/intel-tbb-2020.3-yz7cbec7xfeecpseip264hhoeuyzj42f
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libiberty-2.41-duir6ffkanf7hwkjwgjyrvoh2nxikw3q
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gmake-4.4.1-znvoaniggvauzxv4yobchqt4g7tyjuc7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssl-3.1.3-35j7wvrf3jovxokjkzdrpv265sfrjwga
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libedit-3.1-20210216-s4kq4wo6ii3vt3s354agguqm462yu32q
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pigz-2.7-catlxmodt7sirns2di5pod576omq32hk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libxml2-2.10.3-67qoxbv3pyyep745wytvlgnnosn6pwnr
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libevent-2.1.12-wpvxxkafb3j7uc465iekvpyhew3brhl7
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tar-1.34-vdb3ozocdu73c4gl45gnzcjgscfye6mg
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/hwloc-2.9.1-dyrsjedv3fxwdi3sutxieq2rcz4etdib
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gettext-0.22.3-y26lmloj3u6romzd6j3xdfiib7gnkbga
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/pmix-5.0.1-fhkyvm3nsv5cjxhfszdx2y3rieh274vn
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/elfutils-0.189-xnvt4jsw4zbkvyp5w4zayfavuoe2e7px
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/krb5-1.20.1-tjiqlymlbmjxyyvwlkumu4qq65nuqr3w
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/libdwarf-20180129-qabscwjrgqm5u7yvckt32xf54x3wp7nk
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/dyninst-12.3.0-iarivsqzjxv635xtdeehj3ehnq5goziu
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openssh-9.5p1-zjwxy3znkrc3yslkm3eoyewet5bxacjc
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/openmpi-4.1.6-z4iqm7nipxsdam3chio7r74ob3cznoof
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/adept-utils-1.0.1-7eg5nni7e4hexm3yfm4cw3pqsajxrvrf
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/callpath-1.0.4-v4cgrxkr3s2236rgo7zs7neunc7udklz
==> Installing tutorial-mpileaks-1.0-z2cehyhjte2tjcqa3rqkqxhsga6lk4p2 [32/32]
==> No binary for tutorial-mpileaks-1.0-z2cehyhjte2tjcqa3rqkqxhsga6lk4p2 found: installing from source
==> Using cached archive: /home/spack/spack/var/spack/cache/_source-cache/archive/2e/2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825.tar.gz
==> No patches needed for tutorial-mpileaks
==> tutorial-mpileaks: Executing phase: 'autoreconf'
==> tutorial-mpileaks: Executing phase: 'configure'
==> tutorial-mpileaks: Executing phase: 'build'
==> tutorial-mpileaks: Executing phase: 'install'
==> tutorial-mpileaks: Successfully installed tutorial-mpileaks-1.0-z2cehyhjte2tjcqa3rqkqxhsga6lk4p2
  Stage: 0.01s.	 Autoreconf: 0.00s.  Configure: 4.70s.	Build: 3.43s.  Install: 0.27s.	Post-install: 0.07s.  Total: 8.91s
[+] /home/spack/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/tutorial-mpileaks-1.0-z2cehyhjte2tjcqa3rqkqxhsga6lk4p2

This is just scratching the surface of testing an installation. We could leverage the examples from this package to add post-install phase tests and or stand-lone tests. Refer to the links at the bottom for more information on checking an installation.

Querying the Spec Object

As packages evolve and are ported to different systems, build recipes often need to change as well. This is where the package’s Spec comes in.

So far we’ve looked at getting the paths for dependencies and values of variants from the Spec but there is more. The package’s self.spec, property allows you to query information about the package build, such as:

  • how a package’s dependencies were built;

  • what compiler was being used;

  • what version of a package is being installed; and

  • what variants were specified (implicitly or explicitly).

Examples of common queries are provided below.

Querying Spec Versions

You can customize the build based on the version of the package, compiler, and dependencies. Examples of each are:

  • Am I building my package with version 1.1 or greater?

if self.spec.satisfies("@1.1:"):
    # Do things needed for version 1.1 or newer
  • Am I building with a gcc version up to 5.0?

if self.spec.satisfies("%gcc@:5.0"):
    # Add arguments specific to gcc's up to 5.0
  • Is my dyninst dependency at least version 8.0?

if self.spec["dyninst"].satisfies("@8.0:"):
    # Use newest dyninst options

Querying Spec Names

If the build has to be customized to the concrete version of an abstract Spec you can use its name property. For example:

  • Is openmpi the MPI I’m building with?

if self.spec["mpi"].name == "openmpi":
    # Do openmpi things

Querying Variants

Adjusting build options based on enabled variants can be done by querying the Spec itself, such as:

  • Am I building with the debug variant?

if "+debug" in self.spec:
    # Add -g option to configure flags

These are just a few examples of Spec queries. Spack has thousands of built-in packages that can serve as examples to guide the development of your package. You can find these packages in $SPACK_ROOT/var/spack/repos/builtin/packages.

Multiple Build Systems

There are cases where software actively supports two build systems, or changes build systems as it evolves, or needs different build systems on different platforms. Spack allows you to write a single, neat recipe for these cases too. It will only require a slight change in the recipe’s structure compared to what we have seen so far.

Let’s take uncrustify, a source code beautifier, as an example. This software used to build with autotools until version 0.63, and then switched build systems to cmake at version 0.64.

Compared to previous recipes in this tutorial, in this case we need Uncrustify to inherit from both CMakePackage and AutotoolsPackage. We also need to explicitly specify the build_system directive, and add conditional dependencies based on build system:

class Uncrustify(CMakePackage, AutotoolsPackage):
    """Source Code Beautifier for C, C++, C#, ObjectiveC, Java, and others."""

    homepage = "http://uncrustify.sourceforge.net/"
    git = "https://github.com/uncrustify/uncrustify"

    version("0.64", commit="1d7d97")
    version("0.63", commit="44ce0f")

    build_system(
        conditional("cmake", when="@0.64:"),
        conditional("autotools", when="@:0.63"),
        default="cmake",
    )

    with when("build_system=cmake"):
        depends_on("cmake@3.18:", type="build")

We didn’t mention it so far, but each spec has a build_system variant that specifies the build system it uses. In most cases that variant has a single allowed value, inherited from the corresponding base package - so, usually, you don’t have to think about it.

When your package supports more than one build system though, you have to explicitly declare which ones are allowed and under which conditions. In the example above it’s cmake for version 0.64 and higher and autotools for version 0.63 and lower.

The build_system variant can also be used to declare other properties which are conditional on the build system being selected. For instance, above we declare that when using cmake, CMake 3.18+ is required.

The other relevant difference, compared to the previous recipes we have seen so far, is that the code prescribing the installation procedure will live into two separate classes:

class CMakeBuilder(spack.build_systems.cmake.CMakeBuilder):
   def cmake_args(self):
       pass

class AutotoolsBuilder(spack.build_systems.autotools.AutotoolsBuilder):
   def configure_args(self):
       pass

Depending on the spec, and more specifically on the value of the build_system directive, a builder object will be instantiated from one of the two classes when an installation is requested from a user.

Cleaning Up

Before leaving this tutorial, let’s ensure what we have done does not interfere with your Spack instance or future sections of the tutorial. Undo the work we’ve done here by entering the following commands:

$ spack uninstall -ay tutorial-mpileaks
==> Successfully uninstalled tutorial-mpileaks@1.0%gcc@11.4.0 build_system=autotools stackstart=0 arch=linux-ubuntu22.04-x86_64_v3/z2cehyh
$ spack repo remove tutorial
==> Removed repository /home/spack/spack/var/spack/repos/tutorial with namespace 'tutorial'.
$ rm -rf $SPACK_ROOT/var/spack/repos/tutorial/packages/tutorial-mpileaks

More information

This tutorial module only scratches the surface of defining Spack package recipes. The Packaging Guide more thoroughly covers packaging topics.

Additional information on key topics can be found at the links below.

Testing an installation

Using other build systems

Making a package externally detectable