<div dir="ltr"><div>Thanks Satish for quick response,</div><div><br></div><div>I tried both of the above, first removing the options --with-cc etc. and then explicitly specifying the path e.g.
--with-cc=/usr/local/depot/openmpi-3.1.1-gcc-7.3.0/bin/mpicc etc.. <br></div><div>Netiher worked, the error is still the same telling me "did not work" I have attached the log file.</div><div><br></div><div>Thanks<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 7, 2019 at 4:39 PM Balay, Satish <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Configure Options: --configModules=PETSc.Configure --optionsModule=config.compilerOptions PETSC_ARCH=linux-cumulus-hpc --with-cc=gcc --with-fc=gfortran --with-cxx=g++ --with-mpi-dir=/usr/local/depot/openmpi-3.1.1-gcc-7.3.0/bin/ --download-parmetis --download-metis --download-ptscotch --download-superlu_dist --download-mumps --with-scalar-type=complex --with-debugging=no --download-scalapack --download-superlu --download-fblaslapack=1 --download-cmake<br>
<br>
' --with-cc=gcc --with-fc=gfortran --with-cxx=g++' prevents usage of mpicc etc - so remove these options when using with-mpi-dir<br>
<br>
Or use:<br>
<br>
--with-cc=/usr/local/depot/openmpi-3.1.1-gcc-7.3.0/bin/mpicc etc..<br>
<br>
Satish<br>
<br>
<br>
On Mon, 7 Jan 2019, Sal Am via petsc-users wrote:<br>
<br>
> Added the log file.<br>
> <br>
> >From OpenMPI:<br>
> <br>
> > The only special configuration that you need to build PETSc is to ensure<br>
> > that Open MPI's wrapper compilers (i.e., mpicc and mpif77) are in your<br>
> > $PATH before running the PETSc configure.py script.<br>
> ><br>
> > PETSc should then automatically find Open MPI's wrapper compilers and<br>
> > correctly build itself using Open MPI.<br>
> ><br>
> The OpenMPI dir is on my PATH which contain mpicc and mpif77.<br>
> <br>
> This is on a HPC, if that matters.<br>
> <br>
<br>
</blockquote></div>