<div>Is there other way to overcome this problem? Because if I don't set TMPDIR as \tmp. My other project will break. And actually I don't even know where my project set up the TMPDIR value.</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> "petsc-users"<petsc-users@mcs.anl.gov>; <wbr></div><div><b>Cc: </b> "avatar"<648934229@qq.com>; <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>To clarify, I meant: remove 'code that is changing the value of TMPDIR to 'tmp'<br><br>Satish<br><br> On Thu, 25 Oct 2018, Satish Balay wrote:<br><br>> I see - you have:<br>> <br>> >><br>> TMPDIR=tmp<br>> <<<br>> <br>> Did you set this in your ~/.bashrc or somewhere? This is wrong and is breaking tools.<br>> OSX should setup something likethe following for you.<br>> <br>> petsc-mini:~ balay$ echo $TMPDIR<br>> /var/folders/lw/hyrlb1051p9fj96qkktfvhvm0000gn/T/<br>> <br>> Remove it - and retry building PETSc.<br>> <br>> Satish<br>> <br>> On Thu, 25 Oct 2018, Satish Balay wrote:<br>> <br>> > 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>> > <br>> > <br>> <br>> <br></div>