<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div>I got lots of build information, </div><div>and after "make -f gmakefile libs", the out of date warning of petscmpiexec was gone. </div><div><br></div><div><div>❯ petscmpiexec -n 1 ./e</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>BTW, if I want to know something of the "executable out of date" question, </div><div>should I send a new mail or I can just ask under these mails?</div><div><br></div><div>Thanks for your help sincerely.</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;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b>                                                                                                                        "petsc-users"                                                                                    <balay@mcs.anl.gov>;</div><div><b>发送时间:</b> 2022年12月16日(星期五) 凌晨2:11</div><div><b>收件人:</b> "Syvshc"<syvshc@foxmail.com>;<wbr></div><div><b>抄送:</b> "petsc-users"<petsc-users@mcs.anl.gov>;<wbr></div><div><b>主题:</b> Re: [petsc-users] out of date warning when petscmpiexec.</div></div><div><br></div>> make -q -f gmakefile libs<br>> echo $?<br>> 1<br><br>So "make" does think the library is out-of-date. If up-to-date - you should see a '0' - not '1'. One more try:<br><br>what do you get for:<br><br>cd $PETSC_DIR<br>make -f gmakefile libs  # i.e without -q<br><br>Satish<br><br>On Fri, 16 Dec 2022, Syvshc wrote:<br><br>> I still get this warning, I found that "make -q" command won't get any respond.<br>> <br>> <br>> Here is the whole output:<br>> <br>> <br>> ?7?9 cd $PETSC_DIR<br>> make -q -f gmakefile libs<br>> echo $?<br>> cd ~/git/p4pdes/c/ch1<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>> 1<br>> 1<br>> Warning: ************** The PETSc libraries are out of date<br>> Warning: ************** The executable ./e is out of date<br>> e is about 1.000000000000000<br>> rank 0 did 0 flops<br>> 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&nbsp; &nbsp; `pwd`/e.c<br>> 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&nbsp; -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<br>> /usr/sbin/rm -f e.o<br>> 1<br>> Warning: ************** The PETSc libraries are out of date<br>> Warning: ************** The executable ./e is out of date<br>> e is about 1.000000000000000<br>> rank 0 did 0 flops<br>> <br>> <br>> <br>> Thanks for your reply.&nbsp;<br>> <br>> <br>> Syvshc<br>> <br>> <br>> <br>> <br>> ------------------&nbsp;Original&nbsp;------------------<br>> From:                                                                                                                        "petsc-users"                                                                                    <balay@mcs.anl.gov&gt;;<br>> Date:&nbsp;Fri, Dec 16, 2022 01:40 AM<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>> 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>> &gt;&gt;&gt;&gt;&gt;&gt;<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>> &gt; I run this command in the root dir of my petsc, and didn't get any response.<br>> &gt; <br>> &gt; <br>> &gt; <br>> &gt; <br>> &gt; ------------------&amp;nbsp;Original&amp;nbsp;------------------<br>> &gt; From:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "petsc-users"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <balay@mcs.anl.gov&amp;gt;;<br>> &gt; Date:&amp;nbsp;Thu, Dec 15, 2022 10:19 PM<br>> &gt; To:&amp;nbsp;"Syvshc"<syvshc@foxmail.com&amp;gt;;<br>> &gt; Cc:&amp;nbsp;"petsc-users"<petsc-users@mcs.anl.gov&amp;gt;;<br>> &gt; Subject:&amp;nbsp;Re: [petsc-users] out of date warning when petscmpiexec.<br>> &gt; <br>> &gt; <br>> &gt; <br>> &gt; What do you get - if you invoke the following command in petsc source dir?<br>> &gt; <br>> &gt; make -q -f gmakefile libs<br>> &gt; <br>> &gt; [this is the test petscmpiexec is using to check if "libraries are out of date"]<br>> &gt; <br>> &gt; Satish<br>> &gt; <br>> &gt; On Thu, 15 Dec 2022, Syvshc wrote:<br>> &gt; <br>> &gt; &amp;gt; I'm a beginner with petsc, and I'm reading&amp;amp;nbsp;PETSc for Partial Differential Equations.&amp;amp;nbsp;<br>> &gt; &amp;gt; <br>> &gt; &amp;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;amp;nbsp;<br>> &gt; &amp;gt; <br>> &gt; &amp;gt; <br>> &gt; &amp;gt; Here is the repo and what I tried to compiling.&amp;amp;nbsp;p4pdes/e.c at master ?? bueler/p4pdes (github.com)<br>> &gt; &amp;gt; <br>> &gt; &amp;gt; <br>> &gt; &amp;gt; After "make e", I got an excutable file "e". "./e" or "mpiexec -n 4 ./e" can perfectly run.&amp;amp;nbsp;<br>> &gt; &amp;gt; <br>> &gt; &amp;gt; <br>> &gt; &amp;gt; However when I use "petscmpiexec -n 4 ./e", I got some warnings:<br>> &gt; &amp;gt; <br>> &gt; &amp;gt; <br>> &gt; &amp;gt; Warning: ************** The PETSc libraries are out of date<br>> &gt; &amp;gt; Warning: ************** The executable ./e is out of date<br>> &gt; &amp;gt; <br>> &gt; &amp;gt; <br>> &gt; &amp;gt; What should I do to fix the warning?<br>> &gt; &amp;gt; <br>> &gt; &amp;gt; <br>> &gt; &amp;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;amp;nbsp;<br>> &gt; &amp;gt; <br>> &gt; &amp;gt; <br>> &gt; &amp;gt; Kind regards,<br>> &gt; &amp;gt; <br>> &gt; &amp;gt; <br>> &gt; &amp;gt; Syvshc<br><br></div>