This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How long gcc builds on Linux?
- From: Paul Smith <paul at mad-scientist dot net>
- To: Martin Sebor <msebor at gmail dot com>, Jonathan Wakely <jwakely dot gcc at gmail dot com>, Федор Стрижнев <fedor_qd at mail dot ru>
- Cc: gcc-help at gnu dot org
- Date: Thu, 13 Oct 2016 16:28:21 -0400
- Subject: Re: How long gcc builds on Linux?
- Authentication-results: sourceware.org; auth=none
- References: <hVbYsZbtVQJB.fHVBr6d4@smtp.mail.ru> <CAH6eHdS3p+9fjHDye4um8cr7Ae9Ed5-YBjFK=1McAG3n=s_Bdw@mail.gmail.com> <d8747324-6545-c214-c4a3-079f40385494@gmail.com>
- Reply-to: paul at mad-scientist dot net
On Thu, 2016-10-13 at 14:18 -0600, Martin Sebor wrote:
> On 10/13/2016 05:33 AM, Jonathan Wakely wrote:
> >
> > On 13 October 2016 at 11:23, <fedor_qd@mail.ru> wrote:
> > >
> > > I build crosscompiler for arm on windows. Compiler builded and
> > > run on windows and produce code for arm. GCC build takes several
> > > hours, binutils build near 10 mins on my pc. It normal that build
> > > takes so many time? My hardware - athlon IIx3 2.9GHz, 8 gb ram. I
> > > build gcc started 5.1 till 6.2.
> >
> > Yes, GCC takes much, much longer to build than binutils.
> >
> > Do 'make -j 2' to speed it up by running two jobs in parallel (or
> > replace 4 with a higher number depending on how many cores you
> > have).
>
> I can build a cross-compiler on Linux (Binutils and GCC only, not
> sysroot) in a few minutes on my laptop running Fedora 23. I have
> a Core i7 processor with 4 cores and use -j8.
The other thing to be sure of is that you're only building the front-
ends you need. If you only need a C compiler and not C++, FORTRAN, Go,
etc. then configure with --enable-languages=c.