From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 8D7D63856DEB; Mon, 13 Jun 2022 15:27:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8D7D63856DEB Received: by mail-wr1-x429.google.com with SMTP id x17so7595511wrg.6; Mon, 13 Jun 2022 08:27:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8mHG4WqJicf0caMiwVUmIHBc0SwGDu8voRY6Jkf/3Fs=; b=bU6waEXNerYAqXRZXWbiJDLfNEQ6Sg/DQKv9dtWxdbrxWc5f7V3Xq8yR3BpiuwrkxV jiLdPqRnhNXyisOxjfReiz65PJUo7lo98kU79H1X9qZfniSXPJqMC41UhGTwEL0h5slr Kzy7+sBt4mY0UPwfRcR7ogUOPUvgjU/kDfTRva/Ptv3gY7Yy8LPpLjRUgQtL7geB2tPz sCAvbGZHE+ZqjSzQyQTw5CP939c4+5g/OfRlLP0MQ0Mc9gSpVqk19Px6jfn/WxnZ9KEX IWENaDNkFyZkzjlbJjqHd4qlQjlTSsqeEp3PNhi95qKFlC4GGguID26pxM1e0j+B3+Lg 5Yhg== X-Gm-Message-State: AJIora8hxMiIQqzihl+6bxhClgV+oR0naHiL80lg9Yy4N15709bJfKkY BsdOeU9Zng0bOjCwgZhlh4kTvQma3yqYKNOJMBc= X-Google-Smtp-Source: AGRyM1vdDTA3kbHkfiG8elGQt4o5KoyjGA6eyAMz5ZU1v1CVzx9zgw/D0dgROHu14EwxmJX9/Rm9lM1V8u3OhSXcaSE= X-Received: by 2002:a5d:6d0f:0:b0:213:7ef4:e30a with SMTP id e15-20020a5d6d0f000000b002137ef4e30amr388987wrq.544.1655134030598; Mon, 13 Jun 2022 08:27:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Mon, 13 Jun 2022 16:26:59 +0100 Message-ID: Subject: Re: GSoC Blog Post 0 - GCCprefab build system To: Wileam Yonatan Phan Cc: "gcc@gcc.gnu.org" , "fortran@gcc.gnu.org List" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2022 15:27:14 -0000 On Mon, 13 Jun 2022 at 14:34, Wileam Yonatan Phan wrote: > > Hi Jonathan, > > Thanks for the feedback. Regarding the linked page < > https://gcc.gnu.org/wiki/InstallingGCC> > if you're referring to the part that tells you to use your distro's package > manager, yes that's indeed the simplest way to install GCC, but from pre-built > binaries, not building directly from sources. But if you're referring to the > example at the bottom of the page, Yes, that's what I mean. > this script does exactly that, but the build > process is automated based on the build configuration file. Yes, it does that, but takes 400 lines of shell script to do so. If you want "relatively easy ways to build GCC painlessly" then you can do it with nine lines of shell commands. Or in about 80, for any non-prehistoric version, with no config file needed (just a single option to the script, the release number or snapshot name to build): https://gist.github.com/jwakely/95b3a790157f55d75e18f577e12b50d7#file-build_gcc_versions-sh My point is just that there are already easier ways to do it, not only by using spack or the OpenCoarrays build script. N.B. your https://github.com/wyphan/gccprefab/blob/main/gcc12.cfg config file says "Latest GCC 12 Release" but actually builds from the tip of the branch, not a release.