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

Issue 11366243: android: Print error when trying to build on 32-bit host. (Closed)

Created:
8 years, 1 month ago by digit1
Modified:
8 years, 1 month ago
CC:
chromium-reviews, ilevy+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, peter+watch_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

android: Print error when trying to build on 32-bit host. This patch changes build/android/envsetup.sh to detect that the user is running on a 32-bit host system, and print an error message in this case, since a full build will fail (linker runs out of memory, because the generated files are too large). This can be overriden with the new --try-32 flag, in case someone really wants to try a build. This would only be useful if one needs to rebuild a "small" target, not do a complete build. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168009

Patch Set 1 #

Total comments: 10

Patch Set 2 : Rename option to --try-32bit-host #

Patch Set 3 : Use uname -m instead of uname -p #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -2 lines) Patch
M build/android/envsetup.sh View 1 2 1 chunk +27 lines, -2 lines 0 comments Download
M build/android/envsetup_functions.sh View 1 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
bulach
lgtm, but one question: is it worth the extra complexity? :) if anything, I think ...
8 years, 1 month ago (2012-11-15 00:50:59 UTC) #1
joth
I don't suppose there some #define the compiler sets if it's on a 32 bit ...
8 years, 1 month ago (2012-11-15 00:54:06 UTC) #2
Isaac (away)
lgtm, deferring to others about complexity questions. http://codereview.chromium.org/11366243/diff/1/build/android/envsetup.sh File build/android/envsetup.sh (right): http://codereview.chromium.org/11366243/diff/1/build/android/envsetup.sh#newcode34 build/android/envsetup.sh:34: "x86_64") # ...
8 years, 1 month ago (2012-11-15 01:07:54 UTC) #3
Isaac (away)
http://codereview.chromium.org/11366243/diff/1/build/android/envsetup_functions.sh File build/android/envsetup_functions.sh (right): http://codereview.chromium.org/11366243/diff/1/build/android/envsetup_functions.sh#newcode171 build/android/envsetup_functions.sh:171: try_32bit_build= nit: this line not needed, there are very ...
8 years, 1 month ago (2012-11-15 01:09:16 UTC) #4
Philippe
lgtm lgtm
8 years, 1 month ago (2012-11-15 09:01:55 UTC) #5
Philippe
On 2012/11/15 09:01:55, Philippe wrote: > lgtm > > lgtm Ooops...a single lgtm was probably ...
8 years, 1 month ago (2012-11-15 09:02:50 UTC) #6
digit1
On 2012/11/15 00:54:06, joth wrote: > I don't suppose there some #define the compiler sets ...
8 years, 1 month ago (2012-11-15 09:23:10 UTC) #7
digit1
On 2012/11/15 00:50:59, bulach wrote: > lgtm, but one question: is it worth the extra ...
8 years, 1 month ago (2012-11-15 09:30:17 UTC) #8
digit1
http://codereview.chromium.org/11366243/diff/1/build/android/envsetup.sh File build/android/envsetup.sh (right): http://codereview.chromium.org/11366243/diff/1/build/android/envsetup.sh#newcode34 build/android/envsetup.sh:34: "x86_64") # pass On 2012/11/15 01:07:54, Isaac wrote: > ...
8 years, 1 month ago (2012-11-15 09:30:23 UTC) #9
Isaac (away)
You're right. Still lgtm. http://codereview.chromium.org/11366243/diff/1/build/android/envsetup_functions.sh File build/android/envsetup_functions.sh (right): http://codereview.chromium.org/11366243/diff/1/build/android/envsetup_functions.sh#newcode171 build/android/envsetup_functions.sh:171: try_32bit_build= And I would have ...
8 years, 1 month ago (2012-11-15 09:59:13 UTC) #10
felipeg
LGTM http://codereview.chromium.org/11366243/diff/1/build/android/envsetup_functions.sh File build/android/envsetup_functions.sh (right): http://codereview.chromium.org/11366243/diff/1/build/android/envsetup_functions.sh#newcode171 build/android/envsetup_functions.sh:171: try_32bit_build= Hey Isaac, I agree that sourced bash ...
8 years, 1 month ago (2012-11-15 13:01:04 UTC) #11
digit1
Wow, this fails on the bots because "uname -p" returns "unknown" there. I really wonder ...
8 years, 1 month ago (2012-11-15 17:16:24 UTC) #12
Torne
On 2012/11/15 17:16:24, digit1 wrote: > Wow, this fails on the bots because "uname -p" ...
8 years, 1 month ago (2012-11-15 17:18:36 UTC) #13
digit1
Yep, apparently, even though the manpage says that uname -p gies the processor type (and ...
8 years, 1 month ago (2012-11-15 17:39:15 UTC) #14
joth
On 15 November 2012 01:23, <digit@chromium.org> wrote: > Reviewers: Torne, bulach, joth, pliard, felipeg, Isaac, ...
8 years, 1 month ago (2012-11-15 18:14:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/digit@chromium.org/11366243/13002
8 years, 1 month ago (2012-11-15 18:49:47 UTC) #16
bulach
lgtm, thanks for the explanation! I'd prefer to have better documentation, specially since the "cost" ...
8 years, 1 month ago (2012-11-15 18:53:54 UTC) #17
commit-bot: I haz the power
8 years, 1 month ago (2012-11-15 20:34:34 UTC) #18
Change committed as 168009

Powered by Google App Engine
This is Rietveld 408576698