<div><div>Scott-Grad-MacBook-Pro:benchmarks zhihui$ mpicc -c sizeof.c</div><div>Scott-Grad-MacBook-Pro:benchmarks zhihui$ ls</div><div>Index.c<span style="white-space:pre">                        </span>PetscGetCPUTime.c<span style="white-space:pre">    </span>PetscMemcmp.c<span style="white-space:pre">                </span>PetscTime.c<span style="white-space:pre">          </span>benchmarkExample.py<span style="white-space:pre">  </span>sizeof.c</div><div>Index.c.html<span style="white-space:pre">          </span>PetscGetCPUTime.c.html<span style="white-space:pre">       </span>PetscMemcmp.c.html<span style="white-space:pre">   </span>PetscTime.c.html<span style="white-space:pre">     </span>daemon.py<span style="white-space:pre">            </span>sizeof.o</div><div>MPI_Wtime.c<span style="white-space:pre">           </span>PetscGetTime.c<span style="white-space:pre">               </span>PetscMemcpy.c<span style="white-space:pre">                </span>PetscVecNorm.c<span style="white-space:pre">               </span>index.html<span style="white-space:pre">           </span>streams</div><div>MPI_Wtime.c.html<span style="white-space:pre">       </span>PetscGetTime.c.html<span style="white-space:pre">  </span>PetscMemcpy.c.html<span style="white-space:pre">   </span>PetscVecNorm.c.html<span style="white-space:pre">  </span>libconf1.a</div><div>PLogEvent.c<span style="white-space:pre">         </span>PetscMalloc.c<span style="white-space:pre">                </span>PetscMemzero.c<span style="white-space:pre">               </span>benchmarkAssembly.py<span style="white-space:pre"> </span>makefile</div><div>PLogEvent.c.html<span style="white-space:pre">      </span>PetscMalloc.c.html<span style="white-space:pre">   </span>PetscMemzero.c.html<span style="white-space:pre">  </span>benchmarkBatch.py<span style="white-space:pre">    </span>makefile.html</div><div>Scott-Grad-MacBook-Pro:benchmarks zhihui$ /usr/bin/ar cr libconf1.a sizeof.o</div><div>ar: temporary file: No such file or directory</div><div><br></div></div><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> "Balay, Satish";<balay@mcs.anl.gov>;</div><div><b>Date: </b> Oct 26, 2018</div><div><b>To: </b> "avatar"<648934229@qq.com>; <wbr></div><div><b>Cc: </b> "petsc-users"<petsc-users@mcs.anl.gov>; <wbr></div><div><b>Subject: </b> Re: [petsc-users] "Could not find a suitable archiver. Use --with-arto specify an archiver"</div></div><div><br></div>What about:<br><br><br>mpicc -c sizeof.c<br>/usr/bin/ar cr libconf1.a sizeof.o<br><br>Satish<br><br>On Fri, 26 Oct 2018, avatar wrote:<br><br>> I could not do all things you posted below. I get these:<br>> <br>> <br>> Scott-Grad-MacBook-Pro:petsc-3.8.3 zhihui$ cd src<br>> Scott-Grad-MacBook-Pro:src zhihui$ cd benchmarks/<br>> Scott-Grad-MacBook-Pro:benchmarks zhihui$ mpicc -c sizeof.c<br>> Scott-Grad-MacBook-Pro:benchmarks zhihui$ ls -l sizeof.o<br>> -rw-r--r--  1 zhihui  staff  1452 Oct 25 17:00 sizeof.o<br>> Scott-Grad-MacBook-Pro:benchmarks zhihui$ /usr/bin/ar cr /tmp/libconf1.a sizeof.o<br>> ar: temporary file: No such file or directory<br>> Scott-Grad-MacBook-Pro:benchmarks zhihui$ /usr/bin/ar cr /tmp/libconf1.a  sizeof.o<br>> ar: temporary file: No such file or directory<br>> Scott-Grad-MacBook-Pro:benchmarks zhihui$<br>> <br>> <br>> <br>> <br>> <br>> ------------------ Original ------------------<br>> From:  "Balay, Satish";<balay@mcs.anl.gov>;<br>> Date:  Oct 26, 2018<br>> To:  "avatar"<648934229@qq.com>; <br>> Cc:  "petsc-users"<petsc-users@mcs.anl.gov>; <br>> Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use --with-arto specify an archiver"<br>> <br>> <br>> <br>> On Fri, 26 Oct 2018, avatar wrote:<br>> <br>> > Hi Satish,<br>> > <br>> > <br>> > Thank you very much for your quick response.<br>> > <br>> > <br>> > The log file is as follow:<br>> > <br>> <br>> >>>>>><br>> Executing: /usr/bin/ar cr /tmp/petsc-mjVUVK/config.setCompilers/libconf1.a /tmp/petsc-mjVUVK/config.setCompilers/conf1.o<br>> Possible ERROR while running archiver: exit code 256<br>> stderr:<br>> ar: temporary file: No such file or directory<br>>             Archiver is not functional<br>> <br>> <<<<<<<br>> This is a strange error.<br>> <br>> What do you get when you do the following:<br>> <br>> balay@jpro^~/petsc(maint-3.8) $ cd src/benchmarks/<br>> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ mpicc -c sizeof.c <br>> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ ls -l sizeof.o<br>> -rw-r--r--  1 balay  staff  3036 Oct 25 17:54 sizeof.o<br>> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ /usr/bin/ar cr /tmp/libconf1.a  sizeof.o<br>> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ ls -l /tmp/libconf1.a<br>> -rw-r--r--  1 balay  wheel  3224 Oct 25 17:55 /tmp/libconf1.a<br>> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ ar t /tmp/libconf1.a<br>> __.SYMDEF SORTED<br>> sizeof.o<br>> <br>> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ cp sizeof.o /tmp/<br>> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ ls -l /tmp/sizeof.o <br>> -rw-r--r--  1 balay  wheel  3036 Oct 25 17:55 /tmp/sizeof.o<br>> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ /usr/bin/ar cr /tmp/libconf2.a /tmp/sizeof.o<br>> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ ls -l /tmp/libconf2.a<br>> -rw-r--r--  1 balay  wheel  3224 Oct 25 17:55 /tmp/libconf2.a<br>> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ ar t /tmp/libconf2.a<br>> __.SYMDEF SORTED<br>> sizeof.o<br>> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ <br>> <br>> Satish<br></div>