On Tue, 14 Jun 2022 at 01:37, Damian Rouson wrote:
>
>
>
> On Mon, Jun 13, 2022 at 8:27 AM Jonathan Wakely via Fortran 
> <fortran@gcc.gnu.org> 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-build_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 flex 
> requires bison and building bison requires m4 and the download_prerequisites 
> 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

Reply via email to