Opened 12 months ago
Last modified 12 months ago
#68738 assigned defect
can't compile hdf5 with openmpi, clang15 and gfortran
Reported by: | ufdup89 (ufdup89) | Owned by: | eborisch (Eric A. Borisch) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | Dave-Allured (Dave Allured) | |
Port: | hdf5 |
Description
Since a few weeks the +gfortran variant defaults to gcc13 instead of gcc12. In my case, I have openmpi-clang15 with gcc12 (for Fortran), and when I attempt to build hdf5 with +clang15+cxx+fortran+gfortran+hl+openmpi it complains because +openmpi and +gfortran are using different gcc compiiler, gcc12 versus gcc13.
Is there a way to choose with version gfortran is linked to? I could not find a way after looking into the compilers Portgroup. Seems like gcc13 is hardcoded.
Change History (4)
comment:1 Changed 12 months ago by jmroot (Joshua Root)
Owner: | set to eborisch |
---|---|
Status: | new → assigned |
comment:2 Changed 12 months ago by Dave-Allured (Dave Allured)
Cc: | Dave-Allured added |
---|
comment:3 Changed 12 months ago by Dave-Allured (Dave Allured)
comment:4 Changed 12 months ago by ufdup89 (ufdup89)
Just try sudo port install hdf5 +clang15+cxx+fortran+gfortran+hl+openmpi
, after installing openmpi-clang15 +gcc12
.
There does not seem to have a way to choose the fortran compiler. Options +fortran+gfortran defaults to gcc13, and if openmpi is installed using some other compiler for fortran, one gets a conflict. I am not sure whether this is an issue with this port or something more general.
Please attach a complete build log.