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

Issue 1517203002: Fix nacl_tuple "Undefined identifier" gn gen failure for arm64 (Closed)

Created:
5 years ago by agrieve
Modified:
5 years ago
Reviewers:
Roland McGrath
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix nacl_tuple "Undefined identifier" gn gen failure for arm64 BUG=568883 Committed: https://crrev.com/40cdc388ef3b07937f4726d85636e74e447e64c9 Cr-Commit-Position: refs/heads/master@{#365535}

Patch Set 1 #

Patch Set 2 : enable_nacl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -28 lines) Patch
M build/config/nacl/config.gni View 1 2 chunks +35 lines, -28 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
agrieve
On 2015/12/11 11:25:39, agrieve wrote: > mailto:agrieve@chromium.org changed reviewers: > + mailto:mcgrathr@chromium.org mcgrathr - please ...
5 years ago (2015-12-11 11:26:50 UTC) #3
Roland McGrath
Changing the local variable name is a fine orthogonal change. A think a cleaner fix ...
5 years ago (2015-12-11 22:57:04 UTC) #4
agrieve
On 2015/12/11 22:57:04, Roland McGrath wrote: > Changing the local variable name is a fine ...
5 years ago (2015-12-14 11:11:23 UTC) #5
Roland McGrath
lgtm
5 years ago (2015-12-14 20:45:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1517203002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1517203002/20001
5 years ago (2015-12-16 14:51:12 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-16 15:36:24 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/40cdc388ef3b07937f4726d85636e74e447e64c9 Cr-Commit-Position: refs/heads/master@{#365535}
5 years ago (2015-12-16 15:37:14 UTC) #12
aizatsky
On 2015/12/16 15:37:14, commit-bot: I haz the power wrote: > Patchset 2 (id:??) landed as ...
5 years ago (2015-12-16 19:48:09 UTC) #13
aizatsky
On 2015/12/16 19:48:09, aizatsky wrote: > On 2015/12/16 15:37:14, commit-bot: I haz the power wrote: ...
5 years ago (2015-12-16 19:50:40 UTC) #14
Roland McGrath
5 years ago (2015-12-16 20:46:40 UTC) #15
Message was sent while issue was closed.
On 2015/12/16 19:50:40, aizatsky wrote:
> On 2015/12/16 19:48:09, aizatsky wrote:
> > On 2015/12/16 15:37:14, commit-bot: I haz the power wrote:
> > > Patchset 2 (id:??) landed as
> > > https://crrev.com/40cdc388ef3b07937f4726d85636e74e447e64c9
> > > Cr-Commit-Position: refs/heads/master@{#365535}
> > 
> > This actually breaks the compilation with enable_nacl=false.
> > 
> > Here's the error:
> > 
> > $ gn gen out/Default
> > ERROR at //build/toolchain/nacl/BUILD.gn:68:24: Undefined identifier
> >         rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/pnacl-",
> >                        ^-----------------
> > See //build/toolchain/nacl/BUILD.gn:89:1: whence it was called.
> > pnacl_toolchain("newlib_pnacl") {
> > ^--------------------------------
> 
> Moving nacl_toolchain_dir out of the if() scope results in a different error:
> 
> $ gn gen out/Debug
> ERROR at //ppapi/native_client/BUILD.gn:67:18: Undefined identifier
>     objcopy = "${nacl_toolprefix}objcopy"
>                  ^--------------
> 
> I ask this CL to be rolled back.

This won't happen if you explicitly set enable_pnacl=false as well as
enable_nacl=false.
I'll look into a change so that enable_pnacl defaults to false when
enable_nacl=false is used explicitly.
I think it's best to fix things so that none of the nacl-related GN rules are
run at all when enable_nacl=false.

Powered by Google App Engine
This is Rietveld 408576698