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

2018-10-25 Thread avatar
Satish,


If I just run, /Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay, 
then Matlab can run normally in the terminal as
Scott-Grad-MBP:~ zhihui$ /Applications/MATLAB_R2018a.app/bin/matlab -nojvm 
-nodisplay


 < M A T L A B (R) >
   Copyright 1984-2018 The MathWorks, Inc.
R2018a (9.4.0.813654) 64-bit (maci64)
  February 23, 2018




For online documentation, see http://www.mathworks.com/support
For product information, visit www.mathworks.com.


>>









-- Original --
From:  "Balay, Satish";;
Date:  Oct 26, 2018
To:  "avatar"<648934...@qq.com>; 
Cc:  "petsc-users"; 
Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use 
--with-arto specify an archiver"



>>>>>>>>>>>>>>
Testing Matlab at /Applications/MATLAB_R2018a.app
Executing: /Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay -r 
"display(['Version ' version]); exit"
stdout:
< M A T L A B (R) >
  Copyright 1984-2018 The MathWorks, Inc.
   R2018a (9.4.0.813654) 64-bit (maci64)
 February 23, 2018

For online documentation, see http://www.mathworks.com/support
For product information, visit www.mathworks.com.

Version 9.4.0.813654 (R2018a)
WARNING: Found Matlab at /Applications/MATLAB_R2018a.app but unable to run
<<<<<<<<<<<<<<<<<


So configure attempted to run Matlab - and perhaps got an error. What do you 
get if you run this manually?


/Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay -r 
"display(['Version ' version]); exit"
echo $?

Satish

On Fri, 26 Oct 2018, avatar wrote:

> Hi Satish, 
> 
> 
> The attached is the whole configure.log file. I could not past it here 
> because it is too big and crash my webpage. I could not use the latest 
> version right now, because the project is maintained by other people. If I 
> update petsc, I will break the whole project. But we will use the latest 
> version when the maintenance guys update the dependences.
> 
> 
> Thank you.
> 
> 
> 
> 
> -- Original --
> From:  "Balay, Satish";;
> Date:  Oct 26, 2018
> To:  "avatar"<648934...@qq.com>; 
> Cc:  "petsc-users"; 
> Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use 
> --with-arto specify an archiver"
> 
> 
> 
> 1. You need to send us the complete log.
> 
> 2. Also use current release - petsc-3.10 [not 3.8]
> 
> Satish
> 
> On Fri, 26 Oct 2018, avatar wrote:
> 
> > Scott-Grad-MBP:petsc-3.8.3 zhihui$ ./configure 
> > --with-matlab-dir=/Applications/MATLAB_R2018a.app/
> > ===
> >  Configuring PETSc to compile on your system
> > ===
> > TESTING: configureLibrary from 
> > config.packages.Matlab(config/BuildSystem/config/***
> >  UNABLE to CONFIGURE with GIVEN OPTIONS(see configure.log for 
> > details):
> > ---
> > You set a value for --with-matlab-dir, but /Applications/MATLAB_R2018a.app 
> > cannot be used
> > ***
> > 
> > 
> > 
> > Part of the log file as follow
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_REDUCE_SCATTER
> > #define PETSC_HAVE_MPI_REDUCE_SCATTER 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_COMBINER_DUP
> > #define PETSC_HAVE_MPI_COMBINER_DUP 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPIIO
> > #define PETSC_HAVE_MPIIO 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_COMM_SPAWN
> > #define PETSC_HAVE_MPI_COMM_SPAWN 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_FINT
> > #define PETSC_HAVE_MPI_FINT 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_IBARRIER
> > #define PETSC_HAVE_MPI_IBARRIER 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_ALLTOALLW
> > #define PETSC_HAVE_MPI_ALLTOALLW 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_OMPI_RELEASE_VERSION
> > #define PETSC_HAVE_OMPI_RELEASE_VERSION 2
> > #endif
> >

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

2018-10-25 Thread avatar
000114066574
bin/maci64/libmwddux_impl.dylib+00071028 
_ZN4ddux16DDUXServiceProxyclERKNS_23LogFunctionUsageMessageERKN10foundation7msg_svc8exchange7RoutingE+00026852
[ 17] 0x000104f11d41 
/Applications/MATLAB_R2018a.app/bin/maci64/libmwboost_thread.dylib+00011585 
_ZN7mwboost6thread21start_thread_noexceptEv+0353
[ 18] 0x7fffa0d4a93b
/usr/lib/system/libsystem_pthread.dylib+00014651 _pthread_body+0180
[ 19] 0x7fffa0d4a887
/usr/lib/system/libsystem_pthread.dylib+00014471 _pthread_body+
[ 20] 0x7fffa0d4a08d
/usr/lib/system/libsystem_pthread.dylib+00012429 thread_start+0013


** This crash report has been saved to disk as 
/Users/zhihui/matlab_crash_dump.77227-1 **






MATLAB is exiting because of fatal error
Killed: 9
Scott-Grad-MBP:~ zhihui$ echo $?
137





-- Original --
From:  "Balay, Satish";;
Date:  Oct 26, 2018
To:  "avatar"<648934...@qq.com>; 
Cc:  "petsc-users"; 
Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use 
--with-arto specify an archiver"



>>>>>>>>>>>>>>
Testing Matlab at /Applications/MATLAB_R2018a.app
Executing: /Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay -r 
"display(['Version ' version]); exit"
stdout:
< M A T L A B (R) >
  Copyright 1984-2018 The MathWorks, Inc.
   R2018a (9.4.0.813654) 64-bit (maci64)
 February 23, 2018

For online documentation, see http://www.mathworks.com/support
For product information, visit www.mathworks.com.

Version 9.4.0.813654 (R2018a)
WARNING: Found Matlab at /Applications/MATLAB_R2018a.app but unable to run
<<<<<<<<<<<<<<<<<


So configure attempted to run Matlab - and perhaps got an error. What do you 
get if you run this manually?


/Applications/MATLAB_R2018a.app/bin/matlab -nojvm -nodisplay -r 
"display(['Version ' version]); exit"
echo $?

Satish

On Fri, 26 Oct 2018, avatar wrote:

> Hi Satish, 
> 
> 
> The attached is the whole configure.log file. I could not past it here 
> because it is too big and crash my webpage. I could not use the latest 
> version right now, because the project is maintained by other people. If I 
> update petsc, I will break the whole project. But we will use the latest 
> version when the maintenance guys update the dependences.
> 
> 
> Thank you.
> 
> 
> 
> 
> -- Original --
> From:  "Balay, Satish";;
> Date:  Oct 26, 2018
> To:  "avatar"<648934...@qq.com>; 
> Cc:  "petsc-users"; 
> Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use 
> --with-arto specify an archiver"
> 
> 
> 
> 1. You need to send us the complete log.
> 
> 2. Also use current release - petsc-3.10 [not 3.8]
> 
> Satish
> 
> On Fri, 26 Oct 2018, avatar wrote:
> 
> > Scott-Grad-MBP:petsc-3.8.3 zhihui$ ./configure 
> > --with-matlab-dir=/Applications/MATLAB_R2018a.app/
> > ===
> >  Configuring PETSc to compile on your system
> > ===
> > TESTING: configureLibrary from 
> > config.packages.Matlab(config/BuildSystem/config/***
> >  UNABLE to CONFIGURE with GIVEN OPTIONS(see configure.log for 
> > details):
> > ---
> > You set a value for --with-matlab-dir, but /Applications/MATLAB_R2018a.app 
> > cannot be used
> > ***
> > 
> > 
> > 
> > Part of the log file as follow
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_REDUCE_SCATTER
> > #define PETSC_HAVE_MPI_REDUCE_SCATTER 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_COMBINER_DUP
> > #define PETSC_HAVE_MPI_COMBINER_DUP 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPIIO
> > #define PETSC_HAVE_MPIIO 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_COMM_SPAWN
> > #define PETSC_HAVE_MPI_COMM_SPAWN 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_FINT
> > #define PETSC_HAVE_MPI_FINT 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_IBARRIER
> > #define PETSC_HAVE_MPI_IBARRIER 1
> > #endif
> > 
> > 
> > #ifndef PETSC_HAVE_MPI_ALLTOALLW
> > #define PETSC_HAVE_

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

2018-10-25 Thread avatar
ile 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/packages/Matlab.py",
 line 23, in generateGuesses
raise RuntimeError('You set a value for --with-matlab-dir, but 
'+self.argDB['with-matlab-dir']+' cannot be used\n')

Finishing Configure Run at Thu Oct 25 18:48:02 2018








-- Original --
From:  "Balay, Satish";;
Date:  Oct 26, 2018
To:  "avatar"<648934...@qq.com>; 
Cc:  "petsc-users"; 
Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use 
--with-arto specify an archiver"



On Fri, 26 Oct 2018, avatar wrote:

> Scott-Grad-MBP:bin zhihui$ pwd
> /Applications/MATLAB_R2018a.app/bin


Sorry - you need

--with-matlab-dir=/Applications/MATLAB_R2018a.app/

Satish

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

2018-10-25 Thread avatar
When I do the following, it shows
Scott-Grad-MBP:~ zhihui$ cd Applications/
Scott-Grad-MBP:Applications zhihui$ ls
Chrome Apps.localized
Scott-Grad-MBP:Applications zhihui$



From these, we can see there is no MATALB_R2018a.app in Applications. But when 
I get into bin, and do the following, it does show
Scott-Grad-MBP:bin zhihui$ pwd
/Applications/MATLAB_R2018a.app/bin
Scott-Grad-MBP:bin zhihui$ ls
activate_matlab.sh  lcdata_utf8.xml matlab-glselector.shmexsh
deactivate_matlab.shldd matopts.sh  
optsetup.sh
engopts.sh  m3iregistry mex registry
lcdata.xml  maci64  mexext  util
lcdata.xsd  matlab  mexopts.sh





-- Original --
From:  "Balay, Satish";;
Date:  Oct 26, 2018
To:  "avatar"<648934...@qq.com>; 
Cc:  "petsc-users"; 
Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use 
--with-arto specify an archiver"



you need

--with-matlab-dir=/Users/zhihui/Applications/MATLAB_R2018a.app

Satish

On Fri, 26 Oct 2018, avatar wrote:

> Thank Satish. It worked as you said. But when I rebuild petsc using 
> ./configure --with-matlab
> It prompts 
> ===
>  Configuring PETSc to compile on your system
> ===
> TESTING: configureLibrary from 
> config.packages.Matlab(config/BuildSystem/config/packages/Matlab.py:35)   
>   
> ***
>  UNABLE to CONFIGURE with GIVEN OPTIONS(see configure.log for 
> details):
> ---
> Could not find a functional Matlab
> Run with --with-matlab-dir=Matlabrootdir if you know where it is
> ***
> 
> 
> 
> Then, I did the following. But it shows that 
> "/Users/zhihui/Applications/MATLAB_R2018a.app/bin/matlab" nonexistent. 
> However, it does exist as
> Scott-Grad-MBP:bin zhihui$ pwd
> /Applications/MATLAB_R2018a.app/bin
> Scott-Grad-MBP:bin zhihui$ ls
> activate_matlab.shlcdata_utf8.xml matlab-glselector.shmexsh
> deactivate_matlab.sh  ldd matopts.sh  
> optsetup.sh
> engopts.shm3iregistry mex registry
> lcdata.xmlmaci64  mexext  util
> lcdata.xsdmatlab  mexopts.sh
> 
> 
> 
> Do you know what it is going on here?
> 
> 
> 
> 
> Scott-Grad-MBP:petsc-3.8.3 zhihui$ ./configure 
> --with-matlab-dir=./../../../../Applications/MATLAB_R2018a/bin/matlab
> ===
>  Configuring PETSc to compile on your system
> ===
> ***
> ERROR in COMMAND LINE ARGUMENT to ./configure
> ---
> Nonexistent directory: /Users/zhihui/Applications/MATLAB_R2018a/bin/matlab 
> for key with-matlab-dir
> ***
> 
> 
> 
> 
>   File "./config/configure.py", line 390, in petsc_configure
> framework = 
> config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=config.compilerOptions']+sys.argv[1:],
>  loadArgDB = 0)
>   File 
> "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
>  line 110, in __init__
> self.createChildren()
>   File 
> "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
>  line 321, in createChildren
> self.getChild(moduleName)
>   File 
> "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
>  line 306, in getChild
> config.setupDependencies(self)
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", 
> line 107, in setupDependencies
> obj = self.registerPythonFile(package,'config.packages')
>   File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", 
> line 63, in registerPythonFile
> utilityObj = 
> self.framework.require(directory+utilityName, self)
>   File 
> "/Users/zhihui/igx/deps

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

2018-10-25 Thread avatar
still shows these


Scott-Grad-MBP:petsc-3.8.3 zhihui$ ./configure 
--with-matlab-dir=/Users/zhihui/Applications/MATLAB_R2018a.app
===
 Configuring PETSc to compile on your system
===
***
ERROR in COMMAND LINE ARGUMENT to ./configure
---
Nonexistent directory: /Users/zhihui/Applications/MATLAB_R2018a.app for key 
with-matlab-dir
***




  File "./config/configure.py", line 390, in petsc_configure
framework = 
config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=config.compilerOptions']+sys.argv[1:],
 loadArgDB = 0)
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
 line 110, in __init__
self.createChildren()
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
 line 321, in createChildren
self.getChild(moduleName)
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
 line 306, in getChild
config.setupDependencies(self)
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", 
line 107, in setupDependencies
obj = self.registerPythonFile(package,'config.packages')
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", 
line 63, in registerPythonFile
utilityObj = 
self.framework.require(directory+utilityName, self)
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
 line 326, in require
config = self.getChild(moduleName, keywordArgs)
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
 line 304, in getChild
config.setup()
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/script.py", 
line 101, in setup
logger.Logger.setup(self)
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/logger.py", 
line 85, in setup
args.ArgumentProcessor.setup(self)
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/args.py", 
line 75, in setup
self.setupArguments(self.argDB)
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/script.py", 
line 85, in setupArguments
self.setupHelp(self.help)
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/packages/Matlab.py",
 line 15, in setupHelp
help.addArgument('MATLAB', '-with-matlab-dir=', 
nargs.ArgDir(None, None, 'Specify the root directory of the Matlab 
installation'))
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/help.py", 
line 107, in addArgument
self.argDB.setType(self.getArgName(name), argType, forceLocal = 1)
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/RDict.py", 
line 213, in setType
value.setValue(v.getValue())
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/nargs.py", 
line 324, in setValue
raise ValueError('Nonexistent directory: '+str(value)+' for key 
'+str(self.key))







-- Original --
From:  "Balay, Satish";;
Date:  Oct 26, 2018
To:  "avatar"<648934...@qq.com>; 
Cc:  "petsc-users"; 
Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use 
--with-arto specify an archiver"



you need

--with-matlab-dir=/Users/zhihui/Applications/MATLAB_R2018a.app

Satish

On Fri, 26 Oct 2018, avatar wrote:

> Thank Satish. It worked as you said. But when I rebuild petsc using 
> ./configure --with-matlab
> It prompts 
> ===
>  Configuring PETSc to compile on your system
> ===
> TESTING: configureLibrary from 
> config.packages.Matlab(config/BuildSystem/config/packages/Matlab.py:35)   
>   
> ***
>  UNABLE to CONFIGURE with GIVEN OPTIONS(see configure.log for 
> details):
> ---
> Could not find a functional Matlab
> Run with --with-matlab-dir=Matlabrootdir if you know where it is
> ***
> 
> 
> 
> Then, I did the following. But it shows that 
> "/Users/zhihui/Applications/MATLAB

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

2018-10-25 Thread avatar
Thank Satish. It worked as you said. But when I rebuild petsc using 
./configure --with-matlab
It prompts 
===
 Configuring PETSc to compile on your system
===
TESTING: configureLibrary from 
config.packages.Matlab(config/BuildSystem/config/packages/Matlab.py:35) 
***
 UNABLE to CONFIGURE with GIVEN OPTIONS(see configure.log for 
details):
---
Could not find a functional Matlab
Run with --with-matlab-dir=Matlabrootdir if you know where it is
***



Then, I did the following. But it shows that 
"/Users/zhihui/Applications/MATLAB_R2018a.app/bin/matlab" nonexistent. However, 
it does exist as
Scott-Grad-MBP:bin zhihui$ pwd
/Applications/MATLAB_R2018a.app/bin
Scott-Grad-MBP:bin zhihui$ ls
activate_matlab.sh  lcdata_utf8.xml matlab-glselector.shmexsh
deactivate_matlab.shldd matopts.sh  
optsetup.sh
engopts.sh  m3iregistry mex registry
lcdata.xml  maci64  mexext  util
lcdata.xsd  matlab  mexopts.sh



Do you know what it is going on here?




Scott-Grad-MBP:petsc-3.8.3 zhihui$ ./configure 
--with-matlab-dir=./../../../../Applications/MATLAB_R2018a/bin/matlab
===
 Configuring PETSc to compile on your system
===
***
ERROR in COMMAND LINE ARGUMENT to ./configure
---
Nonexistent directory: /Users/zhihui/Applications/MATLAB_R2018a/bin/matlab for 
key with-matlab-dir
***




  File "./config/configure.py", line 390, in petsc_configure
framework = 
config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=config.compilerOptions']+sys.argv[1:],
 loadArgDB = 0)
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
 line 110, in __init__
self.createChildren()
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
 line 321, in createChildren
self.getChild(moduleName)
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
 line 306, in getChild
config.setupDependencies(self)
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", 
line 107, in setupDependencies
obj = self.registerPythonFile(package,'config.packages')
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/PETSc/Configure.py", 
line 63, in registerPythonFile
utilityObj = 
self.framework.require(directory+utilityName, self)
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
 line 326, in require
config = self.getChild(moduleName, keywordArgs)
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/framework.py",
 line 304, in getChild
config.setup()
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/script.py", 
line 101, in setup
logger.Logger.setup(self)
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/logger.py", 
line 85, in setup
args.ArgumentProcessor.setup(self)
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/args.py", 
line 75, in setup
self.setupArguments(self.argDB)
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/script.py", 
line 85, in setupArguments
self.setupHelp(self.help)
  File 
"/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/config/packages/Matlab.py",
 line 15, in setupHelp
help.addArgument('MATLAB', '-with-matlab-dir=', 
nargs.ArgDir(None, None, 'Specify the root directory of the Matlab 
installation'))
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/help.py", 
line 107, in addArgument
self.argDB.setType(self.getArgName(name), argType, forceLocal = 1)
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/RDict.py", 
line 213, in setType
value.setValue(v.getValue())
  File "/Users/zhihui/igx/deps/srcs/petsc-3.8.3/config/BuildSystem/nargs.py", 
line 324, in setValue
raise ValueError('Nonexistent d

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

2018-10-25 Thread avatar
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.




-- Original --
From:  "Balay, Satish";;
Date:  Oct 26, 2018
To:  "petsc-users"; 
Cc:  "avatar"<648934...@qq.com>; 
Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use 
--with-arto specify an archiver"



To clarify, I meant: remove 'code that is changing the value of TMPDIR to 'tmp'

Satish

 On Thu, 25 Oct 2018, Satish Balay wrote:

> 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/hyrlb1051p9fj96qkktfvhvmgn/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";;
> > > Date:  Oct 26, 2018
> > > To:  "avatar"<648934...@qq.com>; 
> > > Cc:  "petsc-users"; 
> > > 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.htmlPetscGetCPUTime.c.html  PetscMemcmp.c.html  
> > > > PetscTime.c.htmldaemon.py   sizeof.o
> > > > MPI_Wtime.c PetscGetTime.c  PetscMemcpy.c   
> > > > PetscVecNorm.c  index.html  streams
> > > > MPI_Wtime.c.htmlPetscGetTime.c.html PetscMemcpy.c.html  
> > > > PetscVecNorm.c.html libconf1.a
> > > > PLogEvent.c PetscMalloc.c   PetscMemzero.c  
> > > > benchmarkAssembly.pymakefile
> > > > PLogEvent.c.htmlPetscMalloc.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";;
> > > > Date:  Oct 26, 2018
> > > > To:  "avatar"<648934...@qq.com>; 
> > > > Cc:  "petsc-users"; 
> > > > 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 

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

2018-10-25 Thread avatar
These are what I got:
Scott-Grad-MacBook-Pro:benchmarks zhihui$ echo $TMPDIR
tmp
Scott-Grad-MacBook-Pro:benchmarks zhihui$ ls -l libconf1.a
-rw-r--r--  1 zhihui  staff  1624 Oct 25 17:36 libconf1.a
Scott-Grad-MacBook-Pro:benchmarks zhihui$ /usr/bin/ar t libconf1.a
__.SYMDEF SORTED
sizeof.o
Scott-Grad-MacBook-Pro:benchmarks zhihui$ TMPDIR=$PWD /usr/bin/ar t libconf1.a
__.SYMDEF SORTED
sizeof.o





-- Original --
From:  "Balay, Satish";;
Date:  Oct 26, 2018
To:  "avatar"<648934...@qq.com>; 
Cc:  "petsc-users"; 
Subject:  Re: [petsc-users] "Could not find a suitable archiver. Use 
--with-arto specify an archiver"



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";;
> Date:  Oct 26, 2018
> To:  "avatar"<648934...@qq.com>; 
> Cc:  "petsc-users"; 
> 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.htmlPetscGetCPUTime.c.html  PetscMemcmp.c.html  
> > PetscTime.c.htmldaemon.py   sizeof.o
> > MPI_Wtime.c PetscGetTime.c  PetscMemcpy.c   
> > PetscVecNorm.c  index.html  streams
> > MPI_Wtime.c.htmlPetscGetTime.c.html PetscMemcpy.c.html  
> > PetscVecNorm.c.html libconf1.a
> > PLogEvent.c PetscMalloc.c   PetscMemzero.c  
> > benchmarkAssembly.pymakefile
> > PLogEvent.c.htmlPetscMalloc.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";;
> > Date:  Oct 26, 2018
> > To:  "avatar"<648934...@qq.com>; 
> > Cc:  "petsc-users"; 
> > 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";;
> > > Date:  Oct 26, 2018
> > > To:  "avatar"<648934...@qq.com>; 
> > > Cc:  "petsc-users"; 
> > > 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.
> > > > 
> >

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

2018-10-25 Thread avatar
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";;
Date:  Oct 26, 2018
To:  "avatar"<648934...@qq.com>; 
Cc:  "petsc-users"; 
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.htmldaemon.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.pymakefile
> 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";;
> Date:  Oct 26, 2018
> To:  "avatar"<648934...@qq.com>; 
> Cc:  "petsc-users"; 
> 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";;
> > Date:  Oct 26, 2018
> > To:  "avatar"<648934...@qq.com>; 
> > Cc:  "petsc-users"; 
> > 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@jpro^~/petsc(maint-3.8) $ cd src/benchmarks/
> > balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ mpicc -c sizeof.c 
> > balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ /usr/bin/ar cr 
> > /tmp/libconf1.a  sizeof.o
> > balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ ar t /tmp/libconf1.a
> > __.SYMDEF SORTED
> > sizeof.o
> > 
> > balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ cp sizeof.o /tmp/
> > balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ /usr/bin/ar cr 
> > /tmp/libconf2.a /tmp/sizeof.o
> > balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ ar t /tmp/libconf2.a
> > __.SYMDEF SORTED
> > sizeof.o
> > balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ 
> > 
> > Satish

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

2018-10-25 Thread avatar
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.htmlPetscGetCPUTime.c.html  PetscMemcmp.c.html  
PetscTime.c.htmldaemon.py   sizeof.o
MPI_Wtime.c PetscGetTime.c  PetscMemcpy.c   
PetscVecNorm.c  index.html  streams
MPI_Wtime.c.htmlPetscGetTime.c.html PetscMemcpy.c.html  
PetscVecNorm.c.html libconf1.a
PLogEvent.c PetscMalloc.c   PetscMemzero.c  
benchmarkAssembly.pymakefile
PLogEvent.c.htmlPetscMalloc.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";;
Date:  Oct 26, 2018
To:  "avatar"<648934...@qq.com>; 
Cc:  "petsc-users"; 
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";;
> Date:  Oct 26, 2018
> To:  "avatar"<648934...@qq.com>; 
> Cc:  "petsc-users"; 
> 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@jpro^~/petsc(maint-3.8) $ cd src/benchmarks/
> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ mpicc -c sizeof.c 
> balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ /usr/bin/ar cr /tmp/libconf1.a 
>  sizeof.o
> balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ ar t /tmp/libconf1.a
> __.SYMDEF SORTED
> sizeof.o
> 
> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ cp sizeof.o /tmp/
> balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ /usr/bin/ar cr /tmp/libconf2.a 
> /tmp/sizeof.o
> balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ ar t /tmp/libconf2.a
> __.SYMDEF SORTED
> sizeof.o
> balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ 
> 
> Satish

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

2018-10-25 Thread avatar
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";;
Date:  Oct 26, 2018
To:  "avatar"<648934...@qq.com>; 
Cc:  "petsc-users"; 
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@jpro^~/petsc(maint-3.8) $ cd src/benchmarks/
balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ mpicc -c sizeof.c 
balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ /usr/bin/ar cr /tmp/libconf1.a  
sizeof.o
balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ ar t /tmp/libconf1.a
__.SYMDEF SORTED
sizeof.o

balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ cp sizeof.o /tmp/
balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ /usr/bin/ar cr /tmp/libconf2.a 
/tmp/sizeof.o
balay@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@jpro^~/petsc/src/benchmarks(maint-3.8) $ ar t /tmp/libconf2.a
__.SYMDEF SORTED
sizeof.o
balay@jpro^~/petsc/src/benchmarks(maint-3.8) $ 

Satish

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

2018-10-25 Thread avatar
Hi,

When I try to configure PETSc to connect Matlab with the following command
./petsc-3.8.3/configure ??with-matlab
, it prompts
===
 Configuring PETSc to compile on your system
===
TESTING: checkArchiver from 
config.setCompilers(config/BuildSystem/config/setCompilers.py:1184) 
 
***
 UNABLE to CONFIGURE with GIVEN OPTIONS(see configure.log for 
details):
---
Could not find a suitable archiver.  Use --with-ar to specify an archiver.
***



I am a newbie on Petsc. Could you please tell me how I should specify an 
archiver?  I am on MacOX system. I have tried many ways but it still does not 
work.


Thank you very much for your help.


Best,
Joe