Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223159 - [patch] disable distcc for -march=native
Summary: [patch] disable distcc for -march=native
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Petteri Räty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-22 04:00 UTC by Ryan Hill (RETIRED)
Modified: 2009-11-08 00:23 UTC (History)
3 users (show)

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


Attachments
distcc-march-native.patch (distcc-march-native.patch,934 bytes, patch)
2008-05-22 04:00 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2008-05-22 04:00:08 UTC
When using distcc on machines with differing instruction sets and -march=native, it's possible for GCC to create object files containing instructions that are not supported by the host architecture (eg. if the host is SSE2 but a node is SSE3 - native detects what is available on the machine doing the actual compile).  The attached patch by Martin Pool forces distcc to run jobs being built with -march=native locally and print a warning.

distcc with -mtune=native won't break anything but can result some objects being optimized for a different sub-arch, so the patch includes it too.  i don't think it makes much difference really.

This patch was sent to the distcc ML but there's no indication whether it was applied or not, and i'm not installing GNU Arch just to find out. ;)
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2008-05-22 04:00:49 UTC
Created attachment 153895 [details, diff]
distcc-march-native.patch
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2008-05-25 21:38:09 UTC
(In reply to comment #1)
> Created an attachment (id=153895) [edit]
> distcc-march-native.patch
> 

Feel free to bump the revision and apply the patch in the tree.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2008-05-26 01:34:12 UTC
Done, thanks.
Comment 4 Steen Eugen "Miravlix" Poulsen 2008-09-21 17:17:40 UTC
-march=native is FINE for us that run compiler farms on the same IRON and this patch really need to be reworked.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2008-09-21 20:05:31 UTC
this patch is upstream now.  best to talk to them.
Comment 6 Steen Eugen "Miravlix" Poulsen 2008-10-19 03:29:07 UTC
(In reply to comment #5)
> this patch is upstream now.  best to talk to them.
> 

I've spend a week trying to figure out novels system, but I can't for the life of me figure out where the hell to get in contact with upstream to get this annoying patch removed.
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2008-10-19 05:44:15 UTC
try the homepage? :P

http://code.google.com/p/distcc/

"mailing list" on the right hand side.
Comment 8 aditsu 2009-11-07 10:56:54 UTC
Please update the documentation at http://www.gentoo.org/doc/en/distcc.xml , currently it only says "Don't use -march=native", it doesn't mention that distcc gets DISABLED automatically.
Also please provide a way to ignore -march=native and just let it run.
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2009-11-08 00:23:09 UTC
File a new bug for the doc team.