Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 216677 - Warn against using -march=native in distcc guide.
Summary: Warn against using -march=native in distcc guide.
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-07 09:50 UTC by Russell Harmon
Modified: 2008-04-18 11:44 UTC (History)
1 user (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 Russell Harmon 2008-04-07 09:50:26 UTC
The distcc guide needs a warning against -march=native. The native flag for gcc will compile a binary that is optimized for the processor that gcc was run on. This will result in a bizarrely broken system for those that don't notice it in time.
Comment 1 nm (RETIRED) gentoo-dev 2008-04-07 09:53:19 UTC
No need, as that's only present in masked versions of GCC, currently. I'm CCing the toolchain herd though, so they know about it.

Once that version of gcc has been stabilized, then the warning can be added.
Comment 2 SpanKY gentoo-dev 2008-04-07 17:51:47 UTC
why does it need to be later ?  just say "if you use -march=native, dont use distcc".  there is no mention of gcc version there.
Comment 3 Xavier Neys (RETIRED) gentoo-dev 2008-04-07 18:12:48 UTC
 
Comment 4 Jan Kundrát (RETIRED) gentoo-dev 2008-04-07 20:58:26 UTC
Fixed, thanks for reporting.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2008-04-18 00:31:16 UTC
there's a patch for distcc to run -march=native jobs locally posted here:

https://bugs.launchpad.net/distcc/+bug/188813/+viewstatus

i was going to file a bug to get it added and forgot. ;P
Comment 6 Jan Kundrát (RETIRED) gentoo-dev 2008-04-18 11:44:31 UTC
(In reply to comment #5)
> i was going to file a bug to get it added and forgot. ;P

This one is about documentation, if you want distcc guys to know about that, please file another one for them :).

Even when this patch hits Gentoo, I won't change the documentation back -- fixing distcc not to produce broken results is certainly good, but running jobs locally is not what user expects with distcc, either, so the warning should be here.