Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Documentation or Forum error?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
twitch
n00b
n00b


Joined: 10 Aug 2005
Posts: 10

PostPosted: Sat Aug 13, 2005 1:28 pm    Post subject: Documentation or Forum error? Reply with quote

Every post I have read in the forums regarding correct CFLAGS for a 32 bit gentoo install suggests using athlon-xp for an AMD64 processor.

I was reading through the 2005.1 x86 handbook, and came across this:

http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=5

Code:
CFLAGS="-march=athlon-xp -pipe -O2"   # AMD64 users use march=k8
                                      # EM64T users use march=nocona   
CXXFLAGS="${CFLAGS}"                  # Use the same settings for both variables


My question is about the first comment... Should AMD64 users be using k8 in their CFLAGS on 32 bit installs? Who is correct? the forum users or the documentation?
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Sat Aug 13, 2005 1:41 pm    Post subject: Re: Documentation or Forum error? Reply with quote

twitch wrote:
Every post I have read in the forums regarding correct CFLAGS for a 32 bit gentoo install suggests using athlon-xp for an AMD64 processor.

I was reading through the 2005.1 x86 handbook, and came across this:

http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=5

Code:
CFLAGS="-march=athlon-xp -pipe -O2"   # AMD64 users use march=k8
                                      # EM64T users use march=nocona   
CXXFLAGS="${CFLAGS}"                  # Use the same settings for both variables


My question is about the first comment... Should AMD64 users be using k8 in their CFLAGS on 32 bit installs? Who is correct? the forum users or the documentation?


As far as I understand it, the handbook is refering to AMD64 users that want to use a 64-bit system. So if you intend to use a 32-bit system you should go for athlon-xp CFLAGS.

But I'm not absolutly sure about that! :wink:
Back to top
View user's profile Send private message
twitch
n00b
n00b


Joined: 10 Aug 2005
Posts: 10

PostPosted: Sat Aug 13, 2005 1:48 pm    Post subject: Reply with quote

Yes, it's a bit confusing. On the other hand, if it is targeted at users AMD64 users building a 64 bit system why is it the x86 handbook, possibly a typo? There is an AMD64 2005.1 handbook for those guys. I just want to get the right answer in both places.
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Sat Aug 13, 2005 2:06 pm    Post subject: Reply with quote

It seems to me more like a side note to me, but you are right it is somehow ambiguously worded. You might want to file a bug report at https://bugs.gentoo.org/.
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sat Aug 13, 2005 8:33 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=102418
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Sun Aug 14, 2005 10:38 am    Post subject: Reply with quote

Tsss... sad that people don't trust the documentation :twisted:
Back to top
View user's profile Send private message
twitch
n00b
n00b


Joined: 10 Aug 2005
Posts: 10

PostPosted: Sun Aug 14, 2005 10:34 pm    Post subject: Reply with quote

Ok, I set my CFLAGS march value to k8... When I did an emerge on coldplug, I get this when it tries to compile generic.c for pciutils:

Code:
cc1: error: bad value (k8) for -march= switch


Edit:

Yea... An emerge on syslog-ng also fails now. It built fine before with athlon-xp in the march setting.

My whole reason for trying all of this is to get an install that works alot like the cd so my mouse will work. I have tried various installs using manual kernel configs and genkernel. The mouse works during the install and doesn't afterwards (I cat'd /dev/input/mice and mouse0 to test it).
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Aug 15, 2005 10:57 am    Post subject: Reply with quote

Please see Which CFLAGS to you use to install gentoo-x86 on Athlon64 ?. (Beware of gcc versions - 3.4 is stable on amd64 and supports -march=k8, but is not stable on x86 and gcc 3.3 doesn't support -march=k8.)

Moved from Installing Gentoo to Duplicate Threads.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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