Preparing GCC Build: Difference between revisions

[unchecked revision][unchecked revision]
Line 24:
You can download the desired GCC release by visiting the [https://gnu.org/software/gcc/ GCC website] or directly accessing the [ftp://ftp.gnu.org/gnu/gcc/ GNU main FTP mirror].
 
In addition, to build GCC you need to have installed GNU GMP, GNU MPFR, GNU MPCMpc and the ISL library. You may already have these libraries and the development files installed, but this tutorial builds them as part of GCC. If you don't need this, simply don't build them as part of GCC. Note that not all GMP, MPFR and MPCMpc combinations are compatible with a given GCC release. You also need Texinfo to build Binutils.
 
You can download [http://gmplib.org/ GNU GMP from its website]. (libgmp3-dev on apt-based systems, dev-libs/gmp on Gentoo, gmp-devel on Fedora, libgmp-devel on Cygwin)
Line 34:
You can download [http://www.cloog.org/ ClooG from its website] (optional). (libcloog-isl-dev on apt-based systems, libcloog-isl-devel on Cygwin)
 
You can download [http://multiprecision.org/ GNU MPCMpc from its website]. (libmpc-dev on apt-based systems, dev-libs/mpc on Gentoo, libmpc-devel on Fedora, libmpc-devel on Cygwin)
 
You can download [https://www.gnu.org/software/texinfo/ GNU Texinfo from its website]. (texinfo on apt-based systems, texinfo on Arch Linux, sys-apps/texinfo on Gentoo, texinfo on Cygwin)
Line 40:
Download the needed source code into a suitable directory such as <tt>$HOME/src</tt>.
 
An alternative way to download GMP, MPFR and MPCMpc is to go to the top level directory of the GCC source code (i.e. gcc-x.y.z/) and type the following:<source lang="bash">contrib/download_prerequisites</source> The download_prerequisites script will run and will download GMP, MPFR and MPCMpc.
 
'''Note:''' The versioning scheme used is that each fullstop separates a full number, i.e. Binutils 2.20.0 is newer than 2.9.0. This may be confusing, if you have not encountered this (quite common) versioning scheme yet, when looking at an alphanumerically sorted list of tarballs: The file at the bottom of the list is not the latest version! An easy way of getting the latest version is to sort by the last modified date and scrolling to the bottom.
Anonymous user