Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VP9 extension ./generate_libvpx_android_configs.sh: Toolchain is unable to link executables #5922

Closed
T-10001 opened this issue May 21, 2019 · 7 comments
Assignees
Labels

Comments

@T-10001
Copy link

T-10001 commented May 21, 2019

[REQUIRED] Searched documentation and issues

  • Google searched the errors
  • Looked at the libvpx source code git
  • looked at all the issues which had title relevant to VP9 build failing

[REQUIRED] Question

I get error when running the cd ${VP9_EXT_PATH}/jni && ./generate_libvpx_android_configs.sh "${NDK_PATH}

user@ubuntu:~/Downloads/ExoPlayer/extensions/vp9/src/main/jni$ cd ${VP9_EXT_PATH}/jni && ./generate_libvpx_android_configs.sh "${NDK_PATH}"
~/Downloads/ExoPlayer/extensions/vp9/src/main/jni/libvpx_android_configs/armeabi-v7a ~/Downloads/ExoPlayer/extensions/vp9/src/main/jni
build_android_configs: 
configure --target=armv7-android-gcc --sdk-path=/home/user/Downloads/android-ndk-r19c --enable-neon --enable-neon-asm --disable-examples --disable-docs --enable-realtime-only --disable-vp8 --disable-vp9-encoder --disable-webm-io --disable-libyuv --disable-runtime-cpu-detect
  disabling examples
  disabling docs
  enabling realtime_only
  disabling vp8
  disabling vp9_encoder
  disabling webm_io
  disabling libyuv
  disabling runtime_cpu_detect
  enabling vp9_decoder
Configuring for target 'armv7-android-gcc'
  enabling armv7
Toolchain is unable to link executables

Configuration failed. This could reflect a misconfiguration of your
toolchains, improper options selected, or another problem. If you
don't see any useful error messages above, the next step is to look
at the configure error log file (config.log) to determine what
configure was trying to do when it died.

config.log for armeabi-v7a:

# ../../libvpx/configure --target=armv7-android-gcc --sdk-path=/home/user/Downloads/android-ndk-r19c --enable-neon --enable-neon-asm --disable-examples --disable-docs --enable-realtime-only --disable-vp8 --disable-vp9-encoder --disable-webm-io --disable-libyuv --disable-runtime-cpu-detect --extra-cflags=     -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi     -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include     
  enabling vp9_decoder
Configuring for target 'armv7-android-gcc'
  enabling armv7
check_cpp
BEGIN /tmp/vpx-conf-17845-25124.c
     1	#ifndef __ARM_PCS_VFP
     2	#error "not hardfp"
     3	#endif
END /tmp/vpx-conf-17845-25124.c
gcc -E -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
/tmp/vpx-conf-17845-25124.c:2:2: error: #error "not hardfp"
 #error "not hardfp"
  ^~~~~
check_cxxflags -march=armv7-a -mfloat-abi=softfp
check_cxx -Werror -march=armv7-a -mfloat-abi=softfp
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
g++ -Werror -march=armv7-a -mfloat-abi=softfp -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
g++: error: unrecognized command line option ‘-mfloat-abi=softfp’
check_cflags -march=armv7-a -mfloat-abi=softfp
check_cc -Werror -march=armv7-a -mfloat-abi=softfp
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
gcc -Werror -march=armv7-a -mfloat-abi=softfp -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
gcc: error: unrecognized command line option ‘-mfloat-abi=softfp’
add_asflags -march=armv7-a -mfloat-abi=softfp
check_cxxflags -mfpu=neon
check_cxx -Werror -mfpu=neon
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
g++ -Werror -mfpu=neon -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
g++: error: unrecognized command line option ‘-mfpu=neon’
check_cflags -mfpu=neon
check_cc -Werror -mfpu=neon
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
gcc -Werror -mfpu=neon -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
gcc: error: unrecognized command line option ‘-mfpu=neon’
add_asflags -mfpu=neon
add_asflags --defsym ARCHITECTURE=7
check_cxxflags -DNDEBUG
check_cxx -Werror -DNDEBUG
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -Werror -DNDEBUG -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -DNDEBUG
check_cc -Werror -DNDEBUG
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -Werror -DNDEBUG -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -O3
check_cxx -Werror -O3
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -Werror -O3 -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -O3
check_cc -Werror -O3
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -Werror -O3 -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -fPIC
check_cxx -Werror -fPIC
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -Werror -fPIC -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -fPIC
check_cc -Werror -fPIC
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -Werror -fPIC -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cc
BEGIN /tmp/vpx-conf-17845-25124.c
     1	unsigned int e = 'O'<<24 | '2'<<16 | 'B'<<8 | 'E';
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cc
BEGIN /tmp/vpx-conf-17845-25124.c
     1	static inline function() {}
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
/tmp/vpx-conf-17845-25124.c:1:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static inline function() {}
~~~~~~~~~~~~~ ^
/tmp/vpx-conf-17845-25124.c:1:27: warning: control reaches end of non-void function [-Wreturn-type]
static inline function() {}
                          ^
2 warnings generated.
check_cxxflags -Wall
check_cxx -Werror -Wall
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Werror -Wall -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wall
check_cc -Werror -Wall
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Werror -Wall -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wdeclaration-after-statement
check_cxx -Werror -Wdeclaration-after-statement
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Werror -Wdeclaration-after-statement -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wdeclaration-after-statement
check_cc -Werror -Wdeclaration-after-statement
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Werror -Wdeclaration-after-statement -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wdisabled-optimization
check_cxx -Werror -Wdisabled-optimization
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Werror -Wdisabled-optimization -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wdisabled-optimization
check_cc -Werror -Wdisabled-optimization
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Werror -Wdisabled-optimization -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wfloat-conversion
check_cxx -Werror -Wfloat-conversion
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Werror -Wfloat-conversion -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wfloat-conversion
check_cc -Werror -Wfloat-conversion
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Werror -Wfloat-conversion -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wparentheses-equality
check_cxx -Werror -Wparentheses-equality
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Werror -Wparentheses-equality -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wparentheses-equality
check_cc -Werror -Wparentheses-equality
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Werror -Wparentheses-equality -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wpointer-arith
check_cxx -Werror -Wpointer-arith
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Werror -Wpointer-arith -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wpointer-arith
check_cc -Werror -Wpointer-arith
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Werror -Wpointer-arith -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wtype-limits
check_cxx -Werror -Wtype-limits
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Werror -Wtype-limits -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wtype-limits
check_cc -Werror -Wtype-limits
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Werror -Wtype-limits -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wcast-qual
check_cxx -Werror -Wcast-qual
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Werror -Wcast-qual -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wcast-qual
check_cc -Werror -Wcast-qual
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Werror -Wcast-qual -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wvla
check_cxx -Werror -Wvla
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Werror -Wvla -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wvla
check_cc -Werror -Wvla
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Werror -Wvla -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wimplicit-function-declaration
check_cxx -Werror -Wimplicit-function-declaration
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Werror -Wimplicit-function-declaration -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wimplicit-function-declaration
check_cc -Werror -Wimplicit-function-declaration
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Werror -Wimplicit-function-declaration -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wuninitialized
check_cxx -Werror -Wuninitialized
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Werror -Wuninitialized -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wuninitialized
check_cc -Werror -Wuninitialized
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Werror -Wuninitialized -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wunused
check_cxx -Werror -Wunused
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Werror -Wunused -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wunused
check_cc -Werror -Wunused
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Werror -Wunused -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wextra
check_cxx -Werror -Wextra
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Werror -Wextra -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -Wextra
check_cc -Werror -Wextra
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Werror -Wextra -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cflags -Wundef
check_cc -Werror -Wundef
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Werror -Wundef -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cflags -Wframe-larger-than=52000
check_cc -Werror -Wframe-larger-than=52000
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Werror -Wframe-larger-than=52000 -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cflags -Wshorten-64-to-32
check_cc -Werror -Wshorten-64-to-32
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -Werror -Wshorten-64-to-32 -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_cxxflags -Wno-psabi
check_cxx -Werror -Wno-psabi
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Werror -Wno-psabi -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
error: unknown warning option '-Wno-psabi' [-Werror,-Wunknown-warning-option]
check_cxxflags -std=c++11
check_cxx -Werror -std=c++11
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Werror -std=c++11 -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cxxflags -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include
check_cxx -Werror -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include
BEGIN /tmp/vpx-conf-17845-25124.cc
     1	int x;
END /tmp/vpx-conf-17845-25124.cc
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -std=c++11 -Werror -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.cc
check_cflags -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include
check_cc -Werror -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -Wshorten-64-to-32 -Werror -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_header stdio.h
check_cpp
BEGIN /tmp/vpx-conf-17845-25124.c
     1	#include "stdio.h"
     2	int x;
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -Wshorten-64-to-32 -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include -E -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
check_ld
check_cc
BEGIN /tmp/vpx-conf-17845-25124.c
     1	int main(void) {return 0;}
END /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -Wshorten-64-to-32 -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r19c/sysroot/usr/include -c -o /tmp/vpx-conf-17845-25124.o /tmp/vpx-conf-17845-25124.c
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r19c/platforms/android-28/arch-arm -Wl,--fix-cortex-a8 -o /tmp/vpx-conf-17845-25124.x /tmp/vpx-conf-17845-25124.o
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lunwind
/home/user/Downloads/android-ndk-r19c/unified-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lunwind
clang80: error: linker command failed with exit code 1 (use -v to see invocation)

I may have seen similar errors, reported but I didn't find any solution or any that worked.
How to fix it?

@erdemguven
Copy link
Contributor

I can reproduce this. I tried a range of NDKs from r10e to r19c.

@andrewlewis
Copy link
Collaborator

It looks like this may have been broken by 3169b14. The extension builds correctly for me with v1.7.0 and NDK r16.

@andrewlewis
Copy link
Collaborator

Another option that works for me is to switching generate_libvpx_configs to configure libvpx to do an external build, using NDK r19c and leaving the libvpx sources in v1.8.0.

@T-10001
Copy link
Author

T-10001 commented May 24, 2019

Another option that works for me is to switching generate_libvpx_configs to configure libvpx to do an external build, using NDK r19c and leaving the libvpx sources in v1.8.0.

@andrewlewis How do I do that?

@T-10001
Copy link
Author

T-10001 commented May 24, 2019

I checked out branch v1.7.0

user@ubuntu:~/Downloads/ExoPlayer/extensions/vp9/src/main/jni/libvpx$ git checkout -b v1.7.0
Switched to a new branch 'v1.7.0

and then tried with NDK r16b, but also didn't work:

user@ubuntu:~/Downloads/ExoPlayer/extensions/vp9/src/main/jni$ ./generate_libvpx_android_configs.sh "${NDK_PATH}"
~/Downloads/ExoPlayer/extensions/vp9/src/main/jni/libvpx_android_configs/armeabi-v7a ~/Downloads/ExoPlayer/extensions/vp9/src/main/jni
build_android_configs: 
configure --target=armv7-android-gcc --sdk-path=/home/user/Downloads/android-ndk-r16b --enable-neon --enable-neon-asm --disable-examples --disable-docs --enable-realtime-only --disable-vp8 --disable-vp9-encoder --disable-webm-io --disable-libyuv --disable-runtime-cpu-detect
  disabling examples
  disabling docs
  enabling realtime_only
  disabling vp8
  disabling vp9_encoder
  disabling webm_io
  disabling libyuv
  disabling runtime_cpu_detect
  enabling vp9_decoder
Configuring for target 'armv7-android-gcc'
  enabling armv7
Unable to find arm_neon.h

Configuration failed. This could reflect a misconfiguration of your
toolchains, improper options selected, or another problem. If you
don't see any useful error messages above, the next step is to look
at the configure error log file (config.log) to determine what
configure was trying to do when it died.

config.log for armeabi-v7a:

# ../../libvpx/configure --target=armv7-android-gcc --sdk-path=/home/user/Downloads/android-ndk-r16b --enable-neon --enable-neon-asm --disable-examples --disable-docs --enable-realtime-only --disable-vp8 --disable-vp9-encoder --disable-webm-io --disable-libyuv --disable-runtime-cpu-detect --extra-cflags=     -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi     -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include     
  enabling vp9_decoder
Configuring for target 'armv7-android-gcc'
  enabling armv7
check_cpp
BEGIN /tmp/vpx-conf-13348-4915.c
     1	#ifndef __ARM_PCS_VFP
     2	#error "not hardfp"
     3	#endif
END /tmp/vpx-conf-13348-4915.c
gcc -E -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
/tmp/vpx-conf-13348-4915.c:2:2: error: #error "not hardfp"
 #error "not hardfp"
  ^~~~~
check_cxxflags -march=armv7-a -mfloat-abi=softfp
check_cxx -Werror -march=armv7-a -mfloat-abi=softfp
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
g++ -Werror -march=armv7-a -mfloat-abi=softfp -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
g++: error: unrecognized command line option ‘-mfloat-abi=softfp’
check_cflags -march=armv7-a -mfloat-abi=softfp
check_cc -Werror -march=armv7-a -mfloat-abi=softfp
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
gcc -Werror -march=armv7-a -mfloat-abi=softfp -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
gcc: error: unrecognized command line option ‘-mfloat-abi=softfp’
add_asflags -march=armv7-a -mfloat-abi=softfp
check_cxxflags -mfpu=neon
check_cxx -Werror -mfpu=neon
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
g++ -Werror -mfpu=neon -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
g++: error: unrecognized command line option ‘-mfpu=neon’
check_cflags -mfpu=neon
check_cc -Werror -mfpu=neon
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
gcc -Werror -mfpu=neon -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
gcc: error: unrecognized command line option ‘-mfpu=neon’
add_asflags -mfpu=neon
add_asflags --defsym ARCHITECTURE=7
check_cxxflags -DNDEBUG
check_cxx -Werror -DNDEBUG
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -Werror -DNDEBUG -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -DNDEBUG
check_cc -Werror -DNDEBUG
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -Werror -DNDEBUG -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -O3
check_cxx -Werror -O3
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -Werror -O3 -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -O3
check_cc -Werror -O3
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -Werror -O3 -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -fPIC
check_cxx -Werror -fPIC
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -Werror -fPIC -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -fPIC
check_cc -Werror -fPIC
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -Werror -fPIC -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cc
BEGIN /tmp/vpx-conf-13348-4915.c
     1	unsigned int e = 'O'<<24 | '2'<<16 | 'B'<<8 | 'E';
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cc
BEGIN /tmp/vpx-conf-13348-4915.c
     1	static inline function() {}
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wall
check_cxx -Werror -Wall
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Werror -Wall -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -Wall
check_cc -Werror -Wall
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Werror -Wall -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wdeclaration-after-statement
check_cxx -Werror -Wdeclaration-after-statement
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Werror -Wdeclaration-after-statement -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
cc1plus: error: command line option '-Wdeclaration-after-statement' is valid for C/ObjC but not for C++ [-Werror]
cc1plus: all warnings being treated as errors
check_cflags -Wdeclaration-after-statement
check_cc -Werror -Wdeclaration-after-statement
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Werror -Wdeclaration-after-statement -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wdisabled-optimization
check_cxx -Werror -Wdisabled-optimization
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Werror -Wdisabled-optimization -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -Wdisabled-optimization
check_cc -Werror -Wdisabled-optimization
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Werror -Wdisabled-optimization -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wfloat-conversion
check_cxx -Werror -Wfloat-conversion
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Werror -Wfloat-conversion -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -Wfloat-conversion
check_cc -Werror -Wfloat-conversion
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Werror -Wfloat-conversion -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wparentheses-equality
check_cxx -Werror -Wparentheses-equality
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Werror -Wparentheses-equality -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
arm-linux-androideabi-g++: error: unrecognized command line option '-Wparentheses-equality'
check_cflags -Wparentheses-equality
check_cc -Werror -Wparentheses-equality
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Werror -Wparentheses-equality -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
arm-linux-androideabi-gcc: error: unrecognized command line option '-Wparentheses-equality'
check_cxxflags -Wpointer-arith
check_cxx -Werror -Wpointer-arith
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Werror -Wpointer-arith -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -Wpointer-arith
check_cc -Werror -Wpointer-arith
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Werror -Wpointer-arith -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wtype-limits
check_cxx -Werror -Wtype-limits
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Werror -Wtype-limits -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -Wtype-limits
check_cc -Werror -Wtype-limits
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Werror -Wtype-limits -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wcast-qual
check_cxx -Werror -Wcast-qual
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Werror -Wcast-qual -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -Wcast-qual
check_cc -Werror -Wcast-qual
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Werror -Wcast-qual -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wvla
check_cxx -Werror -Wvla
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Werror -Wvla -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -Wvla
check_cc -Werror -Wvla
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Werror -Wvla -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wimplicit-function-declaration
check_cxx -Werror -Wimplicit-function-declaration
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Werror -Wimplicit-function-declaration -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
cc1plus: error: command line option '-Wimplicit-function-declaration' is valid for C/ObjC but not for C++ [-Werror]
cc1plus: all warnings being treated as errors
check_cflags -Wimplicit-function-declaration
check_cc -Werror -Wimplicit-function-declaration
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Werror -Wimplicit-function-declaration -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wuninitialized
check_cxx -Werror -Wuninitialized
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Werror -Wuninitialized -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -Wuninitialized
check_cc -Werror -Wuninitialized
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Werror -Wuninitialized -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wunused
check_cxx -Werror -Wunused
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wuninitialized -Werror -Wunused -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -Wunused
check_cc -Werror -Wunused
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Werror -Wunused -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cxxflags -Wextra
check_cxx -Werror -Wextra
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wuninitialized -Wunused -Werror -Wextra -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -Wextra
check_cc -Werror -Wextra
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Werror -Wextra -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cflags -Wundef
check_cc -Werror -Wundef
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Werror -Wundef -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cflags -Wframe-larger-than=52000
check_cc -Werror -Wframe-larger-than=52000
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Werror -Wframe-larger-than=52000 -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_cflags -Wshorten-64-to-32
check_cc -Werror -Wshorten-64-to-32
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -Werror -Wshorten-64-to-32 -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
arm-linux-androideabi-gcc: error: unrecognized command line option '-Wshorten-64-to-32'
check_cxxflags -Wno-psabi
check_cxx -Werror -Wno-psabi
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wuninitialized -Wunused -Wextra -Werror -Wno-psabi -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cxxflags -std=c++11
check_cxx -Werror -std=c++11
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wuninitialized -Wunused -Wextra -Wno-psabi -Werror -std=c++11 -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cxxflags -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include
check_cxx -Werror -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include
BEGIN /tmp/vpx-conf-13348-4915.cc
     1	int x;
END /tmp/vpx-conf-13348-4915.cc
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wuninitialized -Wunused -Wextra -Wno-psabi -std=c++11 -Werror -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.cc
check_cflags -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include
check_cc -Werror -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -Werror -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_header stdio.h
check_cpp
BEGIN /tmp/vpx-conf-13348-4915.c
     1	#include "stdio.h"
     2	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include -E -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_ld
check_cc
BEGIN /tmp/vpx-conf-13348-4915.c
     1	int main(void) {return 0;}
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -Wl,--fix-cortex-a8 -o /tmp/vpx-conf-13348-4915.x /tmp/vpx-conf-13348-4915.o
check_header pthread.h
check_cpp
BEGIN /tmp/vpx-conf-13348-4915.c
     1	#include "pthread.h"
     2	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include -E -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_lib -lpthread
check_cc -lpthread
BEGIN /tmp/vpx-conf-13348-4915.c
     1	#include <pthread.h>
     2	#include <stddef.h>
     3	int main(void) { return pthread_create(NULL, NULL, NULL, NULL); }
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include -lpthread -c -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -Wl,--fix-cortex-a8 -o /tmp/vpx-conf-13348-4915.x /tmp/vpx-conf-13348-4915.o -lpthread
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpthread
collect2: error: ld returned 1 exit status
check_header unistd.h
check_cpp
BEGIN /tmp/vpx-conf-13348-4915.c
     1	#include "unistd.h"
     2	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include -E -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_header vpx/vpx_integer.h -I../../libvpx
check_cpp -I../../libvpx
BEGIN /tmp/vpx-conf-13348-4915.c
     1	#include "vpx/vpx_integer.h"
     2	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include -I../../libvpx -E -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
check_header arm_neon.h
check_cpp
BEGIN /tmp/vpx-conf-13348-4915.c
     1	#include "arm_neon.h"
     2	int x;
END /tmp/vpx-conf-13348-4915.c
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/user/Downloads/android-ndk-r16b/platforms/android-27/arch-arm -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem /home/user/Downloads/android-ndk-r16b/sysroot/usr/include -E -o /tmp/vpx-conf-13348-4915.o /tmp/vpx-conf-13348-4915.c
In file included from /tmp/vpx-conf-13348-4915.c:1:0:
/home/user/Downloads/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/arm_neon.h:31:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
 #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
  ^

tonihei pushed a commit that referenced this issue May 30, 2019
Update configuration script to use an external build, so we can remove use of
isysroot which is broken in the latest NDK r19c. Also switch from gnustl_static
to c++_static so that ndk-build with NDK r19c succeeds.

Issue: #5922
PiperOrigin-RevId: 250287551
@ojw28 ojw28 closed this as completed May 31, 2019
@T-10001
Copy link
Author

T-10001 commented Jun 1, 2019

@andrewlewis @tonihei @ojw28 I changed the Application.mk and generate_libvpx_android_configs.sh file contents to the contents in the c495a3f commit. But then I get this problem when running ./generate_libvpx_android_configs.sh "${NDK_PATH}" with ndk r19c:

user@ubuntu:~/Downloads/ExoPlayer/extensions/vp9/src/main/jni$ ./generate_libvpx_android_configs.sh "${NDK_PATH}"
Usage: ./generate_libvpx_android_configs.sh

ojw28 pushed a commit that referenced this issue Jun 3, 2019
Update configuration script to use an external build, so we can remove use of
isysroot which is broken in the latest NDK r19c. Also switch from gnustl_static
to c++_static so that ndk-build with NDK r19c succeeds.

Issue: #5922
PiperOrigin-RevId: 250287551
@andrewlewis
Copy link
Collaborator

@s3433557 After that commit the script doesn't expect the NDK path to be passed any more (see the change to the readme in the same commit).

@google google locked and limited conversation to collaborators Oct 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants