[MacPorts] #55917: mpich-gcc7 complains about g++ version mismatch
MacPorts
noreply at macports.org
Thu Mar 1 01:23:28 UTC 2018
#55917: mpich-gcc7 complains about g++ version mismatch
--------------------------+-------------------------
Reporter: astroboylrx | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: | Keywords: mpich, gcc7
Port: mpich-gcc7 |
--------------------------+-------------------------
Comment (by astroboylrx):
I built mpich-3.2.1 from source with gcc 7.3, which prevents the error. I
noticed the relevant code in mpicxx.h becomes
{{{
15 // Check for incompatible GCC versions
16 // GCC (specifically) g++ changed the calling convention
17 // between 3.2.3 and 3.4.3 (!!) Normally such changes
18 // should only occur at major releases (e.g., version 3 to 4)
19 #ifdef __GNUC__
20 # if __GNUC__ >= 7
21 # if __GNUC_MINOR__ > 2 && 3 == 2
22 # error 'Please use the same version of GCC and g++ for
compiling MPICH and user MPI programs'
23 # endif
24 # endif
25 #endif
}}}
Hope this helps a little bit.
--
Ticket URL: <https://trac.macports.org/ticket/55917#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list