Preparing GCC Build: Difference between revisions

Rework introduction to have less redundancy
[unchecked revision][unchecked revision]
(Update Linux notes and split out Gentoo)
(Rework introduction to have less redundancy)
Line 1:
<noinclude>'''Note that this article is meant to be included into the [[GCC Cross-Compiler]] and [[Building GCC]] as they share this common section.'''</noinclude>
 
The GNU Compiler Collection is an advanced piece of software with dependencies. You need tothe installfollowing certainthe dependenciesfollowing in order to build gcc. You need to install GNU make, GNU bison, flex, and of course an existing system compiler you wish to replace. In addition, you also ''need'' the packages GNU GMP, GNU MPFR, and MPC that are used by GCC for floating point support.:
 
* A Unix-like environment (Windows users can use the Windows Subsystem for Linux or Cygwin)
You need a host system with a working GCC installation, and enough memory as well as hard drive space. How much qualifies as "enough" is depending on the versions of the software involved, but GCC is a big piece of software, so don't be surprised when 256 MiB is not sufficient.
* Enough memory and hard disk space (it depends, 256 MiB will not be enough).
 
* GCC (existing release you wish to replace), or another system C compiler
In short you need the following that you can install manually or through package management:
* G++ (if building a version of GCC >= 4.8.0), or another system C++ compiler
* A Unix-like environment (Windows users)
* GNU Make
* GCC (existing release you wish to replace)
* GNU Bison
* G++ (if building a version of GCC >= 4.8.0)
* GNU Make
* GNU Bison
* Flex
* GNU GMP
* GNU MPFR
* GNU MPC
* Texinfo
* ISL (optional)
Line 24 ⟶ 22:
|-
! &darr; Dependency / OS &rarr;
| Source CodeCodeGNU
| Debian (Ubuntu, Mint, WSL, ...)
| Gentoo
Anonymous user