Closed Bug 907303 Opened 11 years ago Closed 11 years ago

AudioNodeEngineNEON.cpp doesn't build on GCC 4.4.3

Categories

(Core :: Web Audio, defect)

ARM
Gonk (Firefox OS)
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla26
Tracking Status
firefox25 --- fixed
firefox26 --- fixed

People

(Reporter: reuben, Assigned: jwwang)

Details

(Whiteboard: [blocking-webaudio-])

Attachments

(2 files)

/Users/Reuben/Development/B2G-master/gecko/content/media/AudioNodeEngineNEON.cpp: In function 'void mozilla::AudioBlockPanStereoToStereo_NEON(const float*, const float*, float, float, bool, float*, float*)':
/Users/Reuben/Development/B2G-master/gecko/content/media/AudioNodeEngineNEON.cpp:249: internal compiler error: in change_address_1, at emit-rtl.c:1954

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48561
jwwang, could you have a look?
Flags: needinfo?(jwwang)
CC'ing ryanvm because the Android build bustage is back.  

This was originally added in m-c revision a232e4df28e5 but was backed out in m-c revision 21dcb96139ee but has since been re-merged in revision 305facc074df and Android build bustage is back.
Here's a patch for m-c tip that backs out 305facc074df and fixes the Android bustage.
(In reply to Dave Huseby [:huseby] from comment #2)
> CC'ing ryanvm because the Android build bustage is back.  

I just landed the patch. jwwang is the one who will need to look into this. That said, GCC 4.4.3? Bleh, isn't that really old?
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #4)
> I just landed the patch. jwwang is the one who will need to look into this.

Thanks!

> That said, GCC 4.4.3? Bleh, isn't that really old?

Yes, you're right but that's the latest and greatest arm toolchain we use for b2g.
I see no build fail on try server: https://tbpl.mozilla.org/?tree=Try&rev=811971fcc280

Btw, the default compiler for B2G is not GCC 4.4.3.
How can I config GCC 4.4.3 to build B2G tree?
Flags: needinfo?(jwwang)
(In reply to comment #6)
> Btw, the default compiler for B2G is not GCC 4.4.3.
> How can I config GCC 4.4.3 to build B2G tree?

<https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Customization_with_the_.userconfig_file#Changing_the_default_host_compiler>
This is about the target compiler (→ ARM), not the host compiler (as far as I know).

The FxOS target tools are controlled by TARGET_TOOLS_PREFIX, which is the string to prepend to "gcc" and "ld" and such to get the desired cross-tools.  And they are GCC 4.4.3 by default (unless you're on a Jelly Bean target, but as I understand it those aren't entirely ready for use yet).
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → ARM
Severity: normal → critical
I am following the steps in https://wiki.mozilla.org/B2G/Profiling#Quick_Start to create a B2G build for profiling where GCC 4.4.3 is used. It turns out to build fine for me. Can you describe the build setup?
Whiteboard: [blocking-webaudio-]
It looks as if this bug needs optimization to be disabled (B2G_NOOPT=1 in .userconfig) to reproduce it.

There shouldn't be a difference between the toolchain I built for profiling and the official toolchain, for this purpose — they're both based on 4.4.3 with the same set of Android patches — and I'm told that the bug happens with both of them.
I think someone who can reproduce this is probably the best person to fix it!  Please ping me on IRC if you can repro and need help fixing this.
Somehow, this patch happens to workaround the bug in GCC 4.4.3.
Attachment #797714 - Flags: review?(ehsan)
Attachment #797714 - Flags: review?(ehsan) → review+
Please check in the patch, builderrorfix.patch (attachment 797714 [details] [diff] [review]), thanks.
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/85ca556d2bcf
Assignee: nobody → jwwang
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Whiteboard: [blocking-webaudio-] → [blocking-webaudio-][checkin-needed-aurora]
https://hg.mozilla.org/releases/mozilla-aurora/rev/40582abc4cd2
Whiteboard: [blocking-webaudio-][checkin-needed-aurora] → [blocking-webaudio-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: