<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>  I told everyone in that thread how it should be fixed. <div class=""><br class=""></div><div class="">The fix for this is to add PetscObjectSetName() to src/sys/f90-mod/petscsys.h90 with the * notation to allow any type. You will see in that file PetscObjectReference() etc.<div class=""><br class=""></div><div class="">   PetsFE is an INTEGER(8)  in Fortran because no one has updated it yet to be a Fortran type. You will see in include/petsc/finclude/petscdm.h that only DM has be properly updated to be a Fortran type, a bunch of others are still treated as integers and need to be fixed eventually.</div><div class=""><br class=""></div><div class=""><div class="">#define DM               type(tDM)</div><div class=""><br class=""></div><div class="">#define DMAdaptor        PetscFortranAddr</div><div class="">#define PetscQuadrature  PetscFortranAddr</div><div class="">#define PetscDS          PetscFortranAddr</div><div class="">#define PetscFE          PetscFortranAddr</div><div class="">#define PetscSpace       PetscFortranAddr</div><div class="">#define PetscDualSpace   PetscFortranAddr</div><div class="">#define PetscFV          PetscFortranAddr</div><div class="">#define PetscLimiter     PetscFortranAddr</div><div class="">#define PetscPartitioner PetscFortranAddr</div><div class="">#define DMField          PetscFortranAddr</div><div class=""><br class=""></div><div class="">   We do not need to configure check this, we need to fix the PETSc source so it follows F90 (yes, F90 standards, Gnu is still catching up :-).</div><div class=""><br class=""></div><div class="">  Barry</div><div class=""><br class=""></div><div class="">  A separate issue is external packages do not follow Fortran standards so generate such errors as well, but that is not our business, we just always force turn off the Fortran error checking for external packages.</div></div><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 13, 2020, at 12:34 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com" class="">knepley@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Why did Mark have the gcc 10 failure on our example. Was it something with did in it?<div class=""><br class=""></div><div class="">   Matt</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 13, 2020 at 12:43 PM Jed Brown <<a href="mailto:jed@jedbrown.org" class="">jed@jedbrown.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You want this for PETSc or for external packages?  We add it for a bunch of external packages.  I've been building PETSc with gcc/gfortran-10 for months now.<br class="">
<br class="">
Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank" class="">knepley@gmail.com</a>> writes:<br class="">
<br class="">
> Do we have gfortran from gcc 10 running anywhere? We need a check to enable<br class="">
><br class="">
>   -fallow-argument-mismatch<br class="">
><br class="">
> from configure. Should be as simple as compiling Fortran which has<br class="">
> PetscObjectSetName() in it.<br class="">
><br class="">
>   Thanks,<br class="">
><br class="">
>       Matt<br class="">
><br class="">
> -- <br class="">
> What most experimenters take for granted before they begin their<br class="">
> experiments is infinitely more interesting than any results to which their<br class="">
> experiments lead.<br class="">
> -- Norbert Wiener<br class="">
><br class="">
> <a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a> <<a href="http://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank" class="">http://www.cse.buffalo.edu/~knepley/</a>><br class="">
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">-- Norbert Wiener</div><div class=""><br class=""></div><div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><br class=""></div></div></div></div></div></div></div>
</div></blockquote></div><br class=""></div></body></html>