Fix Kaiju PETSc build: add --with-shared-libraries=1#210
Open
jcgraciosa wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--with-shared-libraries=1to the Kaiju PETSc configure section inbuild-petsc.shProblem
Kaiju downloads and builds HDF5 from source via PETSc (
--download-hdf5=1). Without--with-shared-libraries=1, PETSc only produced a staticlibhdf5.a.This caused h5py installation to fail with:
error: libhdf5.so: cannot open shared object file: No such file or directory
Gadi was unaffected because it uses an external HDF5 from the NCI module system, which
already provides shared libraries.
Test
Verified on Kaiju fresh install — h5py builds successfully and runs underworld3.