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: fedor_qd at mail dot ru
- To: paul at mad-scientist dot net
- Cc: Martin Sebor <msebor at gmail dot com>, Jonathan Wakely <jwakely dot gcc at gmail dot com>, gcc-help at gnu dot org
- Date: Fri, 14 Oct 2016 07:39:35 +0300
- Subject: RE: How long gcc builds on Linux?
- Authentication-results: sourceware.org; auth=none
- Authentication-results: smtp4.mail.ru; auth=pass smtp.auth=fedor_qd at mail dot ru smtp.mailfrom=fedor_qd at mail dot ru
- Reply-to: fedor_qd at mail dot ru
Thanks for answers.
Always yours, Fiodar Stryzniou
исходное сбщ
Тема: Re: How long gcc builds on Linux?
От: Paul Smith <paul@mad-scientist.net>
Дата: 13.10.2016 23.43
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).
make -j"n cores" was cause gcc build fail to me some time ago.
>
> 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.
Is some tricks for build on Fedora or apt-get-install will be suffice?
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.
I already use this options.