Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550646 - ppc Handbook suggests invalid values for CFLAGS (-march)
Summary: ppc Handbook suggests invalid values for CFLAGS (-march)
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Docs Team
URL: https://wiki.gentoo.org/wiki/Handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-28 14:09 UTC by Nuno Silva
Modified: 2017-03-03 08:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno Silva 2015-05-28 14:09:57 UTC
The wiki version of the Gentoo PPC Installation Handbook suggests the GCC option -march for CFLAGS, and even has an example where -march=native is used. 

But -march is not a valid option for gcc on PowerPC. Using it results in a GCC error.

The old handbook used -mcpu and -mtune in the CFLAGS example instead, see http://web.archive.org/web/20120313110559/http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?full=1


Reproducible: Always
Comment 1 Nuno Silva 2015-05-28 19:25:52 UTC
GCC output when invoked with -march=native on PowerPC:

$ gcc -march=native tentti.c 
gcc: error: unrecognized command line option ‘-march=native’
Comment 2 Joe Jezak (RETIRED) gentoo-dev 2015-06-01 14:16:55 UTC
That's currently part of a shared section in the handbook. I'm looking into getting it fixed, thanks for the report!
Comment 3 Matthew Marchese Gentoo Infrastructure gentoo-dev 2016-01-16 00:23:54 UTC
Any progress on this?
Comment 4 Matthew Marchese Gentoo Infrastructure gentoo-dev 2017-03-03 08:09:53 UTC
Hello! I have gone back through to old handbooks have upgraded the CFLAGS values for all the Handbooks hosted on the wiki. :)

Fixed as of this revision: https://wiki.gentoo.org/index.php?title=Handbook:Parts/Installation/Stage&oldid=619424