That still caused the same problem. But I have resolved the issue. I removed system mpich and built a local version of openmpi. That made it work. It appears that apt-get install mpich installs default GCC-5 headers even when I made GCC-7 the default complier.
By the way, I built openmpi 4.0.0 and PETSc was not compatible with it: some API errors occurred. So I installed openmpi 1.10 which I know works with PETSc. Just want to confirm that it is indeed the case. On Mon, Dec 10, 2018 at 6:12 AM Balay, Satish <[email protected]> wrote: > > Configure Options: --configModules=PETSc.Configure > --optionsModule=config.compilerOptions --CC=mpicc --FC=mpif90 > --with-debugging=1 --download-hypre=1 --with-x=0 --PETSC_ARCH=linux-dbg > > If specifying compilers - also specify a C++ compiler. > > --CC=mpicc --FC=mpif90 --CXX=mpicxx > > Satish > > > On Sun, 9 Dec 2018, Amneet Bhalla via petsc-users wrote: > > > Hi Folks, > > > > I upgraded GCC (GCC-5 to GCC-7) on Ubuntu following the first suggestion > > given here: > > https://gist.github.com/application2000/73fd6f4bf1be6600a2cf9f56315a2d91 > > > > I then removed system mpich (which was using GCC-5) and reinstalled it > > using Ubuntu package manager. However, now I am getting the following > > configure error with PETSc > > > > > =============================================================================== > > > > TESTING: CxxMPICheck from > > config.packages.MPI(config/BuildSystem/config/packages/MPI.py:381) > > > > > > > ******************************************************************************* > > > > UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for > > details): > > > > > ------------------------------------------------------------------------------- > > > > C++ error! mpi.h could not be located at: [] > > > ******************************************************************************* > > > > > > > > I am attaching the configure.log as well. Any hints on what I should be > > doing? > > > > Thanks, > > > > -- --Amneet
