Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Issue 7841008: Update chrome/nacl.gypi to fix chromeos build (Closed)

Created:
9 years, 3 months ago by Brad Chen
Modified:
9 years, 3 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com, bradnelson
Visibility:
Public.

Description

Modify the build recipe for nacl_helper_bootstrap to invoke the linker explicitly via an action rather than invoking via g++. This addresses build problems that occurred on certain developer machines. Also, modified tools/ld_bfd/ld script to find the loader within the Chrome OS build chroot. Also re-enable the nacl_helper. BUG=92964, nativeclient:480 TEST=nacl_integration tests on bots Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100031

Patch Set 1 #

Patch Set 2 : Re-enable nacl_helper with various fixes #

Patch Set 3 : Invoke nacl_helper ld directly as action #

Total comments: 9

Patch Set 4 : Fix gyp dependency for object file #

Patch Set 5 : For feedback from Evan and Raymes #

Total comments: 26

Patch Set 6 : Fix gyp portability issues, chromeos build #

Total comments: 4

Patch Set 7 : Update comment in tools/ld_bfd/ld #

Total comments: 7

Patch Set 8 : Cleanups to nacl.gyp and tools/ld_bfd/ld #

Patch Set 9 : Defer arm support, fix a path #

Total comments: 2

Patch Set 10 : Eliminate unneeded comment, add a dependency #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -57 lines) Patch
M chrome/chrome_exe.gypi View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/nacl.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +66 lines, -29 lines 0 comments Download
M chrome/nacl/nacl_fork_delegate_linux.cc View 1 chunk +0 lines, -1 line 0 comments Download
M tools/ld_bfd/ld View 1 2 3 4 5 6 7 1 chunk +33 lines, -27 lines 2 comments Download

Messages

Total messages: 25 (0 generated)
Brad Chen
As I mentioned via email, I'm preparing to re-land this tomorrow morning. Please review. Thanks.
9 years, 3 months ago (2011-09-06 21:34:36 UTC) #1
Brad Chen
BTW The first set of try jobs failed due to lack of -r flag. New ...
9 years, 3 months ago (2011-09-06 21:59:38 UTC) #2
jam
hey Brad, I'm not the most qualified reviewer for these gyp changes, as my gyp+linux ...
9 years, 3 months ago (2011-09-06 22:04:01 UTC) #3
Brad Chen
This is mostly a gyp change; Evan you seem somewhat interested so please review the ...
9 years, 3 months ago (2011-09-07 15:54:51 UTC) #4
Evan Martin
can you make the review description describe what you're doing? http://codereview.chromium.org/7841008/diff/4001/chrome/nacl.gypi File chrome/nacl.gypi (right): http://codereview.chromium.org/7841008/diff/4001/chrome/nacl.gypi#newcode275 ...
9 years, 3 months ago (2011-09-07 16:21:13 UTC) #5
Brad Chen
PTAL I'm looking for additional feedback on inputs to the action. http://codereview.chromium.org/7841008/diff/4001/chrome/nacl.gypi File chrome/nacl.gypi (right): ...
9 years, 3 months ago (2011-09-07 17:05:25 UTC) #6
Evan Martin
http://codereview.chromium.org/7841008/diff/6001/chrome/nacl.gypi File chrome/nacl.gypi (right): http://codereview.chromium.org/7841008/diff/6001/chrome/nacl.gypi#newcode280 chrome/nacl.gypi:280: '<(PRODUCT_DIR)/obj.target/nacl_helper_bootstrap_lib/chrome/nacl/nacl_helper_bootstrap_linux.o', This is hardcoding a private build path. It ...
9 years, 3 months ago (2011-09-07 17:14:00 UTC) #7
Roland McGrath
Nits on comments, style, and cleanliness issues. But this looks to me like it should ...
9 years, 3 months ago (2011-09-07 17:21:17 UTC) #8
Brad Chen
PTAL http://codereview.chromium.org/7841008/diff/6001/chrome/nacl.gypi File chrome/nacl.gypi (right): http://codereview.chromium.org/7841008/diff/6001/chrome/nacl.gypi#newcode239 chrome/nacl.gypi:239: 'target_name': 'nacl_helper_bootstrap_lib', On 2011/09/07 17:21:17, Roland McGrath wrote: ...
9 years, 3 months ago (2011-09-07 19:05:40 UTC) #9
Evan Martin
I think this will work, if you fully constrain the file name as below (you ...
9 years, 3 months ago (2011-09-07 19:13:03 UTC) #10
Evan Martin
Actually, sorry, product_name is just the name of the lib before we add the prefix/suffix. ...
9 years, 3 months ago (2011-09-07 19:15:56 UTC) #11
Roland McGrath
LGTM with nits http://codereview.chromium.org/7841008/diff/2009/chrome/nacl.gypi File chrome/nacl.gypi (right): http://codereview.chromium.org/7841008/diff/2009/chrome/nacl.gypi#newcode311 chrome/nacl.gypi:311: # State a path for finding ...
9 years, 3 months ago (2011-09-07 19:47:49 UTC) #12
Brad Chen
PTAL http://codereview.chromium.org/7841008/diff/5006/chrome/nacl.gypi File chrome/nacl.gypi (right): http://codereview.chromium.org/7841008/diff/5006/chrome/nacl.gypi#newcode240 chrome/nacl.gypi:240: 'type': 'static_library', On 2011/09/07 19:13:03, Evan Martin wrote: ...
9 years, 3 months ago (2011-09-07 20:18:53 UTC) #13
Brad Chen
PTAL (resending due to corp mail server error) On 2011/09/07 20:18:53, Brad Chen wrote: > ...
9 years, 3 months ago (2011-09-07 20:20:42 UTC) #14
Brad Chen
Oops; missed this before. Done now. On 2011/09/07 19:15:56, Evan Martin wrote: > Actually, sorry, ...
9 years, 3 months ago (2011-09-07 20:24:11 UTC) #15
Roland McGrath
http://codereview.chromium.org/7841008/diff/2009/chrome/nacl.gypi File chrome/nacl.gypi (right): http://codereview.chromium.org/7841008/diff/2009/chrome/nacl.gypi#newcode311 chrome/nacl.gypi:311: # State a path for finding libc.a. On 2011/09/07 ...
9 years, 3 months ago (2011-09-07 20:39:01 UTC) #16
Brad Chen
I'm already working with the CroOS guys on arm build stuff... On Wed, Sep 7, ...
9 years, 3 months ago (2011-09-07 20:43:25 UTC) #17
Brad Chen
I'm already working with the CroOS guys on arm build stuff... On Wed, Sep 7, ...
9 years, 3 months ago (2011-09-07 20:43:29 UTC) #18
Evan Martin
LGTM (I didn't look at the Python script) http://codereview.chromium.org/7841008/diff/3006/chrome/nacl.gypi File chrome/nacl.gypi (right): http://codereview.chromium.org/7841008/diff/3006/chrome/nacl.gypi#newcode278 chrome/nacl.gypi:278: # ...
9 years, 3 months ago (2011-09-07 21:39:09 UTC) #19
Brad Chen
http://codereview.chromium.org/7841008/diff/3006/chrome/nacl.gypi File chrome/nacl.gypi (right): http://codereview.chromium.org/7841008/diff/3006/chrome/nacl.gypi#newcode278 chrome/nacl.gypi:278: # Stating them here is necessary for dependency checking. ...
9 years, 3 months ago (2011-09-07 21:45:20 UTC) #20
Lei Zhang
http://codereview.chromium.org/7841008/diff/8001/tools/ld_bfd/ld File tools/ld_bfd/ld (right): http://codereview.chromium.org/7841008/diff/8001/tools/ld_bfd/ld#newcode29 tools/ld_bfd/ld:29: cxx = "gcc" nit: this should be g++ http://codereview.chromium.org/7841008/diff/8001/tools/ld_bfd/ld#newcode42 ...
9 years, 3 months ago (2011-09-07 22:54:15 UTC) #21
Brad Chen
For the record, I'm working with Lei on this. Sounds like remediation will be for ...
9 years, 3 months ago (2011-09-07 23:18:14 UTC) #22
Lei Zhang
As discussed on chat. I'll update install-build-deps.sh to put ld.bfd next to ld. (gold ld) ...
9 years, 3 months ago (2011-09-07 23:28:01 UTC) #23
raymes
Built Chrome in ChromeOS with this patch (patch set 10) and it seemed to build ...
9 years, 3 months ago (2011-09-09 00:59:26 UTC) #24
raymes
9 years, 3 months ago (2011-09-09 01:00:07 UTC) #25
BTW, please file a bug to track the removal of this hack.

On 2011/09/09 00:59:26, raymes wrote:
> Built Chrome in ChromeOS with this patch (patch set 10) and it seemed to build
> correctly for both ARM and x86 builds.
> 
> LGTM
> 
> On 2011/09/07 23:28:01, Lei Zhang wrote:
> > As discussed on chat. I'll update install-build-deps.sh to put ld.bfd next
to
> > ld. (gold ld) Current workaround is to manually copy it over.
> > 
> > We don't want to reach into /usr/bin since that might be wrong. E.g. on CrOS
> or
> > when cross-compiling.

Powered by Google App Engine
This is Rietveld 408576698