View previous topic :: View next topic |
Author |
Message |
twitch n00b
Joined: 10 Aug 2005 Posts: 10
|
Posted: Sat Aug 13, 2005 1:28 pm Post subject: Documentation or Forum error? |
|
|
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 |
|
|
loki99 Advocate
Joined: 10 Oct 2003 Posts: 2056 Location: Vienna, €urope
|
Posted: Sat Aug 13, 2005 1:41 pm Post subject: Re: Documentation or Forum error? |
|
|
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! |
|
Back to top |
|
|
twitch n00b
Joined: 10 Aug 2005 Posts: 10
|
Posted: Sat Aug 13, 2005 1:48 pm Post subject: |
|
|
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 |
|
|
loki99 Advocate
Joined: 10 Oct 2003 Posts: 2056 Location: Vienna, €urope
|
Posted: Sat Aug 13, 2005 2:06 pm Post subject: |
|
|
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 |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
|
Back to top |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Sun Aug 14, 2005 10:38 am Post subject: |
|
|
Tsss... sad that people don't trust the documentation |
|
Back to top |
|
|
twitch n00b
Joined: 10 Aug 2005 Posts: 10
|
Posted: Sun Aug 14, 2005 10:34 pm Post subject: |
|
|
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 |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Mon Aug 15, 2005 10:57 am Post subject: |
|
|
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 |
|
|
|