Discussion:
Time taken by GCC 4.9.1 to compile
Syed Ahsan Ali Bokhari
2014-08-06 05:49:41 UTC
Permalink
I wonder how much time it takes to compile gcc-4.9.1. After "make" 2
hours have been passed and still build underway.

Ahsan
Syed Ahsan Ali Bokhari
2014-08-06 08:19:17 UTC
Permalink
Thanks Raghunath

I have not used any option with configure. I guess I should also try
parallel build.


On Wed, Aug 6, 2014 at 1:14 PM, Raghunath Lolur
It depends on what options you used in configuring GCC.
To speed up the build process, you can make use of parallel execution of
make -j <N> , where N is the number of parallel jobs, determined by the
number of CPU cores available in your system.
To determine the number of CPU cores in your system, read
http://www.cyberciti.biz/faq/linux-get-number-of-cpus-core-command/
Also, read https://gcc.gnu.org/install/ - for more info on building GCC from
source.
Regards,
Raghunath Lolur.
On Wed, Aug 6, 2014 at 11:19 AM, Syed Ahsan Ali Bokhari
Post by Syed Ahsan Ali Bokhari
I wonder how much time it takes to compile gcc-4.9.1. After "make" 2
hours have been passed and still build underway.
Ahsan
--
Syed Ahsan Ali Bokhari
Electronic Engineer
Research & Development Division
Pakistan Meteorological Department H-8/2, Islamabad.
Phone # off +92519250361
Cell # +923155145014
Fax # +92519250368
www.pmd.gov.pk
Raghu L
2014-08-06 08:22:20 UTC
Permalink
  I wonder how much time it takes to compile gcc-4.9.1. After "make" 2
    hours have been passed and still build underway.
    Ahsan
It depends on what options you used in configuring GCC.

To speed up the build process, you can make use of parallel execution of make utility with the following command:

make -j <N> , where  N is the number of parallel jobs, determined by the number of CPU cores available in your system.

To determine the number of CPU cores in your system, read http://www.cyberciti.biz/faq/linux-get-number-of-cpus-core-command/

Also, read https://gcc.gnu.org/install/ - for more info on building GCC from source.

Regards,
Raghunath Lolur.
Jeff Law
2014-08-06 15:31:58 UTC
Permalink
Post by Syed Ahsan Ali Bokhari
I wonder how much time it takes to compile gcc-4.9.1. After "make" 2
hours have been passed and still build underway.
It's highly dependent on your processor's speed and how many processors
you have.

I've got one system here where it takes about a week (no testsuite). On
the systems where I typically do builds it's a couple hours (testsuite
included). I'd bet on David M.'s box it's probably less than 30 minutes ;)

Certainly if you have a multi-processor using the "-j #cpus" option to
make will speed things up considerably.

jeff
Tim Prince
2014-08-06 16:04:53 UTC
Permalink
Post by Jeff Law
Post by Syed Ahsan Ali Bokhari
I wonder how much time it takes to compile gcc-4.9.1. After "make" 2
hours have been passed and still build underway.
It's highly dependent on your processor's speed and how many
processors you have.
I've got one system here where it takes about a week (no testsuite).
On the systems where I typically do builds it's a couple hours
(testsuite included). I'd bet on David M.'s box it's probably less
than 30 minutes ;)
Certainly if you have a multi-processor using the "-j #cpus" option to
make will speed things up considerably.
jeff
Nearly 4 hours to build C Fortran C++ on my Win8.1 4-core laptop. (with
"prerequisites" pre-installed). That's the worse case I encounter
routinely.
8 hours to run testsuite, with each language started in an independent
session. There are still occasional spurious time-outs and early
aborts. Attempting to run testsuite on faster Windows boxes is
counter-productive due to Windows holding files busy.
An obsolete linux box here will build and test in well under 2 hours.
Continue reading on narkive:
Loading...