[petsc-users] Make error --download-hdf5-fortran-bindings=1

Barry Smith bsmith at petsc.dev
Thu Sep 8 21:05:42 CDT 2022



> On Sep 8, 2022, at 8:38 PM, Park, Heeho via petsc-users <petsc-users at mcs.anl.gov> wrote:
> 
> Hi PETSc Developers,
>  
> I am having trouble compiling with the --download-hdf5-fortran-bindings=yes option on Sandia’s HPC system.
> It compiles with make version 3.82, but fails to compile with make version 4.2.1 in the environment.
> The issues I’m having redirecting to make version 3.82 while having the more recent versions of gnu compilers like gnu/10.2.1


ptest.f90:20:7: Fatal Error: Cannot read module file ‘/opt/openmpi/4.1/gnu/lib/mpi.mod’ opened at (1), because it was created by a different version of GNU Fortran
compilation terminated.

The MPI (Fortran side) cannot be used with the GFortran version you are trying to use. You need to have an MPI install compatible with the GNU Fortran version you want to use. 

I suggest showing this error to your sys-admins and asking for help in determining what MPI and Fortran compilers to use to get what you need.

> Is there a way around this? By the way, adding --download-make=1 did not help
> Attached is the configure log. Thank you for your help.
>  
> heepark at boca1:/projects/ADSM/software/petsc-v3.17.2$ make -v
> GNU Make 4.2.1
> Built for x86_64-redhat-linux-gnu
> Copyright (C) 1988-2016 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html <http://gnu.org/licenses/gpl.html>>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>  
> heepark at boca1:/projects/ADSM/software/petsc-v3.17.2$ ./run_configure_gnu_O.sh
> =============================================================================================
>                          Configuring PETSc to compile on your system                         
> =============================================================================================
> =============================================================================================
>             Running configure on HDF5; this may take several minutes                                     
> =============================================================================================      
> =============================================================================================            
> Running make on HDF5; this may take several minutes                                          
> =============================================================================================                            
> *******************************************************************************
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
> -------------------------------------------------------------------------------
> Error running make; make install on HDF5
>  
>  
> Best,
>  
> Heeho D. Park, Ph.D.
>    Computational Scientist & Engineer
>     Center for Energy & Earth Systems
>     Applied Systems Analysis and Research Dept.
>    Sandia National Laboratories 
>    Email: heepark at sandia.gov <mailto:heepark at sandia.gov>
>    Web: Homepage <https://www.linkedin.com/in/heeho-daniel-park-1a628517/>
>  
> <configure.log>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220908/68e03dce/attachment.html>


More information about the petsc-users mailing list