Android source master branch build failing for Nexus 5X (bullhead) -
i'm building latest aosp master branch 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]' parameter of type 'char *' converts between pointers integer types 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 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', , '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 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 , 1 error generated. ninja: build stopped: subcommand failed. build/core/ninja.mk:146: recipe target 'ninja_wrapper' failed
please me in resolving this. in advance.
Comments
Post a Comment