[MacPorts] #55917: mpich-gcc7 complains about g++ version mismatch
MacPorts
noreply at macports.org
Thu Mar 1 00:26:21 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
Keywords: mpich, gcc7 | Port: mpich-gcc7
-------------------------+------------------------
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.
--
Ticket URL: <https://trac.macports.org/ticket/55917>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list