Hi Lucas,
according to the logfile the problem is:
configure:4194: checking for mpi.h
configure:4207: mpic++ -c -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/hdf5/mpich
conftest.cpp >&5
In file included from /usr/include/mpich/mpi.h:2231:0,
from conftest.cpp:11:
/usr/include/mpich/mpicxx.h:21:4: error: #error 'Please use the same version
of GCC and g++ for compiling MPICH and user MPI programs'
So can you please redo the test with the version of mpich that is compiled
with gcc6?
Thorsten