[petsc-users] "Could not find a suitable archiver. Use --with-arto specify an archiver"

Balay, Satish balay at mcs.anl.gov
Thu Oct 25 18:44:53 CDT 2018


I see - you have:

>>
TMPDIR=tmp
<<

Did you set this in your ~/.bashrc or somewhere? This is wrong and is breaking tools.
OSX should setup something likethe following for you.

petsc-mini:~ balay$ echo $TMPDIR
/var/folders/lw/hyrlb1051p9fj96qkktfvhvm0000gn/T/

Remove it - and retry building PETSc.

Satish

On Thu, 25 Oct 2018, Satish Balay wrote:

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



More information about the petsc-users mailing list