<div dir="ltr"><div dir="ltr">On Fri, Apr 24, 2020 at 4:34 AM Aldo Bonfiglioli <<a href="mailto:aldo.bonfiglioli@unibas.it" target="_blank">aldo.bonfiglioli@unibas.it</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi there,<br>
<br>
the makefile I have been using for ages (up to 11.4) now fails with 12.5.<br></blockquote><div><br></div><div>Yep, it is not that easy to reconstruct. I believe that the Fortran build rule used to be generated by configure. We</div><div>stopped doing that, and added a generic rule in, but since we have no Fortran code in PETSc, it did not get</div><div>properly tested.</div><div><br></div><div>I think the fix is that this rule, like the rules for C and CXX, should use PETSC_FCOMPILE_SINGLE. However,</div><div>that does not exist. Can you try the branch below?</div><div><br></div><div> <a href="https://gitlab.com/petsc/petsc/-/commits/knepley/fix-fortran-rule">https://gitlab.com/petsc/petsc/-/commits/knepley/fix-fortran-rule</a></div><div><br></div><div> git checkout knepley/fix-fortran-rule</div><div><br></div><div>If it works for you, I will put in an MR for it.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I noticed that there have been several changes in<br>
<br>
include $(PETSC_DIR)/lib/petsc/conf/variables<br>
include $(PETSC_DIR)/lib/petsc/conf/rules<br>
<br>
btw. the two aforementioned versions.<br>
<br>
If I'm not wrong, *.F files should now be compiled with:<br>
<br>
><br>
> .F.o .F90.o .F95.o:<br>
> ${PETSC_FCOMPILE} -o $@ $<<br>
However, in ${PETSC_FCOMPILE} there are also my ${SOURCEF} fortran sources,<br>
<br>
so that I get the following compilation error:<br>
<br>
> gfortran -c -fPIC -Wall -ffree-line-length-0 <br>
> -Wno-unused-dummy-argument -g -I../../include/ -I. <br>
> -I/home/abonfi/src/petsc-3.12.5/include <br>
> -I/home/abonfi/src/petsc-3.12.5/linux_gnu/include getidx.f <br>
> ApplicationFunction.F ApplicationFunction_t.F bndry_iset.F <br>
> JacobianBoundaryConditions.F RHSFunction.F RHSFunction_t.F <br>
> RHSJacobian.F RHSJacobian_t.F blockdata.f bndvflx.F clearmem.F <br>
> lhsbc5.F lhsbc6.F exgeo.F newgeo.F ghost.F ghost2.F init.F iset.F <br>
> iset_t.F main.F matsch.F MotionSolver.F myTS.F nodres.F nodres_t.F <br>
> noname.f printmat2.F printmat.F printmatmm.F qb.F rdat.F readat.F <br>
> rgrdpts.F rhsbc1.F rhsbc4.F rhsbc5.F rhsbc5c.F sclsch.F <br>
> setbc4laplace.F setibc.F seterr.F setupRHS.F setupRHS_t.F setupLHS_b.F <br>
> solzne.F MatAllocaSeq.F test.F tmodel.F turbini.F turbsch.F update2.F <br>
> update3.F update4.F weakbc.F -o ApplicationFunction_t.o <br>
> ApplicationFunction_t.F<br>
> gfortran: fatal error: cannot specify ‘-o’ with ‘-c’, ‘-S’ or ‘-E’ <br>
> with multiple files<br>
> compilation terminated.<br>
<br>
If I remove ${SOURCEF} from the ${PETSC_FCOMPILE} definition in<br>
<br>
$(PETSC_DIR)/lib/petsc/conf/variables<br>
<br>
things work, but I am not sure that this is the right thing to do.<br>
<br>
Thanks,<br>
<br>
Aldo<br>
<br>
PS My makefile is attached<br>
<br>
-- <br>
Dr. Aldo Bonfiglioli<br>
Associate professor of Fluid Machines<br>
Scuola di Ingegneria<br>
Universita' della Basilicata<br>
V.le dell'Ateneo lucano, 10 85100 Potenza ITALY<br>
tel:+39.0971.205203 fax:+39.0971.205215<br>
web: <a href="http://docenti.unibas.it/site/home/docente.html?m=002423" rel="noreferrer" target="_blank">http://docenti.unibas.it/site/home/docente.html?m=002423</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>