too many arguments to function call - ninja error - android

Keep getting stuck at this error while trying to compile LineageOS
Does anyone know what this is / how to resolve this
1 warning generated.
[ 64% 33226/51897] target C++: netd <= system/netd/server/CommandListener.cpp
FAILED: /bin/bash -c "(PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I device/sony/suzuran/include -I hardware/libhardware_legacy/include/hardware_legacy -I bionic/libc/dns/include -I external/mdnsresponder/mDNSShared -I system/netd/include -I /home/zane/Lineage/out/target/product/suzuran/obj/EXECUTABLES/netd_intermediates/aidl-generated/include -I system/netd/server -I /home/zane/Lineage/out/target/product/suzuran/obj/EXECUTABLES/netd_intermediates -I /home/zane/Lineage/out/target/product/suzuran/gen/EXECUTABLES/netd_intermediates -I libnativehelper/include/nativehelper \$(cat /home/zane/Lineage/out/target/product/suzuran/obj/EXECUTABLES/netd_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem hardware/ril-caf/include -isystem /home/zane/Lineage/out/target/product/suzuran/obj/include -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libm/include -isystem bionic/libm/include/arm64 -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DHAS_EXTRA_FLAC_METADATA -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 -O2 -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 aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -fvisibility-inlines-hidden -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DHAS_EXTRA_FLAC_METADATA -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -fno-rtti -fpie -D_USING_LIBCXX -std=gnu++14 -std=c++11 -Wall -Werror -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/zane/Lineage/out/target/product/suzuran/obj/EXECUTABLES/netd_intermediates/CommandListener.d -o /home/zane/Lineage/out/target/product/suzuran/obj/EXECUTABLES/netd_intermediates/CommandListener.o system/netd/server/CommandListener.cpp ) && (cp /home/zane/Lineage/out/target/product/suzuran/obj/EXECUTABLES/netd_intermediates/CommandListener.d /home/zane/Lineage/out/target/product/suzuran/obj/EXECUTABLES/netd_intermediates/CommandListener.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/zane/Lineage/out/target/product/suzuran/obj/EXECUTABLES/netd_intermediates/CommandListener.d >> /home/zane/Lineage/out/target/product/suzuran/obj/EXECUTABLES/netd_intermediates/CommandListener.P; rm -f /home/zane/Lineage/out/target/product/suzuran/obj/EXECUTABLES/netd_intermediates/CommandListener.d )"
system/netd/server/CommandListener.cpp:804:51: error: too many arguments to function call, expected at most single argument 'global_ctrl_iface', have 2 arguments
rc = gCtls->softapCtrl.startSoftap(false, cli);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~
system/netd/server/SoftapController.h:41:5: note: 'startSoftap' declared here
int startSoftap(bool global_ctrl_iface = false);
^
1 error generated.
[ 64% 33226/51897] target C++: netd <= system/netd/server/BandwidthController.cpp
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
make: Leaving directory `/home/zane/Lineage'
#### make failed to build some targets (01:25:28 (hh:mm:ss)) ####
Here are the githubs I am using to make this: LineageOS Merged Sumire(Lineage) files with Suzuran

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

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.

Running telegram messaging project in android studio, can't fix errors

I am not able to find any appropriate solution for below issue. I just want to run telegram messaging app in my android studio. I already obtained the neccesary data from telegram like api_id and api_hash, and put it in BuildVars.java. Now I m getting 2 errors, which I cant solve a few days.
Errors are:
1)
Error:Execution failed for task
':TMessagesProj:externalNativeBuildArmv7Debug'.
Build command failed. Error while executing 'C:\android-sdk_r24.0.2-windows\ndk-bundle\ndk-build.cmd' with
arguments {NDK_PROJECT_PATH=null
APP_BUILD_SCRIPT=D:\AndroidProjects\Telegram-master\TMessagesProj\jni\Android.mk
NDK_APPLICATION_MK=D:\AndroidProjects\Telegram-master\TMessagesProj\jni\Application.mk
APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDEBUG=1
APP_PLATFORM=android-14
NDK_OUT=D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj
NDK_LIBS_OUT=D:\AndroidProjects\Telegram-master\TMessagesProj\build\intermediates\ndkBuild\armv7\debug\lib
NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14
D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/libtmessages.24.so}
[armeabi-v7a] "Compile arm ": "tmessages.24 <= opus.c"
process_begin: CreateProcess(NULL,
C:/android-sdk_r24.0.2-windows/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/objs/tmessages.24/./opus/src/opus.o.d
-fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -g -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -marm -O2 -DNDEBUG -I./jni/opus/include -I./jni/opus/silk -I./jni/opus/silk/fixed -I./jni/opus/celt -I./jni/opus/ -I./jni/opus/opusfile -I./jni/libyuv/include -I./jni/boringssl/include -I./jni/breakpad/common/android/include -I./jni/breakpad -I./jni/ffmpeg/include -IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include/backward
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include/backward
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/android/cpufeatures
-ID:/AndroidProjects/Telegram-master/TMessagesProj/jni -DANDROID -w -std=c11 -Os -DNULL=0 -DSOCKLEN_T=socklen_t -DLOCALE_NOT_USED -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Drestrict= -D__EMX__ -DOPUS_BUILD -DFIXED_POINT -DUSE_ALLOCA -DHAVE_LRINT -DHAVE_LRINTF -fno-math-errno -DANDROID_NDK -DDISABLE_IMPORTGL -fno-strict-aliasing -fprefetch-loop-arrays -DAVOID_TABLES -DANDROID_TILE_BASED_DECODE -DANDROID_ARMV6_IDCT -ffast-math -D__STDC_CONSTANT_MACROS -DLIBYUV_NEON -DLIBYUV_NEON -Wa,--noexecstack -Wformat -Werror=format-security -isystem C:/android-sdk_r24.0.2-windows/ndk-bundle/build//../platforms/android-14/arch-arm/usr/include
-c D:/AndroidProjects/Telegram-master/TMessagesProj/jni/./opus/src/opus.c
-o D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/objs/tmessages.24/./opus/src/opus.o,
...) failed. make (e=2): ?? ??????? ????? ????????? ????. make: ***
[D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/objs/tmessages.24/./opus/src/opus.o]
Error 2
2)
Error:Note: Some input files use or override a deprecated API. Note:
Recompile with -Xlint:deprecation for details. Note: Some input files
use unchecked or unsafe operations. Note: Recompile with
-Xlint:unchecked for details. process_begin: CreateProcess(NULL, C:/android-sdk_r24.0.2-windows/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/objs/tmessages.24/./opus/src/opus.o.d
-fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -g -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -marm -O2 -DNDEBUG -I./jni/opus/include -I./jni/opus/silk -I./jni/opus/silk/fixed -I./jni/opus/celt -I./jni/opus/ -I./jni/opus/opusfile -I./jni/libyuv/include -I./jni/boringssl/include -I./jni/breakpad/common/android/include -I./jni/breakpad -I./jni/ffmpeg/include -IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include/backward
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include/backward
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/android/cpufeatures
-ID:/AndroidProjects/Telegram-master/TMessagesProj/jni -DANDROID -w -std=c11 -Os -DNULL=0 -DSOCKLEN_T=socklen_t -DLOCALE_NOT_USED -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Drestrict= -D__EMX__ -DOPUS_BUILD -DFIXED_POINT -DUSE_ALLOCA -DHAVE_LRINT -DHAVE_LRINTF -fno-math-errno -DANDROID_NDK -DDISABLE_IMPORTGL -fno-strict-aliasing -fprefetch-loop-arrays -DAVOID_TABLES -DANDROID_TILE_BASED_DECODE -DANDROID_ARMV6_IDCT -ffast-math -D__STDC_CONSTANT_MACROS -DLIBYUV_NEON -DLIBYUV_NEON -Wa,--noexecstack -Wformat -Werror=format-security -isystem C:/android-sdk_r24.0.2-windows/ndk-bundle/build//../platforms/android-14/arch-arm/usr/include
-c D:/AndroidProjects/Telegram-master/TMessagesProj/jni/./opus/src/opus.c
-o D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/objs/tmessages.24/./opus/src/opus.o,
...) failed. make (e=2): ?? ??????? ????? ????????? ????.
make: ***
[D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/objs/tmessages.24/./opus/src/opus.o]
Error 2
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':TMessagesProj:externalNativeBuildArmv7Debug'.
Build command failed. Error while executing 'C:\android-sdk_r24.0.2-windows\ndk-bundle\ndk-build.cmd' with
arguments {NDK_PROJECT_PATH=null
APP_BUILD_SCRIPT=D:\AndroidProjects\Telegram-master\TMessagesProj\jni\Android.mk
NDK_APPLICATION_MK=D:\AndroidProjects\Telegram-master\TMessagesProj\jni\Application.mk
APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDEBUG=1
APP_PLATFORM=android-14
NDK_OUT=D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj
NDK_LIBS_OUT=D:\AndroidProjects\Telegram-master\TMessagesProj\build\intermediates\ndkBuild\armv7\debug\lib
NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14
D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/libtmessages.24.so}
[armeabi-v7a] "Compile arm ": "tmessages.24 <= opus.c"
process_begin: CreateProcess(NULL,
C:/android-sdk_r24.0.2-windows/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/objs/tmessages.24/./opus/src/opus.o.d
-fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -g -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -marm -O2 -DNDEBUG -I./jni/opus/include -I./jni/opus/silk -I./jni/opus/silk/fixed -I./jni/opus/celt -I./jni/opus/ -I./jni/opus/opusfile -I./jni/libyuv/include -I./jni/boringssl/include -I./jni/breakpad/common/android/include -I./jni/breakpad -I./jni/ffmpeg/include -IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include/backward
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/include/backward
-IC:/android-sdk_r24.0.2-windows/ndk-bundle/build//../sources/android/cpufeatures
-ID:/AndroidProjects/Telegram-master/TMessagesProj/jni -DANDROID -w -std=c11 -Os -DNULL=0 -DSOCKLEN_T=socklen_t -DLOCALE_NOT_USED -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Drestrict= -D__EMX__ -DOPUS_BUILD -DFIXED_POINT -DUSE_ALLOCA -DHAVE_LRINT -DHAVE_LRINTF -fno-math-errno -DANDROID_NDK -DDISABLE_IMPORTGL -fno-strict-aliasing -fprefetch-loop-arrays -DAVOID_TABLES -DANDROID_TILE_BASED_DECODE -DANDROID_ARMV6_IDCT -ffast-math -D__STDC_CONSTANT_MACROS -DLIBYUV_NEON -DLIBYUV_NEON -Wa,--noexecstack -Wformat -Werror=format-security -isystem C:/android-sdk_r24.0.2-windows/ndk-bundle/build//../platforms/android-14/arch-arm/usr/include
-c D:/AndroidProjects/Telegram-master/TMessagesProj/jni/./opus/src/opus.c
-o D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/objs/tmessages.24/./opus/src/opus.o,
...) failed. make (e=2): ?? ??????? ????? ????????? ????. make: ***
[D:/AndroidProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj/local/armeabi-v7a/objs/tmessages.24/./opus/src/opus.o]
Error 2
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
P.S. I'm using 2.2.1 gradle version. I tried to run ndk-build.cmd from command line, with NDK_PROJECT_PATH and NDK_APPLICATION_MK, didn't get any result. Thanks in advance!

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