<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div>I still get this warning, I found that "make -q" command won't get any respond.</div><div><br></div><div>Here is the whole output:</div><div><br></div><div><div>❯ cd $PETSC_DIR</div><div>make -q -f gmakefile libs</div><div>echo $?</div><div>cd ~/git/p4pdes/c/ch1</div><div>make -q e</div><div>echo $?</div><div>petscmpiexec -n 1 ./e</div><div>make clean</div><div>make e</div><div>make -q e</div><div>echo $?</div><div>petscmpiexec -n 1 ./e</div><div>1</div><div>1</div><div>Warning: ************** The PETSc libraries are out of date</div><div>Warning: ************** The executable ./e is out of date</div><div>e is about 1.000000000000000</div><div>rank 0 did 0 flops</div><div>mpicc -o e.o -c -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch -Wno-stringop-overflow -fstack-protector -fvisibility=hidden -g3 -O0 -pedantic -std=c99 -I/home/syvshclily/git/petsc/petsc-latest/include -I/home/syvshclily/git/petsc/petsc-latest/arch-linux-c-debug/include    `pwd`/e.c</div><div>mpicc -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch -Wno-stringop-overflow -fstack-protector -fvisibility=hidden -g3 -O0 -pedantic -std=c99 -o e e.o  -Wl,-rpath,/home/syvshclily/git/petsc/petsc-latest/arch-linux-c-debug/lib -L/home/syvshclily/git/petsc/petsc-latest/arch-linux-c-debug/lib -Wl,-rpath,/home/syvshclily/git/petsc/petsc-latest/arch-linux-c-debug/lib -L/home/syvshclily/git/petsc/petsc-latest/arch-linux-c-debug/lib -Wl,-rpath,/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0 -lpetsc -lsuperlu_dist -llapack -lblas -lm -lX11 -lstdc++ -ldl -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath -lstdc++ -ldl</div><div>/usr/sbin/rm -f e.o</div><div>1</div><div>Warning: ************** The PETSc libraries are out of date</div><div>Warning: ************** The executable ./e is out of date</div><div>e is about 1.000000000000000</div><div>rank 0 did 0 flops</div></div><div><br></div><div>Thanks for your reply. </div><div><br></div><div>Syvshc</div><div style="position: relative;"><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From:</b>                                                                                                                        "petsc-users"                                                                                    <balay@mcs.anl.gov>;</div><div><b>Date:</b> Fri, Dec 16, 2022 01:40 AM</div><div><b>To:</b> "Syvshc"<syvshc@foxmail.com>;<wbr></div><div><b>Cc:</b> "petsc-users"<petsc-users@mcs.anl.gov>;<wbr></div><div><b>Subject:</b> Re: [petsc-users] out of date warning when petscmpiexec.</div></div><div><br></div>That's strange. Do you still get this warning from petscmpiexec?<br><br>Can you run these commands - and copy/paste the *complete* session from your terminal [for these commands and their output on terminal] ?<br><br>>>>>>><br>cd $PETSC_DIR<br>make -q -f gmakefile libs<br>echo $?<br>cd bueler/p4pdes<br>make -q e<br>echo $?<br>petscmpiexec -n 1 ./e<br>make clean<br>make e<br>make -q e<br>echo $?<br>petscmpiexec -n 1 ./e<br><<<<<br><br>Alternatively you can just use mpiexec [ i.e not use petscmpiexec - its just a convenience wrapper over using correct mpiexec/valgrind].<br><br>Satish<br><br>On Fri, 16 Dec 2022, Syvshc wrote:<br><br>> I run this command in the root dir of my petsc, and didn't get any response.<br>> <br>> <br>> <br>> <br>> ------------------&nbsp;Original&nbsp;------------------<br>> From:                                                                                                                        "petsc-users"                                                                                    <balay@mcs.anl.gov&gt;;<br>> Date:&nbsp;Thu, Dec 15, 2022 10:19 PM<br>> To:&nbsp;"Syvshc"<syvshc@foxmail.com&gt;;<br>> Cc:&nbsp;"petsc-users"<petsc-users@mcs.anl.gov&gt;;<br>> Subject:&nbsp;Re: [petsc-users] out of date warning when petscmpiexec.<br>> <br>> <br>> <br>> What do you get - if you invoke the following command in petsc source dir?<br>> <br>> make -q -f gmakefile libs<br>> <br>> [this is the test petscmpiexec is using to check if "libraries are out of date"]<br>> <br>> Satish<br>> <br>> On Thu, 15 Dec 2022, Syvshc wrote:<br>> <br>> &gt; I'm a beginner with petsc, and I'm reading&amp;nbsp;PETSc for Partial Differential Equations.&amp;nbsp;<br>> &gt; <br>> &gt; There is the newest release version (3.18.2) of PETSc's gitlab repo on my device, and openmpi in my system (/usr/sbin/).&amp;nbsp;<br>> &gt; <br>> &gt; <br>> &gt; Here is the repo and what I tried to compiling.&amp;nbsp;p4pdes/e.c at master · bueler/p4pdes (github.com)<br>> &gt; <br>> &gt; <br>> &gt; After "make e", I got an excutable file "e". "./e" or "mpiexec -n 4 ./e" can perfectly run.&amp;nbsp;<br>> &gt; <br>> &gt; <br>> &gt; However when I use "petscmpiexec -n 4 ./e", I got some warnings:<br>> &gt; <br>> &gt; <br>> &gt; Warning: ************** The PETSc libraries are out of date<br>> &gt; Warning: ************** The executable ./e is out of date<br>> &gt; <br>> &gt; <br>> &gt; What should I do to fix the warning?<br>> &gt; <br>> &gt; <br>> &gt; Also this is the first time that I send to a mail-list, if there are some mistakes I made, please tell me.&amp;nbsp;<br>> &gt; <br>> &gt; <br>> &gt; Kind regards,<br>> &gt; <br>> &gt; <br>> &gt; Syvshc<br><br></div>