From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id CE080386CE48; Tue, 14 Jun 2022 08:53:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CE080386CE48 Received: by mail-wr1-x431.google.com with SMTP id o8so10277231wro.3; Tue, 14 Jun 2022 01:53:43 -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:content-transfer-encoding; bh=QayRXy0251cxUVqCk18VAB+037oysQ3IBkECC65IvEs=; b=Lx0jUNEjmO27nctQPMExcC0mbdJ+ncp4HuDa2/yE0g8+w24QHt2f6KTTNfj6IFiO2e OzZhvq+vXBK7cmfqv0oI1GnMy2poILpOM6lSYvv0Ml4ZqUCwyve4L4CJSP+08mWaHTog BXgReog9cGa2lUNljwfA5oRpx8PkIVbYkzlXXjhJSbGm3scuzGSP/p84CeG+Nu6/F08x dVeEjAGBhSys/HVhUQhWUHjQ0RoWdjA/h7XEzgLNq/tqtJOn1P8s9XIw2Ztaunke4s3x n810i1cq05DHZLGxETRZ4cphVlt8enY4sY6+/9Rrg8BaVsrTqB614wLQht9ICe08motd nQoA== X-Gm-Message-State: AJIora+fHpKQYjYlMy+S2O2xJxEk9Se/ax9Ccqe1AU543ibxCjVbRw9K K7gBVdX66MKU9sWLzHeGpzOv3QyVjLCkHCw5G8s= X-Google-Smtp-Source: AGRyM1uo/pz3DTL5N+RddTlfgpr4RW/z2LLNVgqsBdtvT9gHzGHyAFlbqO3uLMu4ZEKLOeE8HWU148HeBhRXQ0T4SLY= X-Received: by 2002:a05:6000:1812:b0:210:2eb1:4606 with SMTP id m18-20020a056000181200b002102eb14606mr3872660wrh.593.1655196822266; Tue, 14 Jun 2022 01:53:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Tue, 14 Jun 2022 09:53:31 +0100 Message-ID: Subject: Re: GSoC Blog Post 0 - GCCprefab build system To: Damian Rouson Cc: Wileam Yonatan Phan , "gcc@gcc.gnu.org" , "fortran@gcc.gnu.org List" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.7 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: Tue, 14 Jun 2022 08:53:45 -0000 On Tue, 14 Jun 2022 at 01:37, Damian Rouson wrote: > > > > On Mon, Jun 13, 2022 at 8:27 AM Jonathan Wakely via Fortran wrote: >> >> >> 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-bu= ild_gcc_versions-sh > > > Do the above 9 lines or 80 lines include the entire prerequisite software= stack or just the ones that the download_prerequisites script downloads? = If I recall correctly, building gfortran also requires flex and building fl= ex requires bison and building bison requires m4 and the download_prerequis= ites script didn't download any of those the last time I checked. It doesn't include them, but they are standard system packages that everybody can install without downloading the sources and building them from scratch. There are no run-time dependencies on flex and bison, just build-time. GMP, MPFR and MPC regularly cause problems for people doing it the wrong way and ending up with run-time dependencies on shared libs in non-standard locations (as described in the InstallingGCC wiki page). You still need to have the other prerequisites listed at https://gcc.gnu.org/install/prerequisites.html