This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Patching the GCC build system to build MPICH and OpenCoarrays
- From: Damian Rouson <damian at sourceryinstitute dot org>
- To: GCC Development <gcc at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Cc: Daniel Celis Garza <daniel dot celisgarza at hmc dot ox dot ac dot uk>, Jerry DeLisle <jvdelisle at charter dot net>, Filippone, Salvatore <salvatore dot filippone at cranfield dot ac dot uk>
- Date: Fri, 30 Mar 2018 17:44:37 -0700
- Subject: Patching the GCC build system to build MPICH and OpenCoarrays
All,
Jerry DeLisle, Daniel Celis Garza, and I would greatly appreciate feedback on our approach to patching the GCC build system to build MPICH and OpenCoarrays after it builds gfortran (gfortran requires MPI and OpenCoarrays to support the parallel features of Fortran 2008 and Fortran 2018). A diff of our work relative to the GCC trunk is at http://bit.ly/2pQuzvS. Our steps so far include the following:
1. Jerry wrote an autotools build system for OpenCoarrays (on the OpenCoarrays issue-343-gnu-build branch.)
2. Jerry got MPICH and OpenCoarrays tar balls onto the GCC ftp server.
3. I modified GCC’s contrib/download_prerequisites script to download the tar balls.
4. Daniel edited GCC’s Makefile.def, config.ac, and Makefile.tpl to incorporate MPICH.
Our current issue is that the Makefile produced as follows doesn’t create the desired “mpi" directory:
git clone -b build-mpich https://github.com/sourceryinstitute/gcc
mkdir -p gcc/build
cd gcc/build
../configure --disable-bootstrap --enable-languages=fortran
whereupon "grep mpi Makefile” only returns comments and an echo statement. Ultimately, our desired sequence is to build gfortran, then build MPICH, and then build OpenCoarrays. All advice is welcome.
Damian