New issue
Advanced search Search tips

Issue 604181 link

Starred by 3 users

Issue metadata

Status: Archived
Owner: ----
Closed: Jan 10
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

Ninja support for distcc is hard to set up or not documented

Project Member Reported by robhogan@chromium.org, Apr 17 2016

Issue description


I attempted to get this working locally and here were the steps I had to figure out and follow:

1. Patch common.gypi to suppress errors about invoking unused libraries:

diff --git a/build/common.gypi b/build/common.gypi
index a3b5053..b28bb01 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2672,6 +2672,7 @@
 
         # TODO(thakis): Enable this,  crbug.com/507717 
         '-Wno-shift-negative-value',
+        '-Wno-error=unused-command-line-argument',
       ],
     },
     'includes': [ 'set_clang_warning_flags.gypi', ],

2. Add distcc to the first two lines of out/Release/build.ninja like this:

 cc = distcc ../../third_party/llvm-build/Release+Asserts/bin/clang
 cxx = distcc ../../third_party/llvm-build/Release+Asserts/bin/clang++

3. Suppress the 'find-bad-constructs' stuff as it passes the path to LibFindBadConstruct.so as an absolute path to participating distcc hosts. If the distcc host doesn't have chromium in the same directory as the primary host, it fails to compile when it is unable to resolve the path:

GYP_DEFINES="asan=1 component=shared_library dcheck_always_on=1 clang_use_chrome_plugins=0" gclient runhooks

There must be a better way or maybe distcc isn't supported?

 

Comment 1 by thakis@chromium.org, Apr 18 2016

distcc, icecc, ccache and whatnot aren't maintained by us (hans and I). I wouldn't be surprised if it didn't work very well. The current setup works great with goma.

I'd recommend asking the people who added these toggles (`git blame`) how they use them.
Labels: Documentation-SampleCode
Status: Untriaged (was: Unconfirmed)
Marking the above issue as Untriage as this is documentation related issue.

Thank you!

Comment 3 Deleted

Status: Archived (was: Untriaged)
Archiving P3s older than 1 year with no owner or component.

Sign in to add a comment