[petsc-users] slepc-master does not configure correctly

Satish Balay balay at mcs.anl.gov
Wed Mar 21 21:23:30 CDT 2018


The primary change is -  DESTDIR in petscvariables is replaced with PREFIXDIR

i.e:

diff --git a/config/packages/petsc.py b/config/packages/petsc.py
index e89779e15..f2577e4c6 100644
--- a/config/packages/petsc.py
+++ b/config/packages/petsc.py
@@ -90,8 +90,8 @@ class PETSc(package.Package):
           self.precision = v
         elif k == 'MAKE':
           self.make = v
-        elif k == 'DESTDIR':
+        elif k == 'PREFIXDIR':
           self.destdir = v
         elif k == 'BFORT':
           self.bfort = v
         elif k == 'TEST_RUNS':

But then 'self.destdir' should be replaced by a more appropriate name
'self.prefixdir' [and update its usage from other source files]

Satish


On Thu, 22 Mar 2018, Jed Brown wrote:

> Yes, DESTDIR is something that is only used during "make install".  If
> you had a prefix install of PETSc, it should get PETSC_DIR (set to that
> prefix) and empty PETSC_ARCH.
> 
> "Kong, Fande" <fande.kong at inl.gov> writes:
> 
> > Hi All,
> >
> > ~/projects/slepc]> PETSC_ARCH=arch-darwin-c-debug-master ./configure
> >
> >
> >
> >
> >
> >
> >
> > *Checking environment...Traceback (most recent call last):  File
> > "./configure", line 10, in <module>
> > execfile(os.path.join(os.path.dirname(__file__), 'config',
> > 'configure.py'))  File "./config/configure.py", line 206, in <module>
> > log.write('PETSc install directory: '+petsc.destdir)AttributeError: PETSc
> > instance has no attribute 'destdir'*
> >
> >
> >
> > SLEPc may be needed to synchronized for new changes in PETSc.
> >
> > Thanks,
> >
> > Fande Kong
> 



More information about the petsc-users mailing list