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

Issue 1934853002: 👕 Fix Android arm64 executables not linking in component builds (Closed)

Created:
4 years, 7 months ago by agrieve
Modified:
4 years, 7 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Android arm64 executables not linking in component builds BUG=none Committed: https://crrev.com/e9c92506df89b97f9cd0e7f027d178784224e7f0 Cr-Commit-Position: refs/heads/master@{#391119}

Patch Set 1 #

Patch Set 2 : Also add sysroot #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M build/config/android/BUILD.gn View 1 3 chunks +9 lines, -1 line 3 comments Download

Messages

Total messages: 25 (9 generated)
agrieve
On 2016/05/02 16:47:57, agrieve wrote: > mailto:agrieve@chromium.org changed reviewers: > + mailto:dpranke@google.com Dirk - wondering ...
4 years, 7 months ago (2016-05-02 16:49:16 UTC) #4
agrieve
On 2016/05/02 16:49:16, agrieve wrote: > On 2016/05/02 16:47:57, agrieve wrote: > > mailto:agrieve@chromium.org changed ...
4 years, 7 months ago (2016-05-02 16:50:07 UTC) #5
jbudorick
https://codereview.chromium.org/1934853002/diff/20001/build/config/android/BUILD.gn File build/config/android/BUILD.gn (right): https://codereview.chromium.org/1934853002/diff/20001/build/config/android/BUILD.gn#newcode185 build/config/android/BUILD.gn:185: if (!use_gold) { Why is this only in executable_config? ...
4 years, 7 months ago (2016-05-02 17:18:05 UTC) #6
agrieve
https://codereview.chromium.org/1934853002/diff/20001/build/config/android/BUILD.gn File build/config/android/BUILD.gn (right): https://codereview.chromium.org/1934853002/diff/20001/build/config/android/BUILD.gn#newcode185 build/config/android/BUILD.gn:185: if (!use_gold) { On 2016/05/02 17:18:05, jbudorick wrote: > ...
4 years, 7 months ago (2016-05-02 17:20:33 UTC) #7
jbudorick
https://codereview.chromium.org/1934853002/diff/20001/build/config/android/BUILD.gn File build/config/android/BUILD.gn (right): https://codereview.chromium.org/1934853002/diff/20001/build/config/android/BUILD.gn#newcode185 build/config/android/BUILD.gn:185: if (!use_gold) { On 2016/05/02 17:20:33, agrieve wrote: > ...
4 years, 7 months ago (2016-05-02 17:40:33 UTC) #8
agrieve
On 2016/05/02 17:40:33, jbudorick wrote: > https://codereview.chromium.org/1934853002/diff/20001/build/config/android/BUILD.gn > File build/config/android/BUILD.gn (right): > > https://codereview.chromium.org/1934853002/diff/20001/build/config/android/BUILD.gn#newcode185 > ...
4 years, 7 months ago (2016-05-02 17:41:54 UTC) #9
jbudorick
I suppose I'm ok with trying the narrowly-scoped solution to start. lgtm
4 years, 7 months ago (2016-05-02 17:43:09 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1934853002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1934853002/20001
4 years, 7 months ago (2016-05-02 18:12:58 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-02 19:06:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1934853002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1934853002/20001
4 years, 7 months ago (2016-05-03 00:26:09 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-03 00:34:54 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/e9c92506df89b97f9cd0e7f027d178784224e7f0 Cr-Commit-Position: refs/heads/master@{#391119}
4 years, 7 months ago (2016-05-03 00:36:31 UTC) #20
Dirk Pranke
+mcgrathr ... On 2016/05/02 16:47:57, agrieve wrote: > Dirk - wondering if you know enough ...
4 years, 7 months ago (2016-05-03 02:56:29 UTC) #22
Roland McGrath
-rpath-link was never about finding the libraries you link to via -lfoobar. That's what -L ...
4 years, 7 months ago (2016-05-03 17:21:45 UTC) #23
agrieve
On 2016/05/03 17:21:45, Roland McGrath wrote: > -rpath-link was never about finding the libraries you ...
4 years, 7 months ago (2016-05-03 19:18:10 UTC) #24
agrieve
4 years, 7 months ago (2016-05-03 19:18:56 UTC) #25
Message was sent while issue was closed.
On 2016/05/03 02:56:29, Dirk Pranke wrote:
> +mcgrathr ...
> 
> On 2016/05/02 16:47:57, agrieve wrote:
> > Dirk - wondering if you know enough about sysroots to know 
> > whether this is the best fix. Verified that I can build all targets 
> > with arm64 with it, but gold doesn't seem to require it.
> 
> Without seeing more of the context (like the actual linker errors, and knowing
> how the shared libraries end up getting packaged into the apk), it's hard for
me
> to say.
> 
> What little I know/understand about -rpath-link makes me suspect that this is
> covering up an underlying problem.
> 
> However, I also vaguely remember mcgrathr@ telling me that -rpath-link wasn't
> needed any more for other parts of the chromium build, and I don't know if
that
> was because gold didn't need it but ld did, or if it was only older versions
of
> ld that needed it, or if that was because we had fixed the directory layout to
> not have problems, or something else.
> 
> Maybe Roland can say more?
> 
> That said, use_gold is also a command-line settable arg (set in
> //build/config/compiler/BUILD.gn), so setting it as a local variable the way
> you're doing here means that you'll override the args.gn entry, which is
perhaps
> intentional or correct, but also confusing.
> 
> I also don't particularly like having some gold-specific settings in one file
> and some in another. Parts of the //build/config/compiler file make comments
> about being "linux specific", but other parts are more generic, and it would
> probably be better to have all of the gold-specific logic in one place.

Going to wait a bit more to see if there's a better solution, but will do a
follow-up to fix the use_gold collision and look at moving where the code is.

Powered by Google App Engine
This is Rietveld 408576698