Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CFLAG="-march=pentium4" still no good on 1.4 ?
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
no2bl
n00b
n00b


Joined: 26 Oct 2002
Posts: 10

PostPosted: Thu Mar 06, 2003 8:33 am    Post subject: CFLAG="-march=pentium4" still no good on 1.4 ? Reply with quote

Code:

# 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.


I found the above in the /etc/make.conf file. Is it is true that the "pentium4" is no good, or it is just an old note in there? I use "pentium4" to re-merge mplayer and it seem to run OK.

Any idea if "pentium4" is safe to recompile the whole system?

.no2bl.
Back to top
View user's profile Send private message
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Thu Mar 06, 2003 1:23 pm    Post subject: Reply with quote

I use the pentium 4 option and have had no problems on my laptop.

--sonik
_________________
"What a distressing contrast there is between the radiant intelligence of a child and the feeble mentality of the average adult" --Freud
Back to top
View user's profile Send private message
Exci
Apprentice
Apprentice


Joined: 12 Jul 2002
Posts: 265
Location: The Netherlands, Zoetermeer

PostPosted: Thu Mar 06, 2003 1:41 pm    Post subject: Reply with quote

Code:

#Bug #16867, -march=pentium4 does not work, we'll replace it with -march=pentiu$
replace-flags "-march=pentium4" "-march=pentium3"


is implemented in some of the ebuilds, I don't know if they're implemented in all of the ebuilds, this was taken from gcc-3.2.2-r4.ebuild
Back to top
View user's profile Send private message
Zadeh
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2002
Posts: 131

PostPosted: Thu Mar 06, 2003 11:09 pm    Post subject: Reply with quote

The problem is with SSE2 insns for some sw, which get generated with -march=pentium4. That some of the ebuilds replace it with -march=pentium3 is unnecessary. It's the implied -msse2 thats breaking things, so -mcpu=pentium4 should be fine.

So, buttom line: The comments in make.conf are wrong. Ignore them. Change to -mcpu=pentium4 if you have a p4.
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