PyLith Installer Issues

In anticipation for the upcoming CIG workshop, I have taken to trying to build the master branch of PyLith on a brand new machine, and have hit a few snags.

My config options for the installer are given as follows (it won’t permit me to upload txt files), with the idea of building as much as possible for the sake of portability (i.e finding someway not to have to fiddle with this installer script every time):

$HOME/src/pylith/pylith-installer-2.2.1-1/configure \
    --enable-python=yes \
    --with-numpy-blaslapack \
    --with-make-threads=2 \
	--enable-setuptools \
	--enable-swig \
	--enable-pcre \
    --with-pylith-git=master \
	--enable-spatialdata=yes \
	--enable-openssl \
	--enable-petsc \
--enable-force-install \
    --with-petsc-options='--CFLAGS=-I${PETSC_DIR}/include --CXXFLAGS=-I${PETSC_DIR}/include --CPPFLAGS=-I${PETSC_DIR}/include --download-chaco=1 --download-ml=1 --download-f2cblaslapack=1' \
    CC=gcc \
    CXX=g++ \
    FC=gfortran \
    CFLAGS="-fPIC " \
    CXXFLAGS="-fPIC " \
    CPPFLAGS="-I${HOME}/pylith/include/ " \
    --prefix=${HOME}/pylith 2>&1 | tee build.out

Initially I had built autotools as well, and to my surprise, the initial run of this configure did not require the --enable-force-install flag. Unfortunately, that attempt at compiling ended at the compilation of autotools, with the following fanfare:

make[4]: Entering directory '/home/dockimble/build/pylith/automake-1.15-build'
  GEN      bin/automake
  GEN      bin/aclocal
  GEN      doc/aclocal.1
  GEN      doc/automake.1
  GEN      runtest
  GEN      t/ax/shell-no-trail-bslash
  GEN      t/ax/cc-no-c-o
  GEN      lib/Automake/
  GEN      t/ax/
  GEN      doc/aclocal-1.15.1
  GEN      doc/automake-1.15.1
help2man: can't get `--help' info from automake-1.15
Try `--no-discard-stderr' if option outputs to stderr
Makefile:3687: recipe for target 'doc/automake-1.15.1' failed
make[4]: *** [doc/automake-1.15.1] Error 255
make[4]: Leaving directory '/home/dockimble/build/pylith/automake-1.15-build'
Makefile:930: recipe for target 'autotools' failed
make[3]: *** [autotools] Error 2
make[3]: Leaving directory '/home/dockimble/build/pylith'
Makefile:963: recipe for target 'installed_autotools' failed
make[2]: *** [installed_autotools] Error 2
make[2]: Leaving directory '/home/dockimble/build/pylith'
Makefile:1354: recipe for target 'installed_spatialdata' failed
make[1]: *** [installed_spatialdata] Error 2
make[1]: Leaving directory '/home/dockimble/build/pylith'
Makefile:1418: recipe for target 'installed_pylith' failed
make: *** [installed_pylith] Error 2

Removing the requirement to build autotools seemed to resolve this issue, however as a significant portion had already been built, the --enable-force-install flag was needed. On the second try, the install got all the way to the attempt to build PyLith itself, but stopped with the following error:

checking for PETSc dir... /home/dockimble/pylith
checking for PETSc arch... arch-pylith
checking for PETSc config... /home/dockimble/pylith//lib/petsc/conf/petscvariables
checking for PETSc version == 3.10.2... no (3.11.1)
configure: error: no suitable PETSc package found
make[2]: Entering directory '/home/dockimble/build/pylith/pylith-build'
make[2]: *** No targets specified and no makefile found.  Stop.
make[2]: Leaving directory '/home/dockimble/build/pylith/pylith-build'
Makefile:1400: recipe for target 'pylith' failed
make[1]: *** [pylith] Error 2
make[1]: Leaving directory '/home/dockimble/build/pylith'
Makefile:1418: recipe for target 'installed_pylith' failed
make: *** [installed_pylith] Error 2

It looks like it doesn’t like the PETSc version. Is there a way to placate the installer about this?


If you want PyLith v2.2.1, then you need to use the PyLith and PETSc tarballs, not the master branch.

The current PyLith master branch is at an intermediate step between v2.2.1 and v3.0. There are some incompatibilities between the PyLith master branch and the PETSc knepley/pylith branch (currently at v3.11.1). The PyLith master branch will build with PETSc v 3.10.2 as indicated by the configure.

Our goal for the upcoming workshop is to get the PyLith branch knepley/feature-petsc-fe stable and complete enough to merge into the master branch.

I was looking to build the bleeding edge version, as for 2.2.1, the binaries work just fine.

Thank you, you answered my question with regard which branch that is, and the installer seems a tad less nebulous now.