[ Home | Overview | Publications | Software/Downloads ] • [ Documentation/Questions | Training Videos and Slides ] • [ People | Acks ]
Spack is a moving target and receives multiple commits per day. Normally, HPCToolkit will build and run successfully with the latest version of all of its prerequisite packages, but sometimes not. This page covers the current known issues where HPCToolkit fails to build with the latest version of spack. The main build directions are at:
Report problems to hpctoolkit-forum at rice dot edu. But before
reporting a problem, first try the versions recommended in the
packages.yaml file in the spack subdirectory of the
hpctoolkit repository. And always check the latest version of this file
on the hpctoolkit web site.
Last revised: February 6, 2023.
Python 3.6 is now deprecated for running Spack and support for 3.6, 3.7 and earlier will be removed in the next few months.
Two problems have been reported with Python 3.6 and earlier. First, there are problems with the lustre file system that result in permission denied errors. Second, sometimes there are problems fetching files with urllib.
Solution Both of these problems can be solved by using a later
version of Python. Since support for 3.7 and earlier will be removed
in a few months, the smart thing to do is to upgrade to Python 3.8 or
later now. If a later version is available but not first in your path
or under a different name, then one solution is to set the environment
variable SPACK_PYTHON to the preferred path. For example,
export SPACK_PYTHON=/usr/bin/python3.8
The 2022.10.01 release has hpcprof-mpi disabled due to
unresolved errors, but these are now fixed in the latest develop and
2023 release.
On all systems except very old Cray, you should use the +mpi
option (not +cray) with a spack externals entry for the
appropriate module or install prefix, or else build the MPI package if
necessary.
On a reasonably new Cray, build with +mpi and always the
cray-mpich module. Only on a very old Cray try the
+cray option. If there is no cray-mpich module, then
build with +mpi as for a regular Linux machine.
On any Cray, always configure for the front end (os=fe), and
you will likely need to add extra modules to the compiler entry. If
you’re unable to find a set of modules that work, as a last resort
switch to the PrgEnv-gnu module and build with --dirty.
See: software-instructions.html#Cray
Very rarely, the hpctoolkit build fails in hpcrun-fmt.c or
hpcrun-fmt.h with a spew of messages similar to the following.
In file included from hpcrun-fmt.c:84:
hpcrun-fmt.h:1:1: error: expected identifier or '(' before string constant
"$Id$\n"
^~~~~~~~
hpcrun-fmt.c: In function 'hpcrun_fmt_hdr_fwrite':
hpcrun-fmt.c:131:10: error: 'HPCRUN_FMT_Magic' undeclared (first use in this function)
fwrite(HPCRUN_FMT_Magic, 1, HPCRUN_FMT_MagicLen, fs);
The problem is that due to quirks in some file system timestamps, the
hpcrun-fmt.h file is being overwritten with a corrupt copy.
Fixed This problem was fixed both in the hpctoolkit repository and in the Spack recipe as of January 17, 2023, with patches for older versions.
If you see this bug in a Spack build, then update your version of
Spack to something after this date. If you see this bug in an
autotools build, then either update your copy of hpctoolkit, or else
manually move the file src/lib/prof-lean/hpcrun-fmt.txt to a
name that doesn’t end in .txt and use git to restore the
original hpcrun-fmt.h file.
These are general problems that arise from time to time.
Sometimes spack fails to download the source file(s) for some package and dies with a message similar to this.
==> Fetching from https://ftpmirror.gnu.org/m4/m4-1.4.18.tar.gz failed. ==> Error: FetchError: All fetchers failed for m4-1.4.18-vorbvkcjfac43b7vuswsvnm6xe7w7or5
Now that most tar files are available from AWS, this problem has become very rare. When it does still happen, the problem is usually temporary and the solution is to either wait a few minutes or an hour and try again, or else download the file manually and put it into a spack mirror.
Workaround: Spack’s default method of fetching is using internal
Python libraries (urllib). Sometimes, depending on version, this
may have trouble. In that case, you could try resetting this to the
external curl program in config.yaml.
config: url_fetch_method: curl
Another way fetch can fail is with a connection timeout. Some sites,
especially sourceforge are often slow to connect. If this happens, then
increase the connection timeout in config.yaml to 30 or 60
seconds (default is 10 seconds).
config: connect_timeout: 60
Sometimes the latest version of some package breaks the build. This has happened a couple of times where a new version of Boost has broken the build for Dyninst. The solution is to revert the package to an earlier version until the rest of the code catches up.
Sometimes but rarely, something in the spack core will change or break
the code in some package.py file. The solution is to look
through the spack git log and revert the repository to a recent commit
before the breakage.
Avoid binutils versions 2.35 and 2.35.1, they contain a bug that causes hpcprof to spew BFD Dwarf errors about “could not find variable specification at offset xxxx.” This is fixed in release 2.35.2 or 2.36 or later.
Avoid boost version 1.68.0, it breaks the build for hpctoolkit.
Beginning with 0.176, elfutils requires glibc 2.16 or later and won’t work with an older glibc, including RedHat or CentOS 6.x and Blue Gene.