You need to remove $PETSC_ARCH completely and rerun configure Barry
> On Nov 1, 2015, at 3:38 PM, Tabrez Ali <[email protected]> wrote: > > Hello > > I am getting the following error while compiling petsc-dev (just did git pull > today, after a few weeks). The configure and make logs are attached. > > In file included from /home/stali/petsc-dev/include/petscsys.h:120:0, > from > /home/stali/petsc-dev/src/dm/impls/plex/ftn-auto/plexdistributef.c:1: > /home/stali/petsc-dev/src/dm/impls/plex/ftn-auto/plexdistributef.c: In > function ‘dmplexdistributedata_’: > /home/stali/petsc-dev/src/dm/impls/plex/ftn-auto/plexdistributef.c:172:15: > error: invalid type argument of unary ‘*’ (have ‘MPI_Datatype’) > MPI_Type_f2c(*(datatype)),originalData, > ^ > /opt/mpich3/include/mpi.h:683:47: note: in definition of macro ‘MPI_Type_f2c’ > #define MPI_Type_f2c(datatype) (MPI_Datatype)(datatype) > ^ > gmakefile:161: recipe for target > 'arch-linux2-c-opt/obj/src/dm/impls/plex/ftn-auto/plexdistributef.o' failed > make[2]: *** > [arch-linux2-c-opt/obj/src/dm/impls/plex/ftn-auto/plexdistributef.o] Error 1 > make[2]: *** Waiting for unfinished jobs.... > CC arch-linux2-c-opt/obj/src/dm/impls/plex/plexnatural.o > CC arch-linux2-c-opt/obj/src/dm/impls/plex/ftn-auto/plexgmshf.o > CC arch-linux2-c-opt/obj/src/dm/impls/plex/plexrefine.o > make[2]: Leaving directory '/home/stali/petsc-dev' > /home/stali/petsc-dev/lib/petsc/conf/rules:105: recipe for target 'gnumake' > failed > make[1]: *** [gnumake] Error 2 > make[1]: Leaving directory '/home/stali/petsc-dev' > > Tabrez > > <configure.log.gz><make.log.gz>
