Skip to content

Installation issue: hdf-eos2 #2728

@danrosen25

Description

@danrosen25

Steps to reproduce the issue

Download hdf-eos2-3.0-src.tar.gz from https://wiki.earthdata.nasa.gov/spaces/DAS/pages/202211788/Toolkit+Downloads#ToolkitDownloads-HDFEOSHDF-EOS

This can also be done via cloning the git repo containing this tarball
git clone -b HDFEOS2_3.0 https://git.earthdata.nasa.gov/scm/das/hdfeos.git
or using wget
wget "https://git.earthdata.nasa.gov/projects/DAS/repos/hdfeos/raw/hdf-eos2-3.0-src.tar.gz?at=refs%2Fheads%2FHDFEOS2_3.0 and then renaming the file

spack install hdf-eos2
 -   hdf-eos2@3.0+shared+static build_system=autotools patches:=5878c11 platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]      ^compiler-wrapper@1.0 build_system=generic platform=linux os=ubuntu25.04 target=m1 
[e]      ^gcc@14.2.0~binutils+bootstrap~graphite~mold~nvptx~piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' platform=linux os=ubuntu25.04 target=aarch64 
[+]      ^gcc-runtime@14.2.0 build_system=generic platform=linux os=ubuntu25.04 target=m1 
[e]      ^glibc@2.41 build_system=autotools platform=linux os=ubuntu25.04 target=aarch64 
[+]      ^gmake@4.4.1~guile build_system=generic platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]      ^gnuconfig@2024-07-27 build_system=generic platform=linux os=ubuntu25.04 target=m1 
[+]      ^hdf@4.2.15+external-xdr~fortran~java~netcdf+pic~shared~szip build_system=autotools patches:=49733dd,5434f29,ce75518,d54592d,f7d67e8 platform=linux os=ubuntu25.04 target=m1 %c,cxx,fortran=gcc@14.2.0
[+]          ^bison@3.8.2~color build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]              ^diffutils@3.12 build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]                  ^libiconv@1.18 build_system=autotools libs:=shared,static platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]              ^m4@1.4.20+sigsegv build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]                  ^libsigsegv@2.14 build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]          ^flex@2.6.3+lex~nls build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]              ^findutils@4.10.0 build_system=autotools patches:=440b954 platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]                  ^gettext@0.23.1+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]                      ^bzip2@1.0.8~debug~pic+shared build_system=generic platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]                      ^libxml2@2.13.5~http+pic~python+shared build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]                      ^tar@1.35 build_system=autotools zip=pigz platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]                          ^pigz@2.8 build_system=makefile platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]                          ^zstd@1.5.7+programs build_system=makefile compression:=none libs:=shared,static platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]                      ^xz@5.6.3~pic build_system=autotools libs:=shared,static platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]          ^libtirpc@1.3.7 build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]              ^krb5@1.21.3+shared build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]                  ^libedit@3.1-20240808 build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]                  ^openssl@3.6.0~docs+shared build_system=generic certs=mozilla platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]                      ^ca-certificates-mozilla@2025-08-12 build_system=generic platform=linux os=ubuntu25.04 target=m1 
[+]                  ^perl@5.42.0+cpanm+opcode+open+shared+threads build_system=generic platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]                      ^berkeley-db@18.1.40+cxx~docs+stl build_system=autotools patches:=26090f4,b231fcc platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]                      ^gdbm@1.25 build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]                          ^readline@8.3 build_system=autotools patches:=21f0a03 platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]                  ^pkgconf@2.5.1 build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]      ^libjpeg-turbo@3.0.4~ipo~jpeg8~partial_decoder+pic build_system=cmake build_type=Release generator=make libs:=shared,static platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]          ^cmake@3.31.9~doc+ncurses+ownlibs~qtgui build_system=generic build_type=Release platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]              ^curl@8.15.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs:=shared,static tls:=openssl platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]                  ^nghttp2@1.67.1 build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]              ^ncurses@6.5-20250705~symlinks+termlib abi=none build_system=autotools patches:=7a351bc platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0
[+]          ^nasm@2.16.03 build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c=gcc@14.2.0
[+]      ^zlib-ng@2.2.4+compat+new_strategies+opt+pic+shared build_system=autotools platform=linux os=ubuntu25.04 target=m1 %c,cxx=gcc@14.2.0

Error message

Error message
==> Error: ProcessError: Command exited with status 1:
    '/tmp/root/spack-stage/spack-stage-hdf-eos2-3.0-wzdzrw5xzzrah3hv6sl2n4je3xszrrmi/spack-src/configure' '--prefix=/spack/opt/spack/linux-m1/hdf-eos2-3.0-wzdzrw5xzzrah3hv6sl2n4je3xszrrmi' '--with-pic' '--enable-install_include' '--enable-shared' '--enable-static' '--with-hdf4=/spack/opt/spack/linux-m1/hdf-4.2.15-fmplvrhx45byqot264zeh7cr6jpi5yot' '--with-jpeg=/spack/opt/spack/linux-m1/libjpeg-turbo-3.0.4-raidl2r74jsa2o42vqg2n5goa7xewwto/lib'

1 error found in build log:
     132    checking hdf.h usability... yes
     133    checking hdf.h presence... yes
     134    checking for hdf.h... yes
     135    checking mfhdf.h usability... yes
     136    checking mfhdf.h presence... yes
     137    checking for mfhdf.h... yes
  >> 138    configure: error: HDF4 library 'mfhdf' not found

Information on your system

I'm building from within a Docker image container ubuntu:plucky on MacOS Sonoma 14.7 with Apple M2 Pro

docker run --rm -it ubuntu:plucky
apt-get update && apt-get install -y file bzip2 ca-certificates g++ gcc gfortran git gzip lsb-release patch python3 tar unzip xz-utils zstd
git clone --depth=2 https://github.com/spack/spack.git
cd spack
. share/spack/setup-env.sh
git clone -b HDFEOS2_3.0 https://git.earthdata.nasa.gov/scm/das/hdfeos.git
mv hdfeos/hdf-eos2-3.0-src.tar.gz .
spack install hdf-eos2

Additional information

spack-build-env.txt
spack-build-out.txt

@climbfuji
Have you had success installing hdf-eos2@3.0 using spack with gcc@14.2.0? Is there a separate system issue that I'm missing?

General information

  • I have run spack debug report and 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions