AshwanthSelvam / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

android x86 build fails #307

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[50/870] CXX 
obj/content/renderer/gpu/content_renderer.compositor_software_output_device.o
[51/870] STAMP obj/chrome/common.compile_depends.stamp
FAILED: 
/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//toolchains/x
86-4.6/prebuilt/linux-x86_64/bin/i686-linux-android-g++ -MMD -MF 
obj/third_party/libyuv/source/libyuv_neon.compare_neon.o.d 
-DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL 
-DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 
-DUSE_PROPRIETARY_CODECS -DENABLE_CONFIGURATION_POLICY 
-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY 
-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE 
-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUSE_OPENSSL=1 -DENABLE_EGLIMAGE=1 
-DENABLE_AUTOFILL_DIALOG=1 -DCLD_VERSION=1 -DENABLE_PRINTING=1 
-DENABLE_MANAGED_USERS=1 
'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' 
'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' 
'-DSPDY_PROXY_AUTH_VALUE="ac4500dd3b7579186c1b0620614fdb1f7d61f944"' 
'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' 
-DLIBYUV_NEON -DANDROID -D__GNU_SOURCE=1 -DUSE_STLPORT=1 
-D_STLP_USE_PTR_SPECIALIZATIONS=1 '-DCHROME_BUILD_ID="none"' -DHAVE_SYS_UIO_H 
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG 
-I../../third_party/libyuv/include -I../../third_party/libyuv 
--param=ssp-buffer-size=4 -fno-exceptions -fno-strict-aliasing 
-Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe 
-fPIC -mfpu=neon -Wno-format -m32 -mmmx -march=pentium4 -msse2 -mfpmath=sse 
-fuse-ld=gold -ffunction-sections -funwind-tables -g -fno-short-enums 
-finline-limit=64 -Wa,--noexecstack 
--sysroot=/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//pl
atforms/android-14/arch-x86 
-I/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//sources/cx
x-stl/stlport/stlport -fno-stack-protector -Os -g -fomit-frame-pointer 
-fdata-sections -ffunction-sections -funwind-tables -g1 -fno-rtti 
-fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-deprecated  -c 
../../third_party/libyuv/source/compare_neon.cc -o 
obj/third_party/libyuv/source/libyuv_neon.compare_neon.o
cc1plus: error: unrecognized command line option '-mfpu=neon'
FAILED: 
/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//toolchains/x
86-4.6/prebuilt/linux-x86_64/bin/i686-linux-android-g++ -MMD -MF 
obj/third_party/libyuv/source/libyuv_neon.rotate_neon.o.d 
-DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL 
-DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 
-DUSE_PROPRIETARY_CODECS -DENABLE_CONFIGURATION_POLICY 
-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY 
-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE 
-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUSE_OPENSSL=1 -DENABLE_EGLIMAGE=1 
-DENABLE_AUTOFILL_DIALOG=1 -DCLD_VERSION=1 -DENABLE_PRINTING=1 
-DENABLE_MANAGED_USERS=1 
'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' 
'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' 
'-DSPDY_PROXY_AUTH_VALUE="ac4500dd3b7579186c1b0620614fdb1f7d61f944"' 
'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' 
-DLIBYUV_NEON -DANDROID -D__GNU_SOURCE=1 -DUSE_STLPORT=1 
-D_STLP_USE_PTR_SPECIALIZATIONS=1 '-DCHROME_BUILD_ID="none"' -DHAVE_SYS_UIO_H 
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG 
-I../../third_party/libyuv/include -I../../third_party/libyuv 
--param=ssp-buffer-size=4 -fno-exceptions -fno-strict-aliasing 
-Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe 
-fPIC -mfpu=neon -Wno-format -m32 -mmmx -march=pentium4 -msse2 -mfpmath=sse 
-fuse-ld=gold -ffunction-sections -funwind-tables -g -fno-short-enums 
-finline-limit=64 -Wa,--noexecstack 
--sysroot=/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//pl
atforms/android-14/arch-x86 
-I/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//sources/cx
x-stl/stlport/stlport -fno-stack-protector -Os -g -fomit-frame-pointer 
-fdata-sections -ffunction-sections -funwind-tables -g1 -fno-rtti 
-fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-deprecated  -c 
../../third_party/libyuv/source/rotate_neon.cc -o 
obj/third_party/libyuv/source/libyuv_neon.rotate_neon.o
cc1plus: error: unrecognized command line option '-mfpu=neon'
FAILED: 
/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//toolchains/x
86-4.6/prebuilt/linux-x86_64/bin/i686-linux-android-g++ -MMD -MF 
obj/third_party/libyuv/source/libyuv_neon.row_neon.o.d 
-DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL 
-DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 
-DUSE_PROPRIETARY_CODECS -DENABLE_CONFIGURATION_POLICY 
-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY 
-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE 
-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUSE_OPENSSL=1 -DENABLE_EGLIMAGE=1 
-DENABLE_AUTOFILL_DIALOG=1 -DCLD_VERSION=1 -DENABLE_PRINTING=1 
-DENABLE_MANAGED_USERS=1 
'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' 
'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' 
'-DSPDY_PROXY_AUTH_VALUE="ac4500dd3b7579186c1b0620614fdb1f7d61f944"' 
'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' 
-DLIBYUV_NEON -DANDROID -D__GNU_SOURCE=1 -DUSE_STLPORT=1 
-D_STLP_USE_PTR_SPECIALIZATIONS=1 '-DCHROME_BUILD_ID="none"' -DHAVE_SYS_UIO_H 
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG 
-I../../third_party/libyuv/include -I../../third_party/libyuv 
--param=ssp-buffer-size=4 -fno-exceptions -fno-strict-aliasing 
-Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe 
-fPIC -mfpu=neon -Wno-format -m32 -mmmx -march=pentium4 -msse2 -mfpmath=sse 
-fuse-ld=gold -ffunction-sections -funwind-tables -g -fno-short-enums 
-finline-limit=64 -Wa,--noexecstack 
--sysroot=/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//pl
atforms/android-14/arch-x86 
-I/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//sources/cx
x-stl/stlport/stlport -fno-stack-protector -Os -g -fomit-frame-pointer 
-fdata-sections -ffunction-sections -funwind-tables -g1 -fno-rtti 
-fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-deprecated  -c 
../../third_party/libyuv/source/row_neon.cc -o 
obj/third_party/libyuv/source/libyuv_neon.row_neon.o
cc1plus: error: unrecognized command line option '-mfpu=neon'
FAILED: 
/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//toolchains/x
86-4.6/prebuilt/linux-x86_64/bin/i686-linux-android-g++ -MMD -MF 
obj/third_party/libyuv/source/libyuv_neon.scale_neon.o.d 
-DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL 
-DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 
-DUSE_PROPRIETARY_CODECS -DENABLE_CONFIGURATION_POLICY 
-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY 
-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE 
-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUSE_OPENSSL=1 -DENABLE_EGLIMAGE=1 
-DENABLE_AUTOFILL_DIALOG=1 -DCLD_VERSION=1 -DENABLE_PRINTING=1 
-DENABLE_MANAGED_USERS=1 
'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' 
'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' 
'-DSPDY_PROXY_AUTH_VALUE="ac4500dd3b7579186c1b0620614fdb1f7d61f944"' 
'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' 
-DLIBYUV_NEON -DANDROID -D__GNU_SOURCE=1 -DUSE_STLPORT=1 
-D_STLP_USE_PTR_SPECIALIZATIONS=1 '-DCHROME_BUILD_ID="none"' -DHAVE_SYS_UIO_H 
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG 
-I../../third_party/libyuv/include -I../../third_party/libyuv 
--param=ssp-buffer-size=4 -fno-exceptions -fno-strict-aliasing 
-Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe 
-fPIC -mfpu=neon -Wno-format -m32 -mmmx -march=pentium4 -msse2 -mfpmath=sse 
-fuse-ld=gold -ffunction-sections -funwind-tables -g -fno-short-enums 
-finline-limit=64 -Wa,--noexecstack 
--sysroot=/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//pl
atforms/android-14/arch-x86 
-I/b/build/slave/x86-builder/build/src/third_party/android_tools/ndk//sources/cx
x-stl/stlport/stlport -fno-stack-protector -Os -g -fomit-frame-pointer 
-fdata-sections -ffunction-sections -funwind-tables -g1 -fno-rtti 
-fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-deprecated  -c 
../../third_party/libyuv/source/scale_neon.cc -o 
obj/third_party/libyuv/source/libyuv_neon.scale_neon.o
cc1plus: error: unrecognized command line option '-mfpu=neon'
ninja: build stopped: subcommand failed.

/b/build/goma/goma_ctl.sh stop
Killing compiler proxy (pid=32707):  http://127.0.0.1:8088 
done.

@@@STEP_CURSOR compile@@@

Original issue reported on code.google.com by fbarch...@google.com on 14 Jan 2014 at 12:00

GoogleCodeExporter commented 9 years ago
Fixed in r971.  The old code tried to build neon for all android builds, but 
that includes intel and mips.
New gyp file builds just for arm cpus.  Based the gyp on libwebp.gyp.

Original comment by fbarch...@chromium.org on 14 Jan 2014 at 3:24