Repository navigation
Open
Labels
Description
Steps to reproduce the issue
$> spack -e . spec -I /ucddsiapbqjrpa3z
- libpressio@0.99.4~arc+bitgrooming~blosc~blosc2~boost+bzip2~clang+core~cuda~cusz~digitrounding~docs+fpzip~ftk+hdf5~ipo~json+libdistributed+lua~magick~matio~mgard~mgardx+mpi~ndzip~netcdf+openmp~openssl~petsc~pybind+python~qoz~remote+sz+sz3~szauto~szx+unix+zfp build_system=cmake build_type=Release generator=make platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^bitgroomingz@2022-10-14~ipo+shared build_system=cmake build_type=Release commit=a018b20cca9f7d6a5396ab36230e4be6ae1cb25b generator=make platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^zlib-ng@2.3.3+compat+new_strategies+opt+pic+shared build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^bzip2@1.0.8~debug~pic+shared build_system=generic platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^diffutils@3.12 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^libiconv@1.18 build_system=autotools libs:=shared,static platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^cmake@3.31.11~doc+ncurses+ownlibs~qtgui build_system=generic build_type=Release platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^curl@8.20.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs:=shared,static tls:=openssl platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^nghttp2@1.67.1 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^openssl@3.6.1~docs+shared build_system=generic certs=mozilla platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^ca-certificates-mozilla@2026-03-19 build_system=generic platform=linux os=rhel9 target=x86_64_v3
[+] ^ncurses@6.6~symlinks+termlib abi=none build_system=autotools patches:=7a351bc platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^compiler-wrapper@1.1.0 build_system=generic platform=linux os=rhel9 target=x86_64_v3
[+] ^fpzip@1.3.0~ipo build_system=cmake build_type=Release generator=make platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[e] ^gcc@11.4.0+binutils+bootstrap~graphite+libsanitizer~nvptx~piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' platform=linux os=rhel9 target=x86_64_v3
[+] ^gcc-runtime@11.4.0 build_system=generic platform=linux os=rhel9 target=x86_64_v3
[e] ^glibc@2.34 build_system=autotools platform=linux os=rhel9 target=x86_64_v3
[+] ^gmake@4.4.1~guile build_system=generic platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^hdf5@1.14.6~cxx+fortran+hl~ipo~java~map+mpi+shared~subfiling~szip~threadsafe+tools api=default build_system=cmake build_type=Release generator=make platform=linux os=rhel9 target=x86_64_v3 %c,fortran=gcc@11.4.0
[+] ^libdistributed@0.4.3~ipo build_system=cmake build_type=Release generator=make platform=linux os=rhel9 target=x86_64_v3 %cxx=gcc@11.4.0
[+] ^libstdcompat@0.0.21~boost+cpp_unstable~ipo build_system=cmake build_type=Release cpp_compat=auto generator=make platform=linux os=rhel9 target=x86_64_v3 %cxx=gcc@11.4.0
[+] ^lua-sol2@3.3.0~ipo build_system=cmake build_type=Release commit=eba86625b707e3c8c99bbfc4624e51f42dc9e561 generator=make platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^lua@5.3.6+shared build_system=makefile fetcher=curl platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^readline@8.3 build_system=autotools patches:=21f0a03,72dee13,e273643 platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^unzip@6.0 build_system=makefile patches:=179330d,24582ff,251d575,3371314,44599c8,47e9def,4e5a081,59c0983,64f6498,74bc961,7d8e5c7,81ca46c,881d2ed,aced0f2,b6f64d7,b7a14c3,c9a863e,ee9e260,f6f6236,f88b9d4,fde8f9d platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[e] ^mvapich@5.0~alloca~debug~errs+fast+regcache+wrapperrpath build_system=autotools file_systems:=auto netmod=ofi process_managers:=auto threads=multiple platform=linux os=rhel9 target=x86_64_v3
[+] ^pkgconf@2.5.1 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^py-mpi4py@4.1.1 build_system=python_pip platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^py-cython@3.2.4 build_system=python_pip platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^py-pip@26.1.2 build_system=generic platform=linux os=rhel9 target=x86_64_v3
[+] ^py-setuptools@82.0.1 build_system=generic platform=linux os=rhel9 target=x86_64_v3
[+] ^py-wheel@0.45.1 build_system=generic platform=linux os=rhel9 target=x86_64_v3
[+] ^py-numcodecs@0.16.5~crc32c~msgpack build_system=python_pip platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^py-py-cpuinfo@9.0.0 build_system=python_pip platform=linux os=rhel9 target=x86_64_v3
[+] ^py-setuptools-scm@9.2.2+toml build_system=python_pip platform=linux os=rhel9 target=x86_64_v3
[+] ^git@2.53.0+man+nls+perl+subtree~tcltk build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^expat@2.8.1+libbsd build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^libbsd@0.12.2 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^libmd@1.1.0 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^gettext@1.0+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^libxml2@2.15.3+pic~python+shared build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^tar@1.35 build_system=autotools zip=pigz platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^pigz@2.8 build_system=makefile platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^libidn2@2.3.8 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^libunistring@1.4.2 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^openssh@10.3p1+gssapi build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^krb5@1.22.2+shared build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^libedit@3.1-20251016 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^libxcrypt@4.5.2~obsolete_api build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^py-packaging@26.2 build_system=python_pip platform=linux os=rhel9 target=x86_64_v3
[+] ^py-typing-extensions@4.15.0 build_system=python_pip platform=linux os=rhel9 target=x86_64_v3
[+] ^py-flit-core@3.12.0 build_system=python_pip platform=linux os=rhel9 target=x86_64_v3
[+] ^py-numpy@2.4.6 build_system=python_pip patches:=873745d platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^openblas@0.3.33~bignuma~consistent_fpcsr+dynamic_dispatch+fortran~ilp64+locking+pic+shared~static build_system=makefile max_num_threads=512 patches:=723ddc1 symbol_suffix=none threads=openmp platform=linux os=rhel9 target=x86_64_v3 %c,cxx,fortran=gcc@11.4.0
[+] ^py-meson-python@0.19.0 build_system=python_pip platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^meson@1.11.1 build_system=python_pip patches:=0f0b1bd platform=linux os=rhel9 target=x86_64_v3
[+] ^ninja@1.13.2+re2c build_system=generic platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^re2c@4.4 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^py-pyproject-metadata@0.11.0 build_system=python_pip platform=linux os=rhel9 target=x86_64_v3
[e] ^python@3.12.13+bz2+crypt+ctypes+dbm~debug+libxml2+lzma+optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~static~tests~tix+tkinter+uuid+zlib build_system=generic platform=linux os=rhel9 target=x86_64_v3
[+] ^python-venv@1.0 build_system=generic platform=linux os=rhel9 target=x86_64_v3
[+] ^swig@4.1.1-fortran build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^autoconf@2.72 build_system=autotools platform=linux os=rhel9 target=x86_64_v3
[+] ^m4@1.4.21+sigsegv build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^libsigsegv@2.15 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^perl@5.42.0+cpanm+opcode+open+shared+threads build_system=generic platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^berkeley-db@18.1.40+cxx~docs+stl build_system=autotools patches:=26090f4,b231fcc platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^gdbm@1.26 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^less@692 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^automake@1.18.1 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^bison@3.8.2~color build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^libtool@2.5.4 build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^file@5.46+static build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^xz@5.8.3~pic build_system=autotools libs:=shared,static platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^findutils@4.10.0 build_system=autotools patches:=440b954 platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^pcre2@10.44~jit+multibyte+pic build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^sz@2.1.12.5~examples~fortran~hdf5~ipo~netcdf~openmp~pastri~python~random_access+shared~stats~time_compression build_system=cmake build_type=Release generator=make platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^zstd@1.5.7+programs build_system=makefile compression:=none libs:=shared,static platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^sz3@3.2.0~hdf5~ipo+mdz build_system=cmake build_type=Release commit=b3dab4018425803a55d8073dc55dade7fa46b7b4 generator=make platform=linux os=rhel9 target=x86_64_v3 %c,cxx=gcc@11.4.0
[+] ^gsl@2.8~external-cblas+pic+shared build_system=autotools platform=linux os=rhel9 target=x86_64_v3 %c=gcc@11.4.0
[+] ^zfp@1.0.1~aligned~c~cuda~daz~fasthash~fortran~ipo~openmp~profile~python+shared~strided~tight-error~twoway+utilities bsws=64 build_system=cmake build_type=Release generator=make round=never platform=linux os=rhel9 target=x86_64_v3 %c,cxx,fortran=gcc@11.4.0
...Error message
Error message
CMake Error at /storage/packages/e4s/26.06/mvapich-5.0.1-zfp-cuda13.2/spack/opt/spack/linux-x86_64_v3/cmake-3.31.11-gbpti3qvtl3ex6cqumyvya6keeqwxxr3/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message): Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) Call Stack (most recent call first): /storage/packages/e4s/26.06/mvapich-5.0.1-zfp-cuda13.2/spack/opt/spack/linux-x86_64_v3/cmake-3.31.11-gbpti3qvtl3ex6cqumyvya6keeqwxxr3/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE) /storage/packages/e4s/26.06/mvapich-5.0.1-zfp-cuda13.2/spack/opt/spack/linux-x86_64_v3/cmake-3.31.11-gbpti3qvtl3ex6cqumyvya6keeqwxxr3/share/cmake-3.31/Modules/FindMPI.cmake:1842 (find_package_handle_standard_args) /storage/packages/e4s/26.06/mvapich-5.0.1-zfp-cuda13.2/spack/opt/spack/linux-x86_64_v3/hdf5-1.14.6-at57e5yeo76w3kp5dmofipbpxfdbyf7p/cmake/hdf5-config.cmake:116 (find_package) /storage/packages/e4s/26.06/mvapich-5.0.1-zfp-cuda13.2/spack/opt/spack/linux-x86_64_v3/cmake-3.31.11-gbpti3qvtl3ex6cqumyvya6keeqwxxr3/share/cmake-3.31/Modules/FindHDF5.cmake:513 (find_package) CMakeLists.txt:566 (find_package) ...
Error in finding MPI through HDF5 CMake.
Information on your system
* **Spack:** 1.3.0.dev0 (https://github.com/spack/spack/commit/77e7304f8406feca348d6b624e44c081fc1da550)
* **Builtin repo:** https://github.com/spack/spack-packages/commit/693ecb1378e0bd6edad9ea4c15dab6fc65f3f563
* **Python:** 3.12.13
* **Platform:** linux-rhel9-zen5
Additional information
General information
- I have run
spack debug reportand reported the version of Spack/Python/Platform - I have run
spack maintainers <name-of-the-package>and @mentioned any maintainers - I have uploaded the build log and environment files
- I have searched the issues of this repo and believe this is not a duplicate
Activity
Shih28 commentedon Sep 30, 2026
Not a libpressio bug. FindMPI finds
mpicc, but its test program fails to link: the MVAPICH-Pluslibmpi.so(…/5.0.1/cuda13.3/ofi/…) needs libraries (CUDA, libfabric, gdrcopy) that are only found throughLD_LIBRARY_PATH, and Spack unsetsLD_LIBRARY_PATHin the build environment. hdf5, py-mpi4py and libdistributed were already installed, so libpressio is the first package configured against the current MPI.To confirm:
Fix: add those directories to the external and re-concretize with
--fresh:Without
--fresh, the already-installed external keeps its old attributes and the setting is silently ignored; spack/spack#53146 fixes that.Reproduced with spack 77e7304f, gcc@11.4.0, x86_64_v3 and an external mvapich@4.1 (ch4:ofi, CUDA) whose
libmpi.soneeds a library found only onLD_LIBRARY_PATH: libpressio fails with the same error athdf5-config.cmake:116, and builds with theenvironmentabove.solver: don't reuse externals whose extra_attributes changed