<div>These are what I got:</div><div><div>Scott-Grad-MacBook-Pro:benchmarks zhihui$ echo $TMPDIR</div><div>tmp</div><div>Scott-Grad-MacBook-Pro:benchmarks zhihui$ ls -l libconf1.a</div><div>-rw-r--r--  1 zhihui  staff  1624 Oct 25 17:36 libconf1.a</div><div>Scott-Grad-MacBook-Pro:benchmarks zhihui$ /usr/bin/ar t libconf1.a</div><div>__.SYMDEF SORTED</div><div>sizeof.o</div><div>Scott-Grad-MacBook-Pro:benchmarks zhihui$ TMPDIR=$PWD /usr/bin/ar t libconf1.a</div><div>__.SYMDEF SORTED</div><div>sizeof.o</div></div><div><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> "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>Looks like it worked.<br><br>What do you have for:<br><br>echo $TMPDIR<br>ls -l libconf1.a<br>/usr/bin/ar t libconf1.a<br>TMPDIR=$PWD /usr/bin/ar t libconf1.a<br><br>Satish<br><br><br>On Fri, 26 Oct 2018, avatar wrote:<br><br>> As follow. Then, what I should do next?<br>> <br>> <br>> Scott-Grad-MacBook-Pro:benchmarks zhihui$ TMPDIR=$PWD /usr/bin/ar cr libconf1.a sizeof.o<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>> How about:<br>> <br>> TMPDIR=$PWD /usr/bin/ar cr libconf1.a sizeof.o<br>> <br>> Satish<br>> <br>> On Fri, 26 Oct 2018, avatar wrote:<br>> <br>> > Scott-Grad-MacBook-Pro:benchmarks zhihui$ mpicc -c sizeof.c<br>> > Scott-Grad-MacBook-Pro:benchmarks zhihui$ ls<br>> > Index.c                    PetscGetCPUTime.c       PetscMemcmp.c           PetscTime.c             benchmarkExample.py     sizeof.c<br>> > Index.c.html                PetscGetCPUTime.c.html  PetscMemcmp.c.html      PetscTime.c.html        daemon.py               sizeof.o<br>> > MPI_Wtime.c         PetscGetTime.c          PetscMemcpy.c           PetscVecNorm.c          index.html              streams<br>> > MPI_Wtime.c.html     PetscGetTime.c.html     PetscMemcpy.c.html      PetscVecNorm.c.html     libconf1.a<br>> > PLogEvent.c               PetscMalloc.c           PetscMemzero.c          benchmarkAssembly.py    makefile<br>> > PLogEvent.c.html    PetscMalloc.c.html      PetscMemzero.c.html     benchmarkBatch.py       makefile.html<br>> > Scott-Grad-MacBook-Pro:benchmarks zhihui$ /usr/bin/ar cr libconf1.a sizeof.o<br>> > ar: temporary file: No such file or directory<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>> > 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>