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

Issue 1888763002: Build 64bit browser for Android with clang for ARMv8 (Closed)

Created:
4 years, 8 months ago by khasim.mohammed
Modified:
4 years, 7 months ago
CC:
blink-reviews, chromium-reviews, hongchan, jzern, kinuko+watch, skal, urvang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Build 64bit browser for Android with clang for ARMv8 This series is to a) Add my name to AUTHORS I have few patches to submit to fix the chromium 64bit browser build for ARMv8 with clang. b) Fix FPCR access for 64bit clang compilation Compilation fails as the MSR and MRS instructions access the FPCR register in 32bit mode. c) Fix Build.gn and config files To build 64bit browser for Android with clang for ARMv8 BUG : http://crbug.com/539781 Signed-off-by: Bernhard Rosenkränzer <bero@linaro.org>; Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@linaro.org>; BUG=539781 R=thakis@chromium.org TEST=download apk to ARMv8 board and launch Committed: https://crrev.com/2c5ec51ea564705b02dcb6aeff6a56722cc3890f Cr-Commit-Position: refs/heads/master@{#393517}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Patch Set 2 - Build 64bit browser for Android with clang for ARMv8 #

Total comments: 2

Patch Set 3 : Patch 3 : Build 64bit browser for Android with clang for ARMv8 #

Total comments: 1

Patch Set 4 : Patch Set 4 : Removed Wno-asm-operand-widths #

Total comments: 1

Patch Set 5 : Patch Set 5: Keep -fno-integrated-as as ARMv7 needs it #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M build/config/android/BUILD.gn View 1 chunk +1 line, -1 line 1 comment Download
M build/config/arm.gni View 1 chunk +2 lines, -0 lines 1 comment Download
M build/config/compiler/BUILD.gn View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/DenormalDisabler.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/boringssl/BUILD.gn View 1 2 3 4 1 chunk +5 lines, -3 lines 1 comment Download
M third_party/libwebp/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 93 (13 generated)
khasim.mohammed
4 years, 8 months ago (2016-04-14 11:24:38 UTC) #1
urvang
LGTM for libwebp
4 years, 8 months ago (2016-04-14 15:33:48 UTC) #3
Nico
Looks pretty good, thanks! https://codereview.chromium.org/1888763002/diff/1/build/config/android/config.gni File build/config/android/config.gni (right): https://codereview.chromium.org/1888763002/diff/1/build/config/android/config.gni#newcode249 build/config/android/config.gni:249: import("//build/config/arm.gni") why is this needed? ...
4 years, 8 months ago (2016-04-14 15:43:56 UTC) #4
Raymond Toy
https://codereview.chromium.org/1888763002/diff/1/third_party/WebKit/Source/platform/audio/DenormalDisabler.h File third_party/WebKit/Source/platform/audio/DenormalDisabler.h (right): https://codereview.chromium.org/1888763002/diff/1/third_party/WebKit/Source/platform/audio/DenormalDisabler.h#newcode134 third_party/WebKit/Source/platform/audio/DenormalDisabler.h:134: asm volatile("mrs %x[result], FPCR" : [result] "=r" (result)); So ...
4 years, 8 months ago (2016-04-14 15:49:38 UTC) #6
khasim.mohammed
https://codereview.chromium.org/1888763002/diff/1/build/config/android/config.gni File build/config/android/config.gni (right): https://codereview.chromium.org/1888763002/diff/1/build/config/android/config.gni#newcode249 build/config/android/config.gni:249: import("//build/config/arm.gni") On 2016/04/14 15:43:55, Nico wrote: > why is ...
4 years, 8 months ago (2016-04-14 16:13:41 UTC) #7
khasim.mohammed
https://codereview.chromium.org/1888763002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1888763002/diff/1/build/config/compiler/BUILD.gn#newcode637 build/config/compiler/BUILD.gn:637: cflags = [ "-mcpu=$arm_fpu" ] On 2016/04/14 15:43:55, Nico ...
4 years, 8 months ago (2016-04-14 16:38:46 UTC) #8
khasim.mohammed
On 2016/04/14 16:38:46, khasim.mohammed wrote: > https://codereview.chromium.org/1888763002/diff/1/build/config/compiler/BUILD.gn > File build/config/compiler/BUILD.gn (right): > > https://codereview.chromium.org/1888763002/diff/1/build/config/compiler/BUILD.gn#newcode637 > ...
4 years, 7 months ago (2016-05-06 06:48:24 UTC) #9
Raymond Toy
On 2016/04/14 15:49:38, Raymond Toy wrote: > https://codereview.chromium.org/1888763002/diff/1/third_party/WebKit/Source/platform/audio/DenormalDisabler.h > File third_party/WebKit/Source/platform/audio/DenormalDisabler.h (right): > > https://codereview.chromium.org/1888763002/diff/1/third_party/WebKit/Source/platform/audio/DenormalDisabler.h#newcode134 ...
4 years, 7 months ago (2016-05-06 16:35:36 UTC) #10
khasim.mohammed
On 2016/05/06 16:35:36, Raymond Toy wrote: > On 2016/04/14 15:49:38, Raymond Toy wrote: > > ...
4 years, 7 months ago (2016-05-07 03:00:31 UTC) #11
khasim.mohammed
On 2016/05/07 03:00:31, khasim.mohammed wrote: > On 2016/05/06 16:35:36, Raymond Toy wrote: > > On ...
4 years, 7 months ago (2016-05-07 03:09:07 UTC) #12
Raymond Toy
On 2016/05/07 03:00:31, khasim.mohammed wrote: > On 2016/05/06 16:35:36, Raymond Toy wrote: > > On ...
4 years, 7 months ago (2016-05-09 20:47:06 UTC) #13
khasim.mohammed
On 2016/05/09 20:47:06, Raymond Toy wrote: > On 2016/05/07 03:00:31, khasim.mohammed wrote: > > On ...
4 years, 7 months ago (2016-05-10 02:43:35 UTC) #14
Raymond Toy
On 2016/05/10 at 02:43:35, khasim.mohammed wrote: > On 2016/05/09 20:47:06, Raymond Toy wrote: > > ...
4 years, 7 months ago (2016-05-10 02:46:13 UTC) #15
Raymond Toy
lgtm
4 years, 7 months ago (2016-05-10 02:46:27 UTC) #16
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1888763002/diff/20001/build/config/arm.gni File build/config/arm.gni (right): https://codereview.chromium.org/1888763002/diff/20001/build/config/arm.gni#newcode75 build/config/arm.gni:75: arm_fpu = "cortex-a57+simd+crypto+fp+crc" Can you check that this results ...
4 years, 7 months ago (2016-05-10 05:18:35 UTC) #18
khasim.mohammed
On 10 May 2016 at 10:48, <jochen@chromium.org> wrote: > > https://codereview.chromium.org/1888763002/diff/20001/build/config/arm.gni > File build/config/arm.gni (right): ...
4 years, 7 months ago (2016-05-10 05:45:01 UTC) #19
khasim.mohammed
On 10 May 2016 at 10:48, <jochen@chromium.org> wrote: > > https://codereview.chromium.org/1888763002/diff/20001/build/config/arm.gni > File build/config/arm.gni (right): ...
4 years, 7 months ago (2016-05-10 05:45:01 UTC) #20
jochen (gone - plz use gerrit)
On 2016/05/10 at 05:45:01, khasim.mohammed wrote: > On 10 May 2016 at 10:48, <jochen@chromium.org> wrote: ...
4 years, 7 months ago (2016-05-10 05:57:51 UTC) #21
khasim.mohammed
On 2016/05/10 05:57:51, jochen (soon OOO) wrote: > On 2016/05/10 at 05:45:01, khasim.mohammed wrote: > ...
4 years, 7 months ago (2016-05-12 07:08:51 UTC) #22
jochen (gone - plz use gerrit)
On 2016/05/12 at 07:08:51, khasim.mohammed wrote: > On 2016/05/10 05:57:51, jochen (soon OOO) wrote: > ...
4 years, 7 months ago (2016-05-12 07:29:47 UTC) #23
khasim.mohammed
On 2016/05/12 07:29:47, jochen (soon OOO) wrote: > On 2016/05/12 at 07:08:51, khasim.mohammed wrote: > ...
4 years, 7 months ago (2016-05-12 07:41:41 UTC) #24
jochen (gone - plz use gerrit)
On 2016/05/12 at 07:41:41, khasim.mohammed wrote: > On 2016/05/12 07:29:47, jochen (soon OOO) wrote: > ...
4 years, 7 months ago (2016-05-12 07:46:07 UTC) #25
khasim.mohammed
On 2016/05/12 07:46:07, jochen (soon OOO) wrote: > On 2016/05/12 at 07:41:41, khasim.mohammed wrote: > ...
4 years, 7 months ago (2016-05-12 07:54:31 UTC) #26
khasim.mohammed
> > > > VERIFY_HEAP, DEBUG, OBJECT_PRINT etc.. are all debug flags, but gyp appears ...
4 years, 7 months ago (2016-05-12 08:18:18 UTC) #27
jochen (gone - plz use gerrit)
On 2016/05/12 at 07:54:31, khasim.mohammed wrote: > On 2016/05/12 07:46:07, jochen (soon OOO) wrote: > ...
4 years, 7 months ago (2016-05-12 09:10:04 UTC) #28
khasim.mohammed
Please ignore all the above discussions on gyp flags, I took a fresh look at ...
4 years, 7 months ago (2016-05-12 10:56:22 UTC) #29
jochen (gone - plz use gerrit)
the gyp version runs with -m64 -O2 while the gn version specifies -mcpu=cortex-a57+simd+crypto+fp+crc -Os that ...
4 years, 7 months ago (2016-05-12 11:03:14 UTC) #30
khasim.mohammed
On 2016/05/12 11:03:14, jochen (soon OOO) wrote: > the gyp version runs with -m64 -O2 ...
4 years, 7 months ago (2016-05-12 11:32:50 UTC) #31
jochen (gone - plz use gerrit)
On 2016/05/12 at 11:32:50, khasim.mohammed wrote: > On 2016/05/12 11:03:14, jochen (soon OOO) wrote: > ...
4 years, 7 months ago (2016-05-12 11:38:14 UTC) #32
khasim.mohammed
On 2016/05/12 11:38:14, jochen (soon OOO) wrote: > On 2016/05/12 at 11:32:50, khasim.mohammed wrote: > ...
4 years, 7 months ago (2016-05-12 12:45:03 UTC) #33
jochen (gone - plz use gerrit)
thanks for filing the bug. I cc'd Rodolph to verify the flags. We shouldn't land ...
4 years, 7 months ago (2016-05-12 12:55:40 UTC) #34
khasim.mohammed
On 2016/05/12 12:55:40, jochen (soon OOO) wrote: > thanks for filing the bug. I cc'd ...
4 years, 7 months ago (2016-05-12 13:23:05 UTC) #35
jochen (gone - plz use gerrit)
On 2016/05/12 at 13:23:05, khasim.mohammed wrote: > On 2016/05/12 12:55:40, jochen (soon OOO) wrote: > ...
4 years, 7 months ago (2016-05-12 13:44:28 UTC) #36
khasim.mohammed
On 2016/05/12 13:44:28, jochen (soon OOO) wrote: > On 2016/05/12 at 13:23:05, khasim.mohammed wrote: > ...
4 years, 7 months ago (2016-05-12 14:05:44 UTC) #37
Nico
One last comment, else looks good. https://codereview.chromium.org/1888763002/diff/20001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1888763002/diff/20001/build/config/compiler/BUILD.gn#newcode921 build/config/compiler/BUILD.gn:921: cflags += [ ...
4 years, 7 months ago (2016-05-12 14:09:04 UTC) #38
khasim.mohammed
On 2016/05/12 14:09:04, Nico wrote: > One last comment, else looks good. > > https://codereview.chromium.org/1888763002/diff/20001/build/config/compiler/BUILD.gn ...
4 years, 7 months ago (2016-05-12 18:14:26 UTC) #39
Nico
https://codereview.chromium.org/1888763002/diff/40001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1888763002/diff/40001/build/config/compiler/BUILD.gn#newcode981 build/config/compiler/BUILD.gn:981: "-Wno-asm-operand-widths", as requested above, can you say what warns ...
4 years, 7 months ago (2016-05-12 18:43:04 UTC) #40
khasim.mohammed
On 2016/05/12 18:43:04, Nico wrote: > https://codereview.chromium.org/1888763002/diff/40001/build/config/compiler/BUILD.gn > File build/config/compiler/BUILD.gn (right): > > https://codereview.chromium.org/1888763002/diff/40001/build/config/compiler/BUILD.gn#newcode981 > ...
4 years, 7 months ago (2016-05-12 20:45:48 UTC) #41
Nico
https://codereview.chromium.org/1888763002/diff/60001/third_party/boringssl/BUILD.gn File third_party/boringssl/BUILD.gn (right): https://codereview.chromium.org/1888763002/diff/60001/third_party/boringssl/BUILD.gn#newcode72 third_party/boringssl/BUILD.gn:72: # asmflags += [ "-fno-integrated-as" ] ?
4 years, 7 months ago (2016-05-12 20:46:43 UTC) #42
khasim.mohammed
On 2016/05/12 20:46:43, Nico wrote: > https://codereview.chromium.org/1888763002/diff/60001/third_party/boringssl/BUILD.gn > File third_party/boringssl/BUILD.gn (right): > > https://codereview.chromium.org/1888763002/diff/60001/third_party/boringssl/BUILD.gn#newcode72 > ...
4 years, 7 months ago (2016-05-12 21:24:43 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1888763002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1888763002/60001
4 years, 7 months ago (2016-05-12 21:27:14 UTC) #45
Nico
Yes, but you probably don't want to check in a commented-out line? I know that ...
4 years, 7 months ago (2016-05-12 21:28:03 UTC) #46
Nico
Yes, but you probably don't want to check in a commented-out line? I know that ...
4 years, 7 months ago (2016-05-12 21:28:03 UTC) #47
Nico
I kicked off a try run, that should tell us if 32-bit arm builds fine ...
4 years, 7 months ago (2016-05-12 21:28:20 UTC) #48
Nico
I kicked off a try run, that should tell us if 32-bit arm builds fine ...
4 years, 7 months ago (2016-05-12 21:28:21 UTC) #49
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/65156)
4 years, 7 months ago (2016-05-12 21:43:49 UTC) #51
khasim.mohammed
On 2016/05/12 21:43:49, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 7 months ago (2016-05-12 21:54:43 UTC) #52
Nico
That's ok. Do you understand why the external assembler doesn't work for processing assembly files ...
4 years, 7 months ago (2016-05-12 21:57:44 UTC) #53
Nico
That's ok. Do you understand why the external assembler doesn't work for processing assembly files ...
4 years, 7 months ago (2016-05-12 21:57:44 UTC) #54
khasim.mohammed
On 2016/05/12 21:57:44, Nico wrote: > That's ok. > Thanks, posted now. > Do you ...
4 years, 7 months ago (2016-05-12 22:03:55 UTC) #55
khasim.mohammed
On 2016/05/12 22:03:55, khasim.mohammed wrote: > On 2016/05/12 21:57:44, Nico wrote: > > That's ok. ...
4 years, 7 months ago (2016-05-12 22:26:07 UTC) #56
Nico
lgtm https://codereview.chromium.org/1888763002/diff/80001/third_party/boringssl/BUILD.gn File third_party/boringssl/BUILD.gn (right): https://codereview.chromium.org/1888763002/diff/80001/third_party/boringssl/BUILD.gn#newcode80 third_party/boringssl/BUILD.gn:80: asmflags += [ "-B${rebased_android_toolchain_root}/bin" ] The only other ...
4 years, 7 months ago (2016-05-12 22:40:23 UTC) #57
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1888763002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1888763002/80001
4 years, 7 months ago (2016-05-12 22:41:06 UTC) #59
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-13 00:07:23 UTC) #61
khasim.mohammed
On 2016/05/13 00:07:23, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 7 months ago (2016-05-13 02:59:09 UTC) #62
Nico
On 2016/05/13 02:59:09, khasim.mohammed wrote: > On 2016/05/13 00:07:23, commit-bot: I haz the power wrote: ...
4 years, 7 months ago (2016-05-13 13:26:59 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1888763002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1888763002/80001
4 years, 7 months ago (2016-05-13 13:40:06 UTC) #66
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-13 13:47:11 UTC) #67
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/2c5ec51ea564705b02dcb6aeff6a56722cc3890f Cr-Commit-Position: refs/heads/master@{#393517}
4 years, 7 months ago (2016-05-13 13:49:52 UTC) #69
rmcilroy
https://codereview.chromium.org/1888763002/diff/80001/build/config/android/BUILD.gn File build/config/android/BUILD.gn (right): https://codereview.chromium.org/1888763002/diff/80001/build/config/android/BUILD.gn#newcode93 build/config/android/BUILD.gn:93: # TODO: Enable clang support for Android Arm64. http://crbug.com/539781 ...
4 years, 7 months ago (2016-05-13 15:11:37 UTC) #71
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1888763002/diff/80001/build/config/arm.gni File build/config/arm.gni (right): https://codereview.chromium.org/1888763002/diff/80001/build/config/arm.gni#newcode75 build/config/arm.gni:75: arm_fpu = "cortex-a57+simd+crypto+fp+crc" If I read this code correctly, ...
4 years, 7 months ago (2016-05-16 11:34:41 UTC) #73
rmcilroy
Adding Rodolph - could you take a look at Primiano's last comment? Should we be ...
4 years, 7 months ago (2016-05-16 11:47:43 UTC) #75
martyn.capewell
Rodolph's away until next week, but I'll comment. Whilst all ARMv8 implementations should support SIMD ...
4 years, 7 months ago (2016-05-16 15:01:48 UTC) #76
Primiano Tucci (use gerrit)
On 2016/05/16 15:01:48, martyn.capewell wrote: > Rodolph's away until next week, but I'll comment. > ...
4 years, 7 months ago (2016-05-16 15:49:04 UTC) #77
martyn.capewell
On 2016/05/16 15:49:04, Primiano Tucci wrote: > So are you saying that worst cast the ...
4 years, 7 months ago (2016-05-16 16:18:10 UTC) #78
Nico
Thanks for catching that. khasim, can you revert the arm_fpu bit of this CL please?
4 years, 7 months ago (2016-05-16 16:21:58 UTC) #79
khasim.mohammed
On 16 May 2016 at 21:51, <thakis@chromium.org> wrote: > Thanks for catching that. khasim, can ...
4 years, 7 months ago (2016-05-16 16:59:23 UTC) #80
khasim.mohammed
On 16 May 2016 at 21:51, <thakis@chromium.org> wrote: > Thanks for catching that. khasim, can ...
4 years, 7 months ago (2016-05-16 16:59:24 UTC) #81
khasim.mohammed
On 2016/05/16 16:59:24, khasim.mohammed wrote: > On 16 May 2016 at 21:51, <mailto:thakis@chromium.org> wrote: > ...
4 years, 7 months ago (2016-05-17 15:46:19 UTC) #82
Primiano Tucci (use gerrit)
A general question: the title of this CL says "Build 64bit browser for Android with ...
4 years, 7 months ago (2016-05-19 15:59:00 UTC) #83
khasim.mohammed
On 19 May 2016 at 21:29, <primiano@chromium.org> wrote: > A general question: the title of ...
4 years, 7 months ago (2016-05-19 17:10:58 UTC) #84
khasim.mohammed
On 19 May 2016 at 21:29, <primiano@chromium.org> wrote: > A general question: the title of ...
4 years, 7 months ago (2016-05-19 17:10:58 UTC) #85
khasim.mohammed
On 19 May 2016 at 22:40, Khasim Syed Mohammed <khasim.mohammed@linaro.org> wrote: > > > On ...
4 years, 7 months ago (2016-05-19 17:14:00 UTC) #86
khasim.mohammed
On 19 May 2016 at 22:40, Khasim Syed Mohammed <khasim.mohammed@linaro.org> wrote: > > > On ...
4 years, 7 months ago (2016-05-19 17:14:01 UTC) #87
Raymond Toy
On 2016/05/19 at 17:14:01, khasim.mohammed wrote: > On 19 May 2016 at 22:40, Khasim Syed ...
4 years, 7 months ago (2016-05-19 17:21:53 UTC) #88
Rodolph.Perfetta_arm.com
I am out of office until the 24th of May 2016 I will reply to ...
4 years, 7 months ago (2016-05-19 17:21:59 UTC) #89
Primiano Tucci (use gerrit)
> On 2016/05/19 at 17:14:01, khasim.mohammed wrote: > > But target_cpu was arm, so it ...
4 years, 7 months ago (2016-05-19 17:26:30 UTC) #90
khasim.mohammed
On 19 May 2016 at 22:56, <primiano@chromium.org> wrote: > > On 2016/05/19 at 17:14:01, khasim.mohammed ...
4 years, 7 months ago (2016-05-19 17:29:03 UTC) #91
khasim.mohammed
On 19 May 2016 at 22:56, <primiano@chromium.org> wrote: > > On 2016/05/19 at 17:14:01, khasim.mohammed ...
4 years, 7 months ago (2016-05-19 17:29:03 UTC) #92
Primiano Tucci (use gerrit)
4 years, 7 months ago (2016-05-19 17:30:11 UTC) #93
Message was sent while issue was closed.
On 2016/05/19 17:29:03, khasim.mohammed wrote:
> > Correct, and we are not forcing anything, it's all controlled by gn args
> it can be arm or arm64.

SG it's all great. Thanks for the clarification.

Powered by Google App Engine
This is Rietveld 408576698