GCC 5.4.0

This guide assumes you are switched to su - . Please note that during the make step you may run into issues check the missing aclocal-1.15 section , this guide assumes you are using the eSG provided installation image.

Goal

Build GCC 5.4.0

Steps

Building Pre requisites

Library Prerequisites

EXPORTS used to set versions

You can change the values here to change the compiled version.

Fetch MPC

Fetch MPFR

Fetch GMP

Fetch ISL

Fetch CLOOG

Fetch GCC

Copy downloaded libraries in GCC directory

Hardcoded autoconf

Since autoconf is hardcoded you need to update to your own version Find your version using: example: autoconf-2.69-11.el7.noarch, thus you have version 2.69 .

Find the following line in and change the version to your own

missing aclocal-1.15

Since your version of aclocal may be different you should autoreconf using:

Configure GCC

Make GCC

Warning: This process will take quite a few hours, make sure the build is started in a multiplexer (eg tmux)

Install GCC

This will install GCC in the path you set in configure with --prefix=