From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75992 invoked by alias); 3 Apr 2018 11:36:42 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 75970 invoked by uid 89); 3 Apr 2018 11:36:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=ultimately, mkdir, our X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-lf0-f54.google.com Received: from mail-lf0-f54.google.com (HELO mail-lf0-f54.google.com) (209.85.215.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Apr 2018 11:36:39 +0000 Received: by mail-lf0-f54.google.com with SMTP id z143-v6so19677323lff.3; Tue, 03 Apr 2018 04:36:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hgeviUYalhvDrnl7UPhGQLjlMgqPddL7s2n1bW49HMw=; b=HatjKa/cY/7G4V60yyZQL8IrXkCWo8d+PaBapItTt485Nmwrkx1yYeFglHvDLGFAKu cq64xcMfPjVAqF3tRowhr9pqpzm5SoPVbbqOIf4keuFIXyyjaNmV2LPyZgH+XEcKihtt QRLwZcvOZsEA/T2NCHSZv8l4jQ5sCkS8hRTc9HLqzuy4E64i6d2XwvLr++CV+BCPHfMF SQr0oTKCVBL4dDvfAOuFdhf3onAwxAptWnEB9TWQkwtoLdSQiEJTSI8aFj1cSGPkn+1A DAm5rieaDlmtjYh+WUwkgX5SOPHCbYDq9kw6ZicmLAl3My1Dz7WGG3Ktq9DbG6vmsmEm qZTw== X-Gm-Message-State: AElRT7GM5IcBv+OnGutUIVY1NskyV+mI7CLgxunLtB8JTNpRf5vobHqK hQtzrAlhxErlLElZhhzYleyEk5hbrNzFSvuSDUA= X-Google-Smtp-Source: AIpwx48QczE7GQfpq4AEMYfDKBB2I8ryX6U4TJw2ABw0dPjuj/lYbc00rs8rkH5RKjOUgHubBaNgszl/oGPfS+tMTG0= X-Received: by 10.46.2.134 with SMTP id y6mr8130678lje.118.1522755397287; Tue, 03 Apr 2018 04:36:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.115.14 with HTTP; Tue, 3 Apr 2018 04:36:36 -0700 (PDT) In-Reply-To: References: From: Richard Biener Date: Tue, 03 Apr 2018 11:36:00 -0000 Message-ID: Subject: Re: Patching the GCC build system to build MPICH and OpenCoarrays To: Damian Rouson Cc: GCC Development , gfortran , Daniel Celis Garza , Jerry DeLisle , "Filippone, Salvatore" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00005.txt.bz2 On Sat, Mar 31, 2018 at 2:44 AM, Damian Rouson wrote: > All, > > Jerry DeLisle, Daniel Celis Garza, and I would greatly appreciate feedbac= k on our approach to patching the GCC build system to build MPICH and OpenC= oarrays after it builds gfortran (gfortran requires MPI and OpenCoarrays to= support the parallel features of Fortran 2008 and Fortran 2018). A diff o= f our work relative to the GCC trunk is at http://bit.ly/2pQuzvS. Our step= s so far include the following: > > 1. Jerry wrote an autotools build system for OpenCoarrays (on the OpenCoa= rrays issue-343-gnu-build branch.) > 2. Jerry got MPICH and OpenCoarrays tar balls onto the GCC ftp server. > 3. I modified GCC=E2=80=99s contrib/download_prerequisites script to down= load the tar balls. > 4. Daniel edited GCC=E2=80=99s Makefile.def, config.ac, and Makefile.tpl = to incorporate MPICH. > > Our current issue is that the Makefile produced as follows doesn=E2=80=99= t create the desired =E2=80=9Cmpi" directory: > > git clone -b build-mpich https://github.com/sourceryinstitute/gcc > mkdir -p gcc/build > cd gcc/build > ../configure --disable-bootstrap --enable-languages=3Dfortran > > whereupon "grep mpi Makefile=E2=80=9D only returns comments and an echo s= tatement. Ultimately, our desired sequence is to build gfortran, then buil= d MPICH, and then build OpenCoarrays. All advice is welcome. You probably only want a new target_module for the MPI library. Note it's name has to match that of the directory containing the sources which as far as I see is 'mpich', not 'libmpi'. May I ask again why mpi/opencoarrays should be built together with gfortran rather than separately? Does gfortran or any of its current target libraries link against them? Richard. > Damian > > > > > > >