Summary: | Proposal : Use "mtune=" instead of "mcpu=" for CFLAGS | ||
---|---|---|---|
Product: | [OLD] Docs on www.gentoo.org | Reporter: | CHARPENTIER Johan <cyberj> |
Component: | Installation Handbook | Assignee: | Docs Team <docs-team> |
Status: | RESOLVED INVALID | ||
Severity: | trivial | CC: | truedfx |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
CHARPENTIER Johan
2007-06-11 01:14:26 UTC
-march is correct for most systems, but there are some arches such as sparc and alpha that actually require -mcpu. This is from a shared handbook page (hb-install-stage), and since we never tell the user to use -mcpu on any arch but the proper non-x86 arches, no need to change anything. The existing x86 handbook specifies -march anyway. We even provide links to the gnu documentation to verify the proper -march/-mtune/-mcpu settings for your architecture. I don't know where you found something saying to use -mtune and -march, but it's not in any of the handbooks or other gentoo docs. RESOLVED INVALID. (In reply to comment #1) > I don't know where you found something saying to use -mtune and -march, but > it's not in any of the handbooks or other gentoo docs. Right, it's the exact opposite. As this bug mentions, the handbook says to use -march / -mcpu, when it /should/ (for x86) say to use -march / -mtune at <http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=5>. "A first setting is the -march= or -mcpu= flag, which specifies the name of the target architecture. Possible options are described in the make.conf.example file (as comments)." You mention that this page is shared between the various arches, but the code example that almost immediately follows is different: at <http://www.gentoo.org/doc/en/handbook/handbook-sparc.xml?part=1&chap=5>, the example uses -mcpu=ultrasparc instead of -march=i686. So my apologies. (In reply to comment #2) I havent seen this section like a shared section of all arches, and in my mind the march/mcpu couple doesn't work for x86. (In reply to comment #1) And, its right too, the doc doesn't tell me to use mcpu /with/ march CFLAG. Ok,nevermind, thanks a lot, and good luck. (Good job for the doc, and sorry for my english :-)) |