Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netcdf-c 4.9.2 on spack not building #2902

Open
JWGits opened this issue Apr 3, 2024 · 1 comment
Open

netcdf-c 4.9.2 on spack not building #2902

JWGits opened this issue Apr 3, 2024 · 1 comment

Comments

@JWGits
Copy link

JWGits commented Apr 3, 2024

I'm running this Spack install on the command line:

spack install esmf esmf_comm=openmpi esmf_os=Linux ^netcdf-fortran~shared ^netcdf-c~shared ^hdf5~shared ^openblas ^parallel-netcdf ^openmpi ^parallelio

The solve gives [email protected] but it won't build. It gets stuck at line 444 in configure_args:

/scratch/jw2636/spack/var/spack/repos/builtin/packages/netcdf-c/package.py:444, in configure_args:
        441        if "~shared" in hdf5:
        442            if "+szip" in hdf5:
        443                extra_libs.append(hdf5["szip"].libs)
>>      444            extra_libs.append(hdf5["zlib"].libs)
        445
        446        if self.spec.satisfies("@4.9.0:+shared"):
        447            lib_search_dirs.extend(self.spec["zlib-api"].libs.directories)

I've currently set netcdf-c to 4.9.0 and I'm retrying the ESMF build.

Update:

I was not able to find any combination of Spack's available netcdf-c and hdf5 versions that worked when both used ~shared. However I was able to fully compile netcdf-c when I removed ~shared from hdf5. This skips over line 441's if "~shared" in hdf5: logic, thus not failing when trying to append hdf5["zlib"].lib. Digging deeper it seems like the ~shared assignment is in flux. I'm very new to Spack (this week) so this is probably a closeable issue. Thanks!

@edwardhartnett
Copy link
Contributor

No member of the netCDF team actually maintains the spack package file. I would love to be more involved in it, but that's not happened yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants