-
Notifications
You must be signed in to change notification settings - Fork 55
Known Issues
This page describes known issues for the spack-stack develop code. Other known issues for specific releases of spack-stack are described in the end user docs for the respective releases.
-
pythonon Cray is non-functional: Could not find platform dependent libraries <exec_prefix>This problem and the solution to unset the environment variable
CONFIG_SITEbefore building spack-stack environments is described in https://github.com/spack/spack/issues/40110 and https://github.com/spack/spack/issues/42132. -
Build errors for
mapl@2.35.2withmpich@4.1.1This problem is described in https://github.com/JCSDA/spack-stack/issues/608.
-
Issues starting/finding
ecflow_serverdue to a mismatch of hostnamesOn some systems,
ecflow_servergets confused by multiple hostnames, e.g.localhostandMYORG-L-12345. Theecflow_start.shscript reports the hostname it wants to use. This name (or both) must be in/etc/hostsin the correct address line, often the loopback address (127.0.0.1). -
Installing/using graphical applications after switching user using
sudo suWhen using a role account to install spack-stack, it is sometimes necessary to run graphical applications such as the
qtonline installer. The following website describes in detail how this can be done: https://www.thegeekdiary.com/how-to-set-x11-forwarding-export-remote-display-for-users-who-switch-accounts-using-sudo/ -
Runtime segmentation faults for applications with Intel Classic or Intel LLVM compilers:
Relink `/opt/intel/oneapi/compiler/2024.0/lib/libirc.so' with `/lib/x86_64-linux-gnu/libc.so.6' for IFUNC symbol `memmove' - Segmentation fault (core dumped).This problem is caused by a bad library in the Intel oneAPI installation. The solution is to fix the library using patchelf, which requires write access to the oneAPI installation: First, verify that
ldd /opt/intel/oneapi/compiler/2024.0/lib/libirc.sosays it is statically linked (it isn't). Then, run:patchelf --add-needed libc.so.6 /opt/intel/oneapi/compiler/2024.0/lib/libirc.soand your application should run rightaway (no need to recompile). A similar approach can be used forlibimf.soby adding the missing symbols fromlibm.so.6.Fixing Intel oneAPI libraries isn't always an option. Another solution is to link against the correct, new shared version of these libraries (
libintlc.soetc). This can be done by adding the linker optionshared-intelfor spack-built packages to the Spack package recipe and/or to any downstream build system. See also here.
-
Timeout when fetching software during spack installs.
Discover's connection to the outside world can be very slow and spack sometimes aborts with fetch timeouts. Try again until it works, sometimes you just have to wait for a bit.
-
configure: error: cannot guess build type; you must specify onewhen buildingfreetypeor other packages that use configure scriptsThis can happen if a spack install is started in a
screensession, because Discover puts the temporary data in directories like/gpfsm/dnb33/tdirs/login/discover13.29716.dheinzel, which get wiped out after some time. Withoutscreen, this problem doesn't occur. -
Insufficient diskspace when building
py-pytorchThis is because
py-pytorchuses directory~/.ccacheduring the build, and the user's home directories have small quotas set. This problem can be avoided by creating a symbolic link from the home directory to a different place with sufficient quota:rm -fr ~/.ccache && ln -sf /path/to/dot_ccache_pytorch/ ~/.ccache. It's probably a good idea to revert this hack after a successful installation.
-
With the default module path, spack will detect the system as Cray, therefore one needs to remove it when building or using spack environments.
-
libxml2won't untar during thespack installstep, because of an issue with the filesystem. This can be avoided by makinglibxml2an external package.
-
Compiler errors when using too many threads for parallel builds.
Using more than two threads when running
make(e.g.make -j4) can lead to compiler errors like the following. To avoid this, reduce the number of threads in the site config'sconfig.yamlfile.[94%] Linking CXX executable test_ufo_parameters icpc: error #10106: Fatal error in /home/opt/intel/oneapi/2022.1/compiler/2022.0.1/linux/bin/intel64/../../bin/intel64/mcpcom, terminated by kill signal
-
Installation of
gdalfails with errorxcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance.If this happens, install the full
Xcodeapplication in addition to the Apple command line utilities, and switchxcode-selectover withsudo xcode-select -s /Applications/Xcode.app/Contents/Developer(change the path if you installed Xcode somewhere else). -
Error
AttributeError: Can't get attribute 'Mark' on <module 'ruamel.yaml.error' from ...when runningspack installSome users are seeing this with Python 3.10 installed via Homebrew on macOS. Run
export | grep SPACK_PYTHONto verify the Python version used, then runbrew listto check if there are alternative Python versions available. Manually settingSPACK_PYTHONto a different version, for example viaexport SPACK_PYTHON=/usr/local/bin/python3.9, solves the problem. -
Errors handling exceptions on macOS.
A large number of errors related to handling exceptions thrown by applications was found when using default builds or Homebrew installations of
mpichoropenmpi, which use flat namespaces. With our spack version,mpichandopenmpiare installed with a+two_level_namespaceoption that fixes the problem. -
Errors such as
Symbol not found: __cg_png_create_info_structThis can happen when trying to use the raster plotting scripts in
fv3-jedi-tools. In that case, exportingDYLD_LIBRARY_PATH=/usr/lib/:$DYLD_LIBRARY_PATHcan help. Ifgitcommands fail after this, you might need to verify wherewhich gitpoints to (Homebrew vs module) and unload thegitmodule.
-
The lmod version in Ubuntu 22.04 LTS breaks spack modules.
Ubuntu 22.04 LTS will install
lmod@6.6from official APT repositories. Module files authored by spack use thedepends_ondirective that was introduced inlmod@7.0. Our site config instructions circumvent the issue by usingtcl/tkenvironment modules. If you attempt to uselmod@6.6you will get the following error:$ module load stack-python Lmod has detected the following error: Unable to load module: python/3.10.8 /home/ubuntu/spack-stack-1.3.1/envs/skylab-4/install/modulefiles/gcc/11.3.0/python/3.10.8.lua : [string "-- -*- lua -*-..."]:16: attempt to call global 'depends_on' (a nil value)