id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,port 55917,mpich-gcc7 complains about g++ version mismatch,astroboylrx,eborisch,"I installed gcc7 @7.3.0_0 (active) and mpich-gcc7 @3.2.1_3+fortran (active) on my Mac. When I tried to compile an MPI program, an error was returned: {{{ /opt/local/include/mpich-gcc7/mpicxx.h:22:4: error: #error 'Please use the same version of GCC and g++ for compiling MPICH and user MPI programs' # error 'Please use the same version of GCC and g++ for compiling MPICH and user MPI programs' }}} So I took a look in mpicxx.h, and found {{{ // Check for incompatible GCC versions // GCC (specifically) g++ changed the calling convention // between 3.2.3 and 3.4.3 (!!) Normally such changes // should only occur at major releases (e.g., version 3 to 4) #ifdef __GNUC__ # if __GNUC__ >= 7 # if __GNUC_MINOR__ > 2 && 2 == 2 # error 'Please use the same version of GCC and g++ for compiling MPICH and user MPI programs' # endif # endif #endif }}} It looks like a version mismatch of gcc 7.3 with the packaged mpich-gcc7. ",defect,closed,Normal,,ports,2.4.2,fixed,,seanfarley,mpich-gcc7