Tuesday, April 6, 2010

Building GCC 4.5 - New Record Time Before Failing

So today, I checked on my previous blogs to find some information and low and behold ehren a student at Seneca provided me some insight to my problem.

He also faced a similar problem with one of the other cdot machines (Australia). So what he did was try it on another cdot machine (ireland) and it worked just fine. He advised me to give that a go, also try using the option --disable-multilib.

I went to the gcc installation website to see what that does, and here it is

--disable-multilib
Specify that multiple target libraries to support different target variants, calling conventions, etc. should not be built. The default is to build a predefined set of them.
So, I jumped onto ireland, and downloaded the trunk again.

So instead of just using the regular ./configure command, I added the following option as well and the syntax now looks like

./configure --disable-multilib


So far it ran past the stage it would usually fail on India. About 1 and 1/2 hour later it finally failed ending with the following prompt.

Ehren suggested I try to do a make install and see what happens here is the result.

With more communication with ehren, I decided to follow more of his advice. Here is a snippet of our conversation


22:04 what you mean i didn't use the --prefix?
22:05 sorry i meant to start with hey
22:05 this is my syntax ./configure --disable-multilib
ehren - 22:05 you can specify the install directory by going ../configure
--prefix=/home/blah/gcc/dist
ehren - 22:06 then gcc and g++ etc will be located in
/home/blah/gcc/dist/bin/gcc
ehren - 22:06 or g++ etc
22:07 oh..so the line would look like ./configure
--prefix=/home/blah/gcc/dist --disable-multilib?
ehren - 22:07 yup
22:07 haha..thanks, let me give that a go
ehren - 22:07 to speed things up you can use --disable-bootstrap as well
22:08 yeah, i had that. That skips stage 2 and 3 right?
ehren - 22:08 yeah. as I understand it, with bootstrap on gcc first builds a
barebones compiler and then uses that to compile the rest of
itself
22:09 thats neat
ehren - 22:10 yeah... I think it's only needed if you're starting with an
old/crappy compiler
22:10 ok


So the new syntax I would try now is

./configure --prefix=/home/bchao/gcc/dist --disable-multilib

Will provide more update on this build progress later.

0 comments:

Post a Comment