Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
extremly slow compilation of glibc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
glurps
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 292

PostPosted: Sun Apr 24, 2005 7:06 pm    Post subject: extremly slow compilation of glibc Reply with quote

i have noticed that compiling glibc takes an enormous amount of time on my g4 powerbook compared to what i have experienced with x86. i would guess about 4 to 5 times as long.

during compilation i got warnings all over about the "altivec" option not being used. for other packages including gcc is did not get any such warnings.

so my questions are:
- is this warning anything to worry about
- is it normal for glibc to take so much more time on ppc than on x86
Back to top
View user's profile Send private message
quatsch
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2005
Posts: 104
Location: New York, NY

PostPosted: Sun Apr 24, 2005 11:41 pm    Post subject: Reply with quote

I think you're right about glibc taking a loooong time. I just installed gentoo for the first time on my 1.33GHz powerbook and compiling glibc seems to take as much or even more time than on my old 1.1GHz Celeron (Coppermine) which in general is a much slower thing than my powerbook. Don't know if anything is wrong, though :?
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon Apr 25, 2005 8:36 am    Post subject: Reply with quote

Quote:
during compilation i got warnings all over about the "altivec" option not being used


g4 suports it ;) Take a look to the stable gcc flags in gentoo-wiki.
Glibc takes quite long because its compiled twice for nptl and linux-therads support; nptlonly USE flag will make it compile just for nptl but will brake backward compatibility.

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
glurps
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 292

PostPosted: Mon Apr 25, 2005 10:18 am    Post subject: Reply with quote

gringo wrote:
Quote:
during compilation i got warnings all over about the "altivec" option not being used


g4 suports it ;) Take a look to the stable gcc flags in gentoo-wiki.
Glibc takes quite long because its compiled twice for nptl and linux-therads support; nptlonly USE flag will make it compile just for nptl but will brake backward compatibility.

cheers


i used what was suggested at http://www.freehackers.org/gentoo/gccflags/flag_gcc3.html

Code:
CFLAGS="-mcpu=7400 -O2 -pipe -maltivec -mabi=altivec -mpowerpc-gfxopt"
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon Apr 25, 2005 10:27 am    Post subject: Reply with quote

and did you add altivec to your USES ?

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
glurps
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 292

PostPosted: Mon Apr 25, 2005 10:49 am    Post subject: Reply with quote

gringo wrote:
and did you add altivec to your USES ?


yes.

for the future i will look into nptl and linux-therads to see if i need both or not.
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Mon Apr 25, 2005 2:11 pm    Post subject: Reply with quote

There is definitely something that is not right. On my Tibook (667Hz at the time) the last glibc build lasted for three hours, which compares quite favourably with the 2:30 it took for the same thing to build on a 1.8GHz P4 IBM machine. I have on both machines the nptl and nptlonly flags enabled and there are not many differences in the two installations. Note that you effectively get the package compiled twice without nptlonly, so you may want to look into this one for quite a boost in build time if you did not do it already.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum