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: fedor_qd at mail dot ru
- Cc: gcc-help at gnu dot org
- Date: Fri, 14 Oct 2016 08:56:51 -0400
- Subject: Re: How long gcc builds on Linux?
- Authentication-results: sourceware.org; auth=none
- References: <ZH0PtGwkK3Ph.FgpJYVLm@smtp.mail.ru>
- Reply-to: paul at mad-scientist dot net
On Fri, 2016-10-14 at 07:39 +0300, fedor_qd@mail.ru wrote:
> > > 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.
It's worked fine for me for a number of releases now, since at least GCC
4.9 for sure. But I'm building on GNU/Linux not Windows.
> > 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?
Fedora is a separate GNU/Linux distribution, based on the Red Hat
package ecosystem (rpm, yum, etc.) You don't use "apt" commands on
Fedora; apt commands are used in Debian and Debian-derived distributions
(like Ubuntu, etc.)