Closed Bug 946553 Opened 11 years ago Closed 10 years ago

B2G build failure with B2G_NOOPT=1

Categories

(Firefox OS Graveyard :: GonkIntegration, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: swu, Unassigned)

Details

Building environment: Ubuntu 12.04 (64-bit)
Target device: Peak phone

When building with B2G_NOOPT=1, it fails with internal compiler error.

Below is the error message:
=========================================================
entropy_coding_neon.o
/home/sywu/work/mozilla-central/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/entropy_coding_neon.c: In function 'WebRtcIsacfix_MatrixProduct1Neon':
/home/sywu/work/mozilla-central/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/entropy_coding_neon.c:44: warning: ISO C90 forbids mixed declarations and code
/home/sywu/work/mozilla-central/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/entropy_coding_neon.c:191: internal compiler error: in change_address_1, at emit-rtl.c:1954
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

In the directory  /home/sywu/work/mozilla-central/objdir-gonk/media/webrtc/trunk/webrtc/modules/modules_isac_neon
The following command failed to execute properly:
/usr/bin/ccache /home/sywu/work/B2G-peak/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc -o entropy_coding_neon.o -c -fvisibility=hidden -DNO_NSPR_10_SUPPORT -DWEBRTC_SVNREVISION="Unavailable_issue687" -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DUSE_NSS=1 -DENABLE_ONE_CLICK_SIGNIN -DGTK_DISABLE_SINGLE_INCLUDES=1 -D_ISOC99_SOURCE=1 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_GPU=1 -DUSE_OPENSSL=1 -DENABLE_EGLIMAGE=1 -DUSE_SKIA=1 -DENABLE_TASK_MANAGER=1 -DENABLE_WEB_INTENTS=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PROTECTOR_SERVICE=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_BACKGROUND=1 -DENABLE_AUTOMATION=1 -DENABLE_PRINTING=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DWEBRTC_GONK -DWEBRTC_LOGGING -DWEBRTC_MOZILLA_BUILD -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_BUILD_NEON_LIBS -DWEBRTC_DETECT_ARM_NEON -DWEBRTC_LINUX -DWEBRTC_ANDROID_OPENSLES -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I. -I/home/sywu/work/mozilla-central/ipc/chromium/src -I/home/sywu/work/mozilla-central/ipc/glue -I../../../../../../ipc/ipdl/_ipdlheaders -I/home/sywu/work/mozilla-central/media/webrtc/trunk/webrtc/modules/.. -I/home/sywu/work/mozilla-central/media/webrtc/trunk/webrtc/modules/../.. -I/home/sywu/work/mozilla-central/media/webrtc/trunk/webrtc/modules/../.. -I/home/sywu/work/mozilla-central/media/webrtc/trunk/webrtc/modules/../common_audio/resampler/include -I/home/sywu/work/mozilla-central/media/webrtc/trunk/webrtc/modules/../common_audio/signal_processing/include -I/home/sywu/work/mozilla-central/media/webrtc/trunk/webrtc/modules/../common_audio/vad/include -I../../../../../../dist/include -fPIC -DANDROID -isystem /home/sywu/work/B2G-peak/bionic/libc/arch-arm/include -isystem /home/sywu/work/B2G-peak/bionic/libc/include/ -isystem /home/sywu/work/B2G-peak/bionic/libc/kernel/common -isystem /home/sywu/work/B2G-peak/bionic/libc/kernel/arch-arm -isystem /home/sywu/work/B2G-peak/bionic/libm/include -I/home/sywu/work/B2G-peak/system -I/home/sywu/work/B2G-peak/system/core/include -isystem /home/sywu/work/B2G-peak/bionic -I/home/sywu/work/B2G-peak/hardware/libhardware/include -I/home/sywu/work/B2G-peak/external/valgrind/fxos-include -I/home/sywu/work/B2G-peak/frameworks/base/opengl/include -I/home/sywu/work/B2G-peak/frameworks/base/native/include -I/home/sywu/work/B2G-peak/frameworks/base/include -I/home/sywu/work/B2G-peak/frameworks/base/services/camera -I/home/sywu/work/B2G-peak/frameworks/base/include/media/stagefright -I/home/sywu/work/B2G-peak/frameworks/base/include/media/stagefright/openmax -I/home/sywu/work/B2G-peak/frameworks/base/media/libstagefright/rtsp -I/home/sywu/work/B2G-peak/frameworks/base/media/libstagefright/include -I/home/sywu/work/B2G-peak/external/dbus -I/home/sywu/work/B2G-peak/external/bluetooth/bluez/lib -I/home/sywu/work/B2G-peak/dalvik/libnativehelper/include/nativehelper -include ../../../../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MP -MF .deps/entropy_coding_neon.o.pp -DANDROID -isystem /home/sywu/work/B2G-peak/bionic/libc/arch-arm/include -isystem /home/sywu/work/B2G-peak/bionic/libc/include/ -isystem /home/sywu/work/B2G-peak/bionic/libc/kernel/common -isystem /home/sywu/work/B2G-peak/bionic/libc/kernel/arch-arm -isystem /home/sywu/work/B2G-peak/bionic/libm/include -I/home/sywu/work/B2G-peak/system -I/home/sywu/work/B2G-peak/system/core/include -isystem /home/sywu/work/B2G-peak/bionic -I/home/sywu/work/B2G-peak/hardware/libhardware/include -I/home/sywu/work/B2G-peak/external/valgrind/fxos-include -I/home/sywu/work/B2G-peak/frameworks/base/opengl/include -I/home/sywu/work/B2G-peak/frameworks/base/native/include -I/home/sywu/work/B2G-peak/frameworks/base/include -I/home/sywu/work/B2G-peak/frameworks/base/services/camera -I/home/sywu/work/B2G-peak/frameworks/base/include/media/stagefright -I/home/sywu/work/B2G-peak/frameworks/base/include/media/stagefright/openmax -I/home/sywu/work/B2G-peak/frameworks/base/media/libstagefright/rtsp -I/home/sywu/work/B2G-peak/frameworks/base/media/libstagefright/include -I/home/sywu/work/B2G-peak/external/dbus -I/home/sywu/work/B2G-peak/external/bluetooth/bluez/lib -I/home/sywu/work/B2G-peak/dalvik/libnativehelper/include/nativehelper -Wall -Wpointer-arith -Wdeclaration-after-statement -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-unused -mandroid -fno-short-enums -fno-exceptions -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=softfp -std=gnu99 -fgnu89-inline -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pipe -DNDEBUG -DTRIMMED -g -funwind-tables -mfpu=neon -flax-vector-conversions /home/sywu/work/mozilla-central/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/entropy_coding_neon.c
make[8]: *** [entropy_coding_neon.o] Error 1
make[7]: *** [webrtc/modules/modules_isac_neon_compile] Error 2
make[6]: *** [compile] Error 2
make[5]: *** [media/webrtc/trunk/compile] Error 2
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [compile] Error 2
make[3]: *** [default] Error 2
make[2]: *** [realbuild] Error 2
make[1]: *** [build] Error 2
make: *** [out/target/product/peak/obj/DATA/gecko_intermediates/gecko] Error 2
=========================================================
Same error occurs when building for Unagi phone.
OK, it's a known issue in gcc 4.4, and gcc 4.6 after Android NDK r8b fixed this issue.
https://code.google.com/p/android/issues/detail?id=22336
Michael, 

There latest Android NDK is r9b, is there plan to upgrade toolchain?
Flags: needinfo?(mwu)
The toolchain we use comes with base version we're derived from. So, on Jellybean, we're already upgraded to gcc 4.7, but on ICS based devices, we're stuck with gcc 4.4.
Flags: needinfo?(mwu)
It is fixed by bug 989890 which excludes isac module from building.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
(In reply to StevenLee[:slee] from comment #5)
> It is fixed by bug 989890 which excludes isac module from building.
Thanks for update.  Bug 989890 seems not a valid bug?
Flags: needinfo?(slee)
(In reply to Shian-Yow Wu [:shianyow] from comment #6)
> (In reply to StevenLee[:slee] from comment #5)
> > It is fixed by bug 989890 which excludes isac module from building.
> Thanks for update.  Bug 989890 seems not a valid bug?
Sorry, it is bug 939890.
Flags: needinfo?(slee)
You need to log in before you can comment on or make changes to this bug.