Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
When will gcc 3.3 and NPTL on PPC will be stable
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
petter_r
n00b
n00b


Joined: 30 Mar 2004
Posts: 26

PostPosted: Thu May 27, 2004 9:09 am    Post subject: When will gcc 3.3 and NPTL on PPC will be stable Reply with quote

Hi Gentoo PPC fellows!

Im very impressed by the power of Gentoo on my Powerbook, but there is one big caveeat. Big Java applications are a bit slow compared to other plattforms. I have heard many good things about performance improvements with NPTL. I have seen several posts here saying that you can implement NPTL by going to ~ppc, but i do not want to this on my production machine. So my question is when will we get an stable gcc 3.3 and NPTL glibc?

Thanks in advance for any information.

Greetings from Austria

Ralf
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Thu May 27, 2004 12:33 pm    Post subject: Reply with quote

Hi,

if you realy want to use gcc 3.3.3 then you could add it to your /etc/portage/package.keywords. This isn't to bad.

This would be something like this.

Code:

=sys-devel/gcc-3.3.3-r5 -*


But if I remember correctly you can use preveous versions of gcc for nptl, too. (But I really don't know if I'm correct...) I use nptl with my x86 and gcc in version 3.3.2-r5 and I have no problems.

Markus
Back to top
View user's profile Send private message
petter_r
n00b
n00b


Joined: 30 Mar 2004
Posts: 26

PostPosted: Thu May 27, 2004 1:43 pm    Post subject: Reply with quote

Not on ppc. i can not compile glibc with ntpl enabled. It gives me a compile error. And NPTL support is masked in the profile with the description "there is no stable gcc 3.3.x on ppc". So from there comes my question. Maybe a ppc developer can give me a hint?

Thanx in advance.
Back to top
View user's profile Send private message
pvdabeel
Retired Dev
Retired Dev


Joined: 25 Mar 2003
Posts: 188
Location: Belgium

PostPosted: Mon May 31, 2004 1:19 am    Post subject: Reply with quote

petter_r wrote:
Not on ppc. i can not compile glibc with ntpl enabled. It gives me a compile error. And NPTL support is masked in the profile with the description "there is no stable gcc 3.3.x on ppc". So from there comes my question. Maybe a ppc developer can give me a hint?

Thanx in advance.


It's stable if you bootstrap with gcc-3.3.3_pre20040408-r1 and glibc-20040420-r1. use scripts/bootstrap-2.6.sh, unmask linux-headers-2.6.5 and remove the nptl stuff from the profile, add nptl to the two USE flag listings in the profile make.default.

Also, remove mac-fdisk and sash from packages and packages.build.

A fix for Mac-fdisk + 2.6 headers is in the works.

Note that this gcc-3.3.3 also allows for -mcpu=970 or -mcpu=G5

Don't forget to use -fno-strict-aliasing in your CFLAGS.
Back to top
View user's profile Send private message
petter_r
n00b
n00b


Joined: 30 Mar 2004
Posts: 26

PostPosted: Tue Jun 01, 2004 5:56 am    Post subject: Reply with quote

Thanks for the answer, i will see if i can get it to work.

Ralf
Back to top
View user's profile Send private message
protosub
n00b
n00b


Joined: 24 Jun 2004
Posts: 14
Location: England

PostPosted: Sat Jun 26, 2004 5:52 pm    Post subject: Reply with quote

Quote:
Thanks for the answer, i will see if i can get it to work.

Ralf


Well um I suppose hey all, since this is my first post on the Gentoo forums :D Im sure you will be seeing a lot more posts from me in the future.

Anyway I did have a reason for posting...

So Ralf did you have any luck? I would really like to here about your experiences getting nptl up and running. Also I would just like to ask pvdabeel if people wanting to use nptl should still use gcc-3.3.3_pre20040408-r1, glibc-20040420-r1 and linux-headers-2.6.5 or maybe something released since that post was well, posted. Is the mac-fdisk problem fixed? Also, why is -fno-strict-aliasing needed? What does it do? I did try googling this but didnt have much luck :(

I am pretty new to all this stuff but have plently of time on my hands at the moment to learn. I have been reading lots about NTPL and the performance increases that can be obtained by using it over linuxthreads.

Thanks for taking the time to read this
_________________
<insert witty sig here>
Back to top
View user's profile Send private message
bruda
Guru
Guru


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

PostPosted: Sat Jun 26, 2004 6:42 pm    Post subject: Reply with quote

Hi.

pvdabeel wrote:

It's stable if you bootstrap with gcc-3.3.3_pre20040408-r1 and glibc-20040420-r1.


I am running gcc 3.3.3 20040412 (Gentoo Linux 3.3.3-r5, ssp-3.3-7, pie-8.7.5.3), will it do? After all, this is a newer version.

Quote:
use scripts/bootstrap-2.6.sh, unmask linux-headers-2.6.5 and remove the nptl stuff from the profile, add nptl to the two USE flag listings in the profile make.default.


How about an upgrade from an existing installation (linux-headers-2.4)? It is understood that I will have ot rebuild glibc, but from what I know from the way things work in Linux I would assume in a hurry that rebuilding glibc will be enough--am I correct?

Thanks.

P.S. For what is worth, I succeeded in compiling sash on my G5 using a slightly older version of linux-headers (2.6.1 I believe) and gcc 3.4, though it does fail with linux-headers-2.6.4 and above. I have yet to try all of this on my Powerbook, but problem is this one has a full Gentoo distribution on it so I do not want to start from scratch.
_________________
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