#34370: fftw-3 fails to build with mpich2 --------------------------------------+------------------------------------- Reporter: ryusuke.numata@… | Owner: eborisch@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: mpich2 fftw-3 --------------------------------------+------------------------------------- Comment(by eborisch@…): In general, mpich2 is configured/built to use a particular compiler (mpicc and mpicxx are wrappers around the desired compiler) ... other compilers may be used so long as the requirements listed [http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_Do_I_... here] are met. Other compilers (meeting these requirements) to be wrapped can be specified for mpicc and mpicxx by setting the environment variables MPICH_CC and MPICH_CXX, respectively. (MPICH_F90 as well for mpif90) I'm not going to change MPICH2 to 'respect' CC, as for many MPI project builds, CC=mpicc. This discusion is also relevant: [http://lists.macosforge.org/pipermail /macports-dev/2012-August/020012.html] If mpich2 is built +gcc45, and fftw's +gcc45 variant meant "please use gcc-mp-45 for all your compilation needs" and not "just for fortran", the build would succeed (I believe) as the flags would be gcc45 "appropriate." -- Ticket URL: <https://trac.macports.org/ticket/34370#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS