Compiling QtAV Library for Android - android

for more than a week now i am trying to build QtAV 1.12.0 for Android from a Windows 10 Machine, following these instructions:
https://github.com/wang-bin/QtAV/wiki/Build-QtAV
I am using
QtAV 1.12.0 from git.
Qt 5.12.4 (tried 5.14.0 but refering to https://github.com/wang-bin/QtAV/issues/1262 there are different/new issues)
JDK 1.8.0
NDK 19.2 (tried 21.1 as well)
Android SDK 26.1.1
ffmpeg dependencies: ffmpeg-3.1.4-anrdoid-armv7a-clang from here:
https://sourceforge.net/projects/qtav/files/depends/FFmpeg/android/
i tried different android ffmpeg dependencies from that page, all resulting in the same (or even earlier) errors.
Copied ffmpeg dependencies (/lib, /include, /share, ...) to the ..\Qt\Qt5.12.4\5.12.4\android_armv7 Folder
Copied ffmpeg dependencies to the Project root dir and added the INCLUDEPATH and LIBS to qtav.pro file (and later even to .qmake.conf)
Android Device setup is fine except for the OpenSSL part. I guess this is not relevant, right? (I can deploy my applications to my android phone anyway.)
I am using Qt Creator 4.12.3 to build and i am facing errors. The build process aborts at 108 warnings and 2 errors:
error: cannot find -lass
clang++.exe:-1: Fehler: error: linker command failed with exit code 1 (use -v to see invocation)
but in the /config.log way earlier errors occur, which i think may cascade down to the result above:
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -Wl,--exclude-libs,libunwind.a --sysroot=C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/platforms/android-16/arch-arm/ -Wl,--enable-new-dtags -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libavresample.so -o libavresample.so main.obj -lavresample -LC:/Qt/Qt5.12.4/5.12.4/android_armv7/lib -LC:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++.so.16 -llog -lz -lm -ldl -lc
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: cannot find -lavresample
> clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
> mingw32-make: *** [Makefile:71: libavresample.so] Error 1
test avresample FAILED
executing config test avfilter
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\avfilter && C:\Qt\Qt5.12.4\5.12.4\android_armv7\bin\qmake.exe -spec C:/Qt/Qt5.12.4/5.12.4/android_armv7/mkspecs/android-clang "CONFIG -= qt debug_and_release app_bundle lib_bundle" C:/QtAV/config.tests/avfilter
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\avfilter && set MAKEFLAGS=& mingw32-make
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot/usr/include/arm-linux-androideabi -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/android/support/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -mthumb -Oz -std=gnu++11 -Wall -W -fPIC -D__STDC_CONSTANT_MACROS -IC:\QtAV\config.tests\avfilter -I. -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\include -IC:\QtAV\contrib\dxsdk -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\mkspecs\android-clang -o main.obj C:\QtAV\config.tests\avfilter\main.cpp
> del libavfilter.so
> C:\build-QtAV-USERDEF_Android\config.tests\avfilter\libavfilter.so konnte nicht gefunden werden
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -Wl,--exclude-libs,libunwind.a --sysroot=C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/platforms/android-16/arch-arm/ -Wl,--enable-new-dtags -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libavfilter.so -o libavfilter.so main.obj -lavfilter -LC:/Qt/Qt5.12.4/5.12.4/android_armv7/lib -LC:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++.so.16 -llog -lz -lm -ldl -lc
test avfilter succeeded
executing config test avdevice
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\avdevice && C:\Qt\Qt5.12.4\5.12.4\android_armv7\bin\qmake.exe -spec C:/Qt/Qt5.12.4/5.12.4/android_armv7/mkspecs/android-clang "CONFIG -= qt debug_and_release app_bundle lib_bundle" C:/QtAV/config.tests/avdevice
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\avdevice && set MAKEFLAGS=& mingw32-make
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot/usr/include/arm-linux-androideabi -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/android/support/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -mthumb -Oz -std=gnu++11 -Wall -W -fPIC -D__STDC_CONSTANT_MACROS -IC:\QtAV\config.tests\avdevice -I. -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\include -IC:\QtAV\contrib\dxsdk -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\mkspecs\android-clang -o main.obj C:\QtAV\config.tests\avdevice\main.cpp
> del libavdevice.so
> C:\build-QtAV-USERDEF_Android\config.tests\avdevice\libavdevice.so konnte nicht gefunden werden
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -Wl,--exclude-libs,libunwind.a --sysroot=C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/platforms/android-16/arch-arm/ -Wl,--enable-new-dtags -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libavdevice.so -o libavdevice.so main.obj -lavdevice -LC:/Qt/Qt5.12.4/5.12.4/android_armv7/lib -LC:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++.so.16 -llog -lz -lm -ldl -lc
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: cannot find -lavdevice
> clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
> mingw32-make: *** [Makefile:71: libavdevice.so] Error 1
test avdevice FAILED
executing config test sse4_1
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\sse4_1 && C:\Qt\Qt5.12.4\5.12.4\android_armv7\bin\qmake.exe -spec C:/Qt/Qt5.12.4/5.12.4/android_armv7/mkspecs/android-clang "CONFIG -= qt debug_and_release app_bundle lib_bundle" C:/QtAV/config.tests/sse4_1
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\sse4_1 && set MAKEFLAGS=& mingw32-make
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot/usr/include/arm-linux-androideabi -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/android/support/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -msse4.1 -g -g -marm -O0 -std=gnu++11 -Wall -W -fPIC -IC:\QtAV\config.tests\sse4_1 -I. -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\mkspecs\android-clang -o sse4_1.obj C:\QtAV\config.tests\sse4_1\sse4_1.cpp
> clang++.exe: warning: argument unused during compilation: '-msse4.1' [-Wunused-command-line-argument]
> In file included from C:\QtAV\config.tests\sse4_1\sse4_1.cpp:42:
> In file included from C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\smmintrin.h:27:
> In file included from C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\tmmintrin.h:27:
> In file included from C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\pmmintrin.h:27:
> In file included from C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\emmintrin.h:27:
> In file included from C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\xmmintrin.h:27:
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:47:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
> __builtin_ia32_emms();
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:47:5: note: '__builtin_isless' declared here
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:47:25: error: too few arguments to function call, expected 2, have 0
> __builtin_ia32_emms();
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:64:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
> return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:81:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
> return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:143:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
> return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:173:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
> return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:203:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
> return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:230:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
> return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:253:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
> return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:274:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
> return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:301:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
> return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:324:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
> return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:345:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
> return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:366:19: error: use of undeclared identifier '__builtin_ia32_paddb'
> return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:387:19: error: use of undeclared identifier '__builtin_ia32_paddw'
> return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:408:19: error: use of undeclared identifier '__builtin_ia32_paddd'
> return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:430:19: error: use of undeclared identifier '__builtin_ia32_paddsb'
> return (__m64)__builtin_ia32_paddsb((__v8qi)__m1, (__v8qi)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:453:19: error: use of undeclared identifier '__builtin_ia32_paddsw'
> return (__m64)__builtin_ia32_paddsw((__v4hi)__m1, (__v4hi)__m2);
> ^
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\include\mmintrin.h:475:19: error: use of undeclared identifier '__builtin_ia32_paddusb'
> return (__m64)__builtin_ia32_paddusb((__v8qi)__m1, (__v8qi)__m2);
> ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
> mingw32-make: *** [Makefile:438: sse4_1.obj] Error 1
test sse4_1 FAILED
executing config test openal
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\openal && C:\Qt\Qt5.12.4\5.12.4\android_armv7\bin\qmake.exe -spec C:/Qt/Qt5.12.4/5.12.4/android_armv7/mkspecs/android-clang "CONFIG -= qt debug_and_release app_bundle lib_bundle" C:/QtAV/config.tests/openal
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\openal && set MAKEFLAGS=& mingw32-make
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot/usr/include/arm-linux-androideabi -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/android/support/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -O2 -O2 -mthumb -IC:\QtAV\config.tests\openal -I. -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\include -IC:\QtAV\contrib\dxsdk -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\mkspecs\android-clang -o main.obj C:\QtAV\config.tests\openal\main.cpp
> del libopenal.a
> C:\build-QtAV-USERDEF_Android\config.tests\openal\libopenal.a konnte nicht gefunden werden
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar cqs libopenal.a main.obj
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ranlib libopenal.a
test openal succeeded
executing config test libass
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\libass && C:\Qt\Qt5.12.4\5.12.4\android_armv7\bin\qmake.exe -spec C:/Qt/Qt5.12.4/5.12.4/android_armv7/mkspecs/android-clang "CONFIG -= qt debug_and_release app_bundle lib_bundle" C:/QtAV/config.tests/libass
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\libass && set MAKEFLAGS=& mingw32-make
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot/usr/include/arm-linux-androideabi -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/android/support/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -O2 -O2 -mthumb -IC:\QtAV\config.tests\libass -I. -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\include -IC:\QtAV\contrib\dxsdk -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\mkspecs\android-clang -o main.obj C:\QtAV\config.tests\libass\main.cpp
> del liblibass.a
> C:\build-QtAV-USERDEF_Android\config.tests\libass\liblibass.a konnte nicht gefunden werden
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar cqs liblibass.a main.obj
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ranlib liblibass.a
test libass succeeded
executing config test uchardet
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\uchardet && C:\Qt\Qt5.12.4\5.12.4\android_armv7\bin\qmake.exe -spec C:/Qt/Qt5.12.4/5.12.4/android_armv7/mkspecs/android-clang "CONFIG -= qt debug_and_release app_bundle lib_bundle" C:/QtAV/config.tests/uchardet
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\uchardet && set MAKEFLAGS=& mingw32-make
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot/usr/include/arm-linux-androideabi -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/android/support/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -mthumb -Oz -std=gnu++11 -Wall -W -fPIC -IC:\QtAV\config.tests\uchardet -I. -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\include -IC:\QtAV\contrib\dxsdk -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\mkspecs\android-clang -o main.obj C:\QtAV\config.tests\uchardet\main.cpp
> C:\QtAV\config.tests\uchardet\main.cpp:21:10: fatal error: 'uchardet/uchardet.h' file not found
> #include
> ^~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> mingw32-make: *** [Makefile:451: main.obj] Error 1
test uchardet FAILED
executing config test libcedarv
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\libcedarv && C:\Qt\Qt5.12.4\5.12.4\android_armv7\bin\qmake.exe -spec C:/Qt/Qt5.12.4/5.12.4/android_armv7/mkspecs/android-clang "CONFIG -= qt debug_and_release app_bundle lib_bundle" C:/QtAV/config.tests/libcedarv
+ cd /d C:\build-QtAV-USERDEF_Android\config.tests\libcedarv && set MAKEFLAGS=& mingw32-make
> C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sysroot/usr/include/arm-linux-androideabi -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/android/support/include -isystem C:\Users\User\AppData\Local\Android\Sdk\ndk\19.2.5345600/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -mthumb -Oz -std=gnu++11 -Wall -W -fPIC -IC:\QtAV\config.tests\libcedarv -I. -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\include -IC:\QtAV\contrib\dxsdk -IC:\Qt\Qt5.12.4\5.12.4\android_armv7\mkspecs\android-clang -o main.obj C:\QtAV\config.tests\libcedarv\main.cpp
> C:\QtAV\config.tests\libcedarv\main.cpp:21:10: fatal error: 'libcedarv/libcedarv.h' file not found
> #include
> ^~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> mingw32-make: *** [Makefile:451: main.obj] Error 1
test libcedarv FAILED
I am not tied to a specific SDK / NDK / Qt / QtAV Version.
I successfully built QtAV for MSVC2017 x32 and x64 so i assume it must have something to do with the ffmpeg dependecies or the whole JDK/SDK/NDK setup. Anyone has a clue where i am going wrong here?
Since the building starts and runs for a while i think that the provided depencencies are found by the compiler/linker but may be incomplete?
As a note: AFAIK the libass stuff is required for displaying subtitles in videos. I do not need that feature (i want to stream rstp live streams from cameras). Disabling modules as a workaround, e.g. with a CONFIG -= switch, is a welcome solution as well and a try worth.
What i am not sure about is the Kit/sysroot line. Is there anything required here? It is empty by default.

This is not directly answering your question but it may still help you to avoid it maybe:
QtAV library has been rewritten from scratch by its developer under the new project "MDK-SDK" (link below).
https://github.com/wang-bin/mdk-sdk
Because these libraries are very complicated to build with many dependencies, he provides binaries for most platforms as nightly build.
https://sourceforge.net/projects/mdk-sdk/files/nightly/
NOTE: The license is not free from commercial apps, (but is affordable) and the library works well with good performance.

Related

Android Source Code Project build failing

Trying to build AOSP
I have followed this guide exactly on a clean Ubuntu 16.04 virtual machine.
All commands leading up-to make -j4 have been successful, however when I build it fails at 11% with the following error:
[ 11% 9531/83760] target thumb C: nfc_nci.bullhea..._32 <= system/nfc/halimpl/pn54x/hal/phNxpNciHal.c
FAILED: out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/nfc_nci.bullhead_intermediates/hal/phNxpNciHal.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-4053586/bin/clang -I system/nfc/halimpl/pn54x/utils -I system/nfc/halimpl/pn54x/inc -I system/nfc/halimpl/pn54x/common -I system/nfc/halimpl/pn54x/dnld -I system/nfc/halimpl/pn54x/hal -I system/nfc/halimpl/pn54x/log -I system/nfc/halimpl/pn54x/tml -I system/nfc/halimpl/pn54x/self-test -I system/nfc/halimpl/pn54x -I out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/nfc_nci.bullhead_intermediates -I out/target/product/bullhead/gen/SHARED_LIBRARIES/nfc_nci.bullhead_intermediates -I libnativehelper/include/nativehelper \$(cat out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/nfc_nci.bullhead_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/bullhead/obj/include -isystem device/lge/bullhead/kernel-headers -isystem hardware/qcom/msm8994/kernel-headers -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -std=gnu99 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -DPN547C2=1 -DPN548C2=2 -DPN551=3 -DPN553=4 -DNFC_NXP_CHIP_TYPE=PN548C2 -DANDROID -DNXP_UICC_ENABLE -DNXP_HW_SELF_TEST -DNFC_NXP_HFO_SETTINGS=FALSE -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/nfc_nci.bullhead_intermediates/hal/phNxpNciHal.d -o out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/nfc_nci.bullhead_intermediates/hal/phNxpNciHal.o system/nfc/halimpl/pn54x/hal/phNxpNciHal.c"
system/nfc/halimpl/pn54x/hal/phNxpNciHal.c:2637:22: error: no member named 'nci_data' in 'struct phNxpNciHal_Control'
if (nxpncihal_ctrl.nci_data.nci_version == NCI_VERSION_2_0) {
~~~~~~~~~~~~~~ ^
1 error generated.
ninja: build stopped: subcommand failed.
10:02:33 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
#### make failed to build some targets (06:37 (mm:ss)) ####
What am I missing here? I have executed a repo sync in-case some files are missing, and a make clean.
Virtual machine stats:
CPUs- 4-cores (Host: Intel Xeon E3-1575M : 8-cores)
RAM - 20GB (Host: 32GB)
HDD - 100GB
Build settings:
repo init -u https://android.googlesource.com/platform/manifest -b android-8.0.0_r33 --depth=1
...
lunch aosp_bullhead-userdebug
https://android.googlesource.com/platform/system/nfc/+/android-8.0.0_r33/halimpl/pn54x/hal/phNxpNciHal.c
File location: path_to_aosp_oreo/system/nfc/halimpl/pn54x/hal/phNxpNciHal.c
Line: 2637
https://android.googlesource.com/platform/system/nfc/+/android-8.0.0_r33/halimpl/pn54x/hal/phNxpNciHal.h
line: 66-101
There is not nci_data in typedef struct phNxpNciHal_Control only nci_info
I think that you must edit line 2637 from
if (nxpncihal_ctrl.nci_data.nci_version == NCI_VERSION_2_0)
to
if (nxpncihal_ctrl.nci_info.nci_version == NCI_VERSION_2_0)
Or change version to 8.1.0_r18 or higher
https://android.googlesource.com/platform/system/nfc/+/android-8.1.0_r18/halimpl/pn54x/hal/phNxpNciHal.c
in line: 2623
https://android.googlesource.com/platform/system/nfc/+/android-8.1.0_r18/halimpl/pn54x/hal/phNxpNciHal.h
in line: 66-101

undeclared identifier 'setfscreation' AOSP

I'm trying to build AOSP but I get this strange error. It's about SELinux module i think. Anyone of you guys have ever encountered this kind of problem?
[ 65% 22783/34570] target thumb C++: updater <= bootable/recovery/updater/install.cpp
FAILED: /bin/bash -c "(PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I system/extras/ext4_utils -I external/e2fsprogs/misc -I bootable/recovery/updater/.. -I /home/build/dfrascari/android7/AOSP/out/target/product/generic/obj/PACKAGING/updater_extensions_intermediates/ -I bootable/recovery/updater -I /home/build/dfrascari/android7/AOSP/out/target/product/generic/obj/EXECUTABLES/updater_intermediates -I /home/build/dfrascari/android7/AOSP/out/target/product/generic/gen/EXECUTABLES/updater_intermediates -I libnativehelper/include/nativehelper \$(cat /home/build/dfrascari/android7/AOSP/out/target/product/generic/obj/EXECUTABLES/updater_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem /home/build/dfrascari/android7/AOSP/out/target/product/generic/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -c -fno-exceptions -Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target arm-linux-androideabi -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -fvisibility-inlines-hidden -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -target arm-linux-androideabi -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -DUSE_EXT4 -Wno-unused-parameter -fpie -D_USING_LIBCXX -std=gnu++14 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/build/dfrascari/android7/AOSP/out/target/product/generic/obj/EXECUTABLES/updater_intermediates/install.d -o /home/build/dfrascari/android7/AOSP/out/target/product/generic/obj/EXECUTABLES/updater_intermediates/install.o bootable/recovery/updater/install.cpp ) && (cp /home/build/dfrascari/android7/AOSP/out/target/product/generic/obj/EXECUTABLES/updater_intermediates/install.d /home/build/dfrascari/android7/AOSP/out/target/product/generic/obj/EXECUTABLES/updater_intermediates/install.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/build/dfrascari/android7/AOSP/out/target/product/generic/obj/EXECUTABLES/updater_intermediates/install.d >> /home/build/dfrascari/android7/AOSP/out/target/product/generic/obj/EXECUTABLES/updater_intermediates/install.P; rm -f /home/build/dfrascari/android7/AOSP/out/target/product/generic/obj/EXECUTABLES/updater_intermediates/install.d )"
bootable/recovery/updater/install.cpp:165:13: error: use of undeclared identifier 'setfscreatecon'
setfscreatecon(secontext);
^
bootable/recovery/updater/install.cpp:172:13: error: use of undeclared identifier 'setfscreatecon'
setfscreatecon(NULL);
^
2 errors generated.
[ 65% 22783/34570] target thumb C++: updater <= bootable/recovery/updater/blockimg.cpp
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
You can try
sudo apt install libselinux1-dev
But probably your system is not configured for AOSP build. You can execute that command
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip
And follow all other instructions from https://source.android.com/setup/build/initializing

ffmpeg build error looks tmp file creat fail?

./configure --target-os=android --prefix=$PREFIX \
--enable-cross-compile --enable-runtime-cpudetect --disable-asm --arch=arm \
--cc=$PREBUILT/linux-x86_64/bin/arm-linux-androideabi-gcc \
--cross-prefix=$PREBUILT/linux-x86_64/bin/arm-linux-androideabi- \
--disable-stripping --nm=$PREBUILT/linux-x86_64/bin/arm-linux-androideabi-nm --sysroot=$PLATFORM --enable-gpl --enable-shared --disable-static --enable-small --disable-ffprobe --disable-ffplay --disable-ffmpeg --disable-ffserver --disable-debug --extra-cflags="-fPIC -DANDROID -D__thumb__ -mthumb -Wfatal-errors -Wno-deprecated -mfloat-abi=softfp -marm -march=armv7-a"
this is out put log:
Makefile:2: config.mak: 没有那个文件或目录
Makefile:67: /common.mak: 没有那个文件或目录
Makefile:109: /libavutil/Makefile: 没有那个文件或目录
Makefile:109: /library.mak: 没有那个文件或目录
Makefile:111: /doc/Makefile: 没有那个文件或目录
Makefile:198: /tests/Makefile: 没有那个文件或目录
make: *** No rule to make target '/tests/Makefile'。 停止。
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user#ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
but my gcc path works fine
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.
I seems the temp file not create ,I can't find temp file in /tmp
this is end of config.log file:
dition: defined __ARM_ARCH_6T2__ || defined __TARGET_ARCH_6T2"
^
compilation terminated due to -Wfatal-errors.
check_cpp_condition stddef.h defined __ARM_ARCH_7__ || defined __TARGET_ARCH_7
check_cpp
BEGIN /tmp/ffconf.FHwGDPbC.c
1 #include <stddef.h>
2 #if !(defined __ARM_ARCH_7__ || defined __TARGET_ARCH_7)
3 #error "unsatisfied condition: defined __ARM_ARCH_7__ || defined __TARGET_ARCH_7"
4 #endif
END /tmp/ffconf.FHwGDPbC.c
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -isysroot /opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -fPIC -DANDROID -D__thumb__ -mthumb -Wfatal-errors -Wno-deprecated -mfloat-abi=softfp -marm -march=armv7-a -E -o /tmp/ffconf.csA8Jm6F.o /tmp/ffconf.FHwGDPbC.c
/tmp/ffconf.FHwGDPbC.c:3:2: error: #error "unsatisfied condition: defined __ARM_ARCH_7__ || defined __TARGET_ARCH_7"
#error "unsatisfied condition: defined __ARM_ARCH_7__ || defined __TARGET_ARCH_7"
^
compilation terminated due to -Wfatal-errors.
check_cpp_condition stddef.h defined __ARM_ARCH_7A__ || defined __TARGET_ARCH_7_A
check_cpp
BEGIN /tmp/ffconf.FHwGDPbC.c
1 #include <stddef.h>
2 #if !(defined __ARM_ARCH_7A__ || defined __TARGET_ARCH_7_A)
3 #error "unsatisfied condition: defined __ARM_ARCH_7A__ || defined __TARGET_ARCH_7_A"
4 #endif
END /tmp/ffconf.FHwGDPbC.c
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -isysroot /opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -fPIC -DANDROID -D__thumb__ -mthumb -Wfatal-errors -Wno-deprecated -mfloat-abi=softfp -marm -march=armv7-a -E -o /tmp/ffconf.csA8Jm6F.o /tmp/ffconf.FHwGDPbC.c
check_ld cc
check_cc
BEGIN /tmp/ffconf.FHwGDPbC.c
1 int main(void){ return 0; }
END /tmp/ffconf.FHwGDPbC.c
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -isysroot /opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -fPIC -DANDROID -D__thumb__ -mthumb -Wfatal-errors -Wno-deprecated -mfloat-abi=softfp -marm -march=armv7-a -march=armv7-a -c -o /tmp/ffconf.csA8Jm6F.o /tmp/ffconf.FHwGDPbC.c
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -isysroot /opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -march=armv7-a -o /tmp/ffconf.fjKb0Qb0 /tmp/ffconf.csA8Jm6F.o
/opt/android/android-sdk-linux/ndk-bundle/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 open crtbegin_dynamic.o: No such file or directory
/opt/android/android-sdk-linux/ndk-bundle/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 open crtend_android.o: No such file or directory
/opt/android/android-sdk-linux/ndk-bundle/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 -lc
/opt/android/android-sdk-linux/ndk-bundle/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 -ldl
collect2: error: ld returned 1 exit status
C compiler test failed.
Default NDK toolchain is unsuitable for compiling Autoconf projects. You'll need to generate standalong toolchain as described here. If this does not help, you should examine the failing command in config.log and see what exactly goes wrong (simple gcc test won't help as errors may be caused by linker).

Lunch and Make fails in building AOSP (Android N) for Nexus 6p

Here is my build environment:
I build android N on my mac using case-sensitive image. On the same image, I can successfully android 5.0.1 for nexus5. Now I want to do that for nexus 6p using android 7.0.0_r6. Repo sync is successful.
There are multiple errors:
1
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]
2
localhost:n_android guest$ make -j12
date: 1475895550: No such file or directory
date: 1475895550: No such file or directory
3
build/kati/eval.h:18:10: fatal error: 'unordered_map' file not found
From the full log below, the first issue is in "lunch" command.
Has anybody seen this kind of error? Any comment is welcome! Thanks!
localhost:n_android guest$ source build/envsetup.sh
including device/asus/fugu/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-mips64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/google/dragon/vendorsetup.sh
including device/htc/flounder/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including device/lge/bullhead/vendorsetup.sh
including device/linaro/hikey/vendorsetup.sh
including device/moto/shamu/vendorsetup.sh
including sdk/bash_completion/adb.bash
localhost:n_android guest$ lunch aosp_angler-userdebug
date: 1475895540: No such file or directory
date: 1475895540: No such file or directory
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
TARGET_PRODUCT=aosp_angler
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-15.3.0-x86_64-i386-64bit
HOST_CROSS_OS=
HOST_CROSS_ARCH=
HOST_CROSS_2ND_ARCH=
HOST_BUILD_TYPE=release
BUILD_ID=NRD90U
OUT_DIR=out
============================================
localhost:n_android guest$ make -j12
date: 1475895550: No such file or directory
date: 1475895550: No such file or directory
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
TARGET_PRODUCT=aosp_angler
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-15.3.0-x86_64-i386-64bit
HOST_CROSS_OS=
HOST_CROSS_ARCH=
HOST_CROSS_2ND_ARCH=
HOST_BUILD_TYPE=release
BUILD_ID=NRD90U
OUT_DIR=out
============================================
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/dep.o build/kati/dep.cc
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/eval.o build/kati/eval.cc
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/exec.o build/kati/exec.cc
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/file.o build/kati/file.cc
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/file_cache.o build/kati/file_cache.cc
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/expr.o build/kati/expr.cc
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/command.o build/kati/command.cc
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/find.o build/kati/find.cc
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/fileutil.o build/kati/fileutil.cc
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/affinity.o build/kati/affinity.cc
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/flags.o build/kati/flags.cc
prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /Applications/Xcode-5.0.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /Applications/Xcode-5.0.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -c -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/func.o build/kati/func.cc
In file included from build/kati/eval.cc:17:
build/kati/eval.h:18:10: fatal error: 'unordered_map' file not found
#include <unordered_map>
^
build/kati/exec.cc:23:10: fatal error: 'unordered_map' file not found
#include <unordered_map>
^
In file included from build/kati/fileutil.cc:17:
build/kati/fileutil.h:20:10: fatal error: 'unordered_map' file not found
#include <unordered_map>
^
In file included from build/kati/file_cache.cc:17:
build/kati/file_cache.h:20:10: fatal error: 'unordered_set' file not found
#include <unordered_set>
^
In file included from build/kati/dep.cc:17:
build/kati/dep.h:19:10: fatal error: 'unordered_map' file not found
#include <unordered_map>
^
In file included from build/kati/find.cc:17:
build/kati/find.h:20:10: fatal error: 'unordered_set' file not found
#include <unordered_set>
^
1 error generated.
In file included from build/kati/expr.cc:17:
In file included from build/kati/expr.h:21:
build/kati/string_piece.h:213:19: error: explicit specialization of non-template struct 'hash'
template<> struct hash<StringPiece> {
^ ~~~~~~~~~~~~~
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/file_cache.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from build/kati/expr.cc:21:
build/kati/eval.h:18:10: fatal error: 'unordered_map' file not found
#include <unordered_map>
^
In file included from build/kati/affinity.cc:17:
In file included from build/kati/flags.h:21:
build/kati/string_piece.h:213:19: error: explicit specialization of non-template struct 'hash'
template<> struct hash<StringPiece> {
^ ~~~~~~~~~~~~~
In file included from build/kati/flags.cc:17:
In file included from build/kati/flags.h:21:
build/kati/string_piece.h:213:19: error: explicit specialization of non-template struct 'hash'
template<> struct hash<StringPiece> {
^ ~~~~~~~~~~~~~
In file included from build/kati/affinity.cc:17:
In file included from build/kati/flags.h:22:
build/kati/symtab.h:88:19: error: explicit specialization of non-template struct 'hash'
template<> struct hash<Symbol> {
^ ~~~~~~~~
In file included from build/kati/command.cc:17:
In file included from build/kati/command.h:20:
In file included from build/kati/symtab.h:21:
build/kati/string_piece.h:213:19: error: explicit specialization of non-template struct 'hash'
template<> struct hash<StringPiece> {In file included from
build/kati/flags.cc: ^ ~~~~~~~~~~~~~17
:
In file included from build/kati/flags.h:22:
build/kati/symtab.h:88:19: error: explicit specialization of non-template struct 'hash'
template<> struct hash<Symbol> {
^ ~~~~~~~~
build/kati/symtab.h:88:19: error: redefinition of 'hash'
build/kati/string_piece.h:213:19: note: previous definition is here
template<> struct hash<StringPiece> {
^
build/kati/symtab.h:88:19: error: redefinition of 'hash'
build/kati/string_piece.h:213:19: note: previous definition is here
template<> struct hash<StringPiece> {
^
In file included from build/kati/file.cc:24:
In file included from build/kati/log.h:23:
In file included from build/kati/flags.h:21:
build/kati/string_piece.h:213:19: error: explicit specialization of non-template struct 'hash'
template<> struct hash<StringPiece> {
^ ~~~~~~~~~~~~~
In file included from build/kati/command.cc:17:
In file included from build/kati/command.h:20:
build/kati/symtab.h:88:19: error: explicit specialization of non-template struct 'hash'
template<> struct hash<Symbol> {
^ ~~~~~~~~
build/kati/symtab.h:88:19: error: redefinition of 'hash'
build/kati/string_piece.h:213:19: note: previous definition is here
template<> struct hash<StringPiece> {
^
In file included from build/kati/file.cc:24:
In file included from build/kati/log.h:23:
In file included from build/kati/flags.h:22:
build/kati/symtab.h:88:19: error: explicit specialization of non-template struct 'hash'
template<> struct hash<Symbol> {
^ ~~~~~~~~
build/kati/symtab.h:88:19: error: redefinition of 'hash'
build/kati/string_piece.h:213:19: note: previous definition is here
template<> struct hash<StringPiece> {
^
build/kati/command.cc:19:10: fatal error: 'unordered_map' file not found
#include <unordered_map>
^
3 errors generated.
1 error generated.
In file included from build/kati/func.cc:17:
In file included from build/kati/func.h:22:
In file included from build/kati/expr.h:21:
build/kati/string_piece.h:213:19: error: explicit specialization of non-template struct 'hash'
template<> struct hash<StringPiece> {
^ ~~~~~~~~~~~~~
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/affinity.o] Error 1
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/eval.o] Error 1
In file included from build/kati/func.cc:17:
build/kati/func.h:46:3: error: unknown type name 'unique_ptr'
unique_ptr<FindCommand> find;
^
build/kati/func.h:46:13: error: expected member name or ';' after declaration specifiers
unique_ptr<FindCommand> find;
~~~~~~~~~~^
1 error generated.
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/exec.o] Error 1
3 errors generated.
3 errors generated.
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/flags.o] Error 1
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/file.o] Error 1
4 errors generated.
2 errors generated.
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/command.o] Error 1
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/expr.o] Error 1
1 error generated.
1 error generated.
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/fileutil.o] Error 1
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/find.o] Error 1
build/kati/func.cc:28:10: fatal error: 'unordered_map' file not found
#include <unordered_map>
^
4 errors generated.
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/func.o] Error 1
1 error generated.
make: *** [out/host/darwin-x86/obj/EXECUTABLES/ckati_intermediates/dep.o] Error 1
#### make failed to build some targets (1 seconds) ####
localhost:n_android guest$
I think I have found way for it.
Update your Xcode, port to latest you can find.
Below command, you may also need it.
sudo port install gmake libsdl gnupg git
Check if you have install multiple Xcode. If so, use /usr/bin/xcode-select to choose latest one. For example, Xcode 8.0.
You will find there is not 10.11 in Xcode 8.0. You can download it from xcode SDKs repo. Put it to /Applications/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk.
Then, you will find the world is better. Enjoy.

Android source master branch build failing for Nexus 5X (bullhead)

I'm building latest AOSP master branch for Nexus 5X (bullhead).
I'm getting below error:
42% 16329/38832] target thumb C: libbt-vendor_32 <= hardware/qcom/bt/msm8992/libbt-vendor/src/bt_vendor_qcom.c
**FAILED:** /**bin/bash -c "(true) && (mkdir -p out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libbt-vendor_intermediates/src/) && (PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/3.8/bin/clang -I hardware/qcom/bt/msm8992/libbt-vendor/include -I system/bt/hci/include -I out/target/product/bullhead/obj/include/bt/hci_qcomm_init -I hardware/qcom/bt/msm8992/libbt-vendor -I out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libbt-vendor_intermediates -I out/target/product/bullhead/gen/SHARED_LIBRARIES/libbt-vendor_intermediates -I libnativehelper/include/nativehelper \$(cat out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libbt-vendor_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem out/target/product/bullhead/obj/include -isystem device/lge/bullhead/kernel-headers -isystem hardware/qcom/msm8994/kernel-headers -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -c -fno-exceptions -Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target arm-linux-androideabi -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -std=gnu99 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -DBT_SOC_TYPE_ROME -fPIC -D_USING_LIBCXX -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libbt-vendor_intermediates/src/bt_vendor_qcom.d -o out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libbt-vendor_intermediates/src/bt_vendor_qcom.o hardware/qcom/bt/msm8992/libbt-vendor/src/bt_vendor_qcom.c) && (cp out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libbt-vendor_intermediates/src/bt_vendor_qcom.d out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libbt-vendor_intermediates/src/bt_vendor_qcom.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libbt-vendor_intermediates/src/bt_vendor_qcom.d >> out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/libbt-vendor_intermediates/src/bt_vendor_qcom.P)"
hardware/qcom/bt/msm8992/libbt-vendor/src/bt_vendor_qcom.c:811:57: warning: passing 'uint8_t [6]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if(rome_soc_init(fd,vnd_local_bd_addr)<0) {
^~~~~~~~~~~~~~~~~
hardware/qcom/bt/msm8992/libbt-vendor/src/bt_vendor_qcom.c:108:33: note: passing argument to parameter 'bdaddr' here
int rome_soc_init(int fd, char *bdaddr);
^
hardware/qcom/bt/msm8992/libbt-vendor/src/bt_vendor_qcom.c:1003:14: warning: case value not in enumerated type 'bt_vendor_opcode_t' [-Wswitch]
case BT_VND_OP_GET_LINESPEED:
^
hardware/qcom/bt/msm8992/libbt-vendor/src/bt_vendor_qcom.c:636:12: warning: enumeration values 'BT_VND_OP_SET_AUDIO_STATE', 'BT_VND_OP_A2DP_OFFLOAD_START', and 'BT_VND_OP_A2DP_OFFLOAD_STOP' not handled in switch [-Wswitch]
switch(opcode)
^
**hardware/qcom/bt/msm8992/libbt-vendor/src/bt_vendor_qcom.c:1034:9: error: void function 'ssr_cleanup' should not return a value [-Wreturn-type]
return -1;**
^ ~~
hardware/qcom/bt/msm8992/libbt-vendor/src/bt_vendor_qcom.c:1077:5: warning: excess elements in struct initializer
ssr_cleanup
^~~~~~~~~~~
4 warnings and 1 error generated.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:146: recipe for target 'ninja_wrapper' failed
Please help me in resolving this.
Thanks in advance.
Disable ninja while building AOSP
export USE_NINJA=false

Categories

Resources