Chromium Code Reviews

Issue 1187833002: fix armv7 non-neon webrtc builds (Closed)

Created:
5 years, 6 months ago by Mostyn Bramley-Moore
Modified:
5 years, 6 months ago
Reviewers:
Andrew MacDonald, kjellander_webrtc, jridges, zhongwei
CC:
aluebs-webrtc, bjornv1, tterriberry_mozilla.com, webrtc-reviews_webrtc.org
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

fix armv7 non-neon webrtc builds Without this patch, chromium fails to build on armv7 targets that lack NEON, with the following error: ../../third_party/webrtc/common_audio/resampler/sinc_resampler_neon.cc:22:70: error: no 'float webrtc::SincResampler::Convolve_NEON(const float*, const float*, const float*, double)' member function declared in class 'webrtc::SincResampler' I suspect that this problem was unearthed by this previous CL: https://webrtc-codereview.appspot.com/49309004 BUG=webrtc:4002

Patch Set 1 #

Patch Set 2 : attempt to force arm_neon=1 for target arch arm64 #

Patch Set 3 : try another gyp tweak (boy do i hate gyp) #

Patch Set 4 : try setting arm_neon in supplement.gypi #

Patch Set 5 : try nesting a bit #

Patch Set 6 : try a dirty hack instead #

Patch Set 7 : quoting fix #

Total comments: 10
Unified diffs Side-by-side diffs Stats (+3 lines, -3 lines)
M webrtc/common_audio/BUILD.gn View 1 chunk +1 line, -1 line 3 comments
M webrtc/common_audio/common_audio.gyp View 2 chunks +2 lines, -2 lines 7 comments

Messages

Total messages: 20 (4 generated)
Mostyn Bramley-Moore
@kjellander: PTAL. I wonder if arm64 implies NEON is available? I'm not sure if this ...
5 years, 6 months ago (2015-06-15 07:23:54 UTC) #2
kjellander_webrtc
lgtm, and yes: this is the right issue tracker (changed recently). I'd prefer if Andrew ...
5 years, 6 months ago (2015-06-15 07:39:22 UTC) #4
kjellander_webrtc
Oh, I'll have to take that back, this does not lgtm in the currents state ...
5 years, 6 months ago (2015-06-15 07:40:23 UTC) #5
Mostyn Bramley-Moore
Sure- I will try to fix this after lunch.
5 years, 6 months ago (2015-06-15 08:00:22 UTC) #6
Andrew MacDonald
We have the same condition in other places, e.g.: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/webrtc/modules/audio_processing/audio_processing.gypi&l=248 so I'd like to understand ...
5 years, 6 months ago (2015-06-17 03:29:24 UTC) #7
Andrew MacDonald
+Zhongwei, since he's been making changes around this. I have a quick example here of ...
5 years, 6 months ago (2015-06-17 05:36:33 UTC) #9
Mostyn Bramley-Moore
https://codereview.webrtc.org/1187833002/diff/120001/webrtc/common_audio/BUILD.gn File webrtc/common_audio/BUILD.gn (right): https://codereview.webrtc.org/1187833002/diff/120001/webrtc/common_audio/BUILD.gn#newcode132 webrtc/common_audio/BUILD.gn:132: if (rtc_build_armv7_neon) { On 2015/06/17 05:36:32, andrew wrote: > ...
5 years, 6 months ago (2015-06-17 07:42:26 UTC) #10
Mostyn Bramley-Moore
On 2015/06/17 03:29:24, andrew wrote: > We have the same condition in other places, e.g.: ...
5 years, 6 months ago (2015-06-17 08:07:55 UTC) #11
zhongwei
On 2015/06/17 08:07:55, Mostyn Bramley-Moore wrote: > On 2015/06/17 03:29:24, andrew wrote: > > We ...
5 years, 6 months ago (2015-06-17 11:44:15 UTC) #12
zhongwei
https://codereview.webrtc.org/1187833002/diff/120001/webrtc/common_audio/common_audio.gyp File webrtc/common_audio/common_audio.gyp (right): https://codereview.webrtc.org/1187833002/diff/120001/webrtc/common_audio/common_audio.gyp#newcode149 webrtc/common_audio/common_audio.gyp:149: ['(arm_version>=7 and (arm_neon==1 or arm_neon_optional==1)) or target_arch=="arm64"', { target_arch=="arm64" ...
5 years, 6 months ago (2015-06-17 11:44:50 UTC) #13
jridges
https://codereview.webrtc.org/1187833002/diff/120001/webrtc/common_audio/BUILD.gn File webrtc/common_audio/BUILD.gn (right): https://codereview.webrtc.org/1187833002/diff/120001/webrtc/common_audio/BUILD.gn#newcode132 webrtc/common_audio/BUILD.gn:132: if (rtc_build_armv7_neon) { On 2015/06/17 07:42:26, Mostyn Bramley-Moore wrote: ...
5 years, 6 months ago (2015-06-17 15:56:50 UTC) #15
Mostyn Bramley-Moore
This CL is partially obsoleted by https://codereview.webrtc.org/1181373004 - I will wait for that to land ...
5 years, 6 months ago (2015-06-17 21:19:01 UTC) #16
Andrew MacDonald
On 2015/06/17 21:19:01, Mostyn Bramley-Moore wrote: > This CL is partially obsoleted by https://codereview.webrtc.org/1181373004 - ...
5 years, 6 months ago (2015-06-17 21:25:41 UTC) #17
Mostyn Bramley-Moore
> I _think_ it should be fully obsoleted ;) > > Am I missing anything ...
5 years, 6 months ago (2015-06-17 21:56:24 UTC) #18
Andrew MacDonald
On 2015/06/17 21:56:24, Mostyn Bramley-Moore wrote: > > I _think_ it should be fully obsoleted ...
5 years, 6 months ago (2015-06-17 21:59:25 UTC) #19
Mostyn Bramley-Moore
5 years, 6 months ago (2015-06-18 08:00:31 UTC) #20
On 2015/06/17 21:59:25, andrew wrote:
> On 2015/06/17 21:56:24, Mostyn Bramley-Moore wrote:
> > > I _think_ it should be fully obsoleted ;)
> > > 
> > > Am I missing anything from the other one?
> > 
> > I didn't notice that https://codereview.webrtc.org/1181373004 had been
> updated-
> > it looks sufficient now.  I will try to confirm that tomorrow morning.
> 
> Great, thanks.

Patchset 4 of https://codereview.webrtc.org/1181373004 WFM - closing this issue.

Powered by Google App Engine