Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New portage and gcc "break" my CFLAGS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Thu Feb 27, 2003 4:39 pm    Post subject: New portage and gcc "break" my CFLAGS Reply with quote

so I emerge the latest GCC and the latest portage and build them on my system. I updated from gcc3.2.2-r6 to gcc3.2.2 and portage up to whatever most recent is from whatever I had yesterday (they seem to change it multiple times a day). Portage then makes a new /etc file, /etc/._cfg0000_make.conf. In theory this is supposed to be a replacement for my current make.conf. I look through the new make.conf before deciding whether to replace my old one with it, and find the following in the CFLAGS section of /etc/._cfg0000_make.conf:

Code:


# CPU types supported in gcc-3.2 and higher: athlon-xp, athlon-mp,
# athlon-tbird, athlon, k6, k6-2, k6-3, i386, i486, i586 (Pentium), i686
# (PentiumPro), pentium, pentium-mmx, pentiumpro, pentium2 (Celeron), pentium3.
# Note that Gentoo Linux 1.4 and higher include at least gcc-3.2.
# ATHLON-4 will generate invalid SSE instructions; use 'athlon' instead.
# PENTIUM4 will generate invalid instructions; use 'pentium3' instead.


Read the part about Pentium 4 again.

Howcome gcc 3.2.1 makes Pentium 4 code just fine, and didn't have the warning; but gcc 3.2.2 does? What changed between gcc 3.2.1 and gcc 3.2.2? Why was gcc 3.2.2 released into stable portage if if generates invalid instructions for Pentium 4 chips? I have a pentium 4 chip and want my pentium 4 optimizations. Is that too much to ask? I'm right now sitting tight on emerging anything else with the new gcc until after this issue gets sorted out. I appreciate any further enlightenment anyone can give me.
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Thu Feb 27, 2003 4:42 pm    Post subject: Reply with quote

Seems more of a gcc issue than portage.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Thu Feb 27, 2003 5:27 pm    Post subject: Reply with quote

I didn't notice it until after I emerge portage...that's when the new make.conf file was installed. I agree that it's probably a gcc issue instead. I want to know what the status of it is though.
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
FireFlash
n00b
n00b


Joined: 20 Feb 2003
Posts: 8
Location: O0o [NL] o0O

PostPosted: Thu Feb 27, 2003 8:15 pm    Post subject: Reply with quote

Same problem here... KDE won't compile with Pentium 4 optimizations under GCC 3.2.2 .... bah :evil:
Back to top
View user's profile Send private message
Heretic
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2002
Posts: 114
Location: Austin, TX USA

PostPosted: Thu Mar 20, 2003 9:58 am    Post subject: Re: New portage and gcc "break" my CFLAGS Reply with quote

rajl wrote:
I have a pentium 4 chip and want my pentium 4 optimizations. Is that too much to ask?


I'm in the same situation. Check out https://forums.gentoo.org/viewtopic.php?t=39202&highlight=gcc+pentium4 You can check your system. It may be that GCC 3.2.x has this problem and that it was just noticed so they put it in the make.conf. If you haven't compiled python with the new GCC, try

Code:
python -c 'int(10000.3);'


And see if it errors. If it does and you compiled it with 3.2.1 then it's not a new problem. GCC needs a patch apparently.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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