This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: problem of compilation hardware / ti / dra7xx / camera

Tool/software: TI C/C++ Compiler

Hi Ti

I did the HAL camera compilation:

ard @ ard-OptiPlex-3010: ~ / workspace / AAOreo / hardware / ti / dra7xx / camera $ mma

out:


[ 7% 6/77] target C++: camera. <= hardware/ti/dra7xx/camera/CameraProperties.cpp
FAILED: out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates/CameraProperties.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I hardware/ti/dra7xx/camera/../hwcomposer -I hardware/libhardware/include/hardware -I hardware/ti/dra7xx/camera/inc -I system/media/camera/include -I external/jpeg -I external/libdrm/include/drm -I external/libdrm/omap -I external/libdrm -I hardware/ti/dra7xx/camera/../libtiutils -I frameworks/native/include/media/hardware -I frameworks/native/include/media/openmax -I hardware/ti/dra7xx/camera/inc/V4LCameraAdapter -I hardware/ti/dra7xx/camera -I out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates -I out/target/product/generic_x86_64/gen/SHARED_LIBRARIES/camera._intermediates -I libnativehelper/include_deprecated \$(cat out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._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/generic_x86_64/obj/include -isystem bionic/libc/arch-x86_64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-x86 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -O2 -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -ffunction-sections -fno-short-enums -fstrict-aliasing -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -O2 -g -fno-strict-aliasing -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 -m64 -march=x86-64 -DUSE_SSSE3 -mssse3 -msse4 -msse4.1 -msse4.2 -mpopcnt -target x86_64-linux-android -Bprebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -std=gnu++14 -fno-rtti -fno-short-enums -DCOPY_IMAGE_BUFFER -DANDROID_API_JB_OR_LATER -DCAMERAHAL_USE_RAW_IMAGE_SAVING -DLOG_TAG=\\\"CameraHal\\\" -DSUPPORT_ANDROID_FRAMEBUFFER_HAL -DSUPPORT_ANDROID_MEMTRACK_HAL -DUSE_V4LM2M -DV4L_CAMERA_ADAPTER -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/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates/CameraProperties.d -o out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates/CameraProperties.o hardware/ti/dra7xx/camera/CameraProperties.cpp"
In file included from hardware/ti/dra7xx/camera/CameraProperties.cpp:24:
In file included from hardware/ti/dra7xx/camera/inc/CameraProperties.h:33:
In file included from hardware/ti/dra7xx/camera/inc/Common.h:21:
hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:260:30: error: cast from pointer to smaller type 'int32_t' (aka 'int') loses information
const int32_t threadId = reinterpret_cast<int32_t>(androidGetThreadId());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:356:13: error: cast from pointer to smaller type 'int' loses information
(int)mThreadId, IndentString<>(debug->offsetForCurrentThread()).string(),
^~~~~~~~~~~~~~
system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
In file included from hardware/ti/dra7xx/camera/CameraProperties.cpp:24:
In file included from hardware/ti/dra7xx/camera/inc/CameraProperties.h:33:
In file included from hardware/ti/dra7xx/camera/inc/Common.h:21:
hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:367:13: error: cast from pointer to smaller type 'int' loses information
(int)mThreadId, IndentString<>(debug->offsetForCurrentThread()).string(),
^~~~~~~~~~~~~~
system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
In file included from hardware/ti/dra7xx/camera/CameraProperties.cpp:24:
In file included from hardware/ti/dra7xx/camera/inc/CameraProperties.h:33:
In file included from hardware/ti/dra7xx/camera/inc/Common.h:21:
hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:381:17: error: cast from pointer to smaller type 'int' loses information
(int)mThreadId, IndentString<>(debug->offsetForCurrentThread()).string(),
^~~~~~~~~~~~~~
system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
hardware/ti/dra7xx/camera/CameraProperties.cpp:53:5: error: cast to 'void *' from smaller integer type 'int' [-Werror,-Wint-to-void-pointer-cast]
LOG_FUNCTION_NAME_EXIT;
^
hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:130:35: note: expanded from macro 'LOG_FUNCTION_NAME_EXIT'
# define LOG_FUNCTION_NAME_EXIT (void*)__function_logger_instance;
^
hardware/ti/dra7xx/camera/CameraProperties.cpp:60:5: error: cast to 'void *' from smaller integer type 'int' [-Werror,-Wint-to-void-pointer-cast]
LOG_FUNCTION_NAME_EXIT;
^
hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:130:35: note: expanded from macro 'LOG_FUNCTION_NAME_EXIT'
# define LOG_FUNCTION_NAME_EXIT (void*)__function_logger_instance;
^
hardware/ti/dra7xx/camera/CameraProperties.cpp:82:5: error: cast to 'void *' from smaller integer type 'int' [-Werror,-Wint-to-void-pointer-cast]
LOG_FUNCTION_NAME_EXIT;
^
hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:130:35: note: expanded from macro 'LOG_FUNCTION_NAME_EXIT'
# define LOG_FUNCTION_NAME_EXIT (void*)__function_logger_instance;
^
hardware/ti/dra7xx/camera/CameraProperties.cpp:105:9: error: cast from pointer to smaller type 'int' loses information
CAMHAL_LOGE("error while getting capabilities");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hardware/ti/dra7xx/camera/inc/Common.h:52:22: note: expanded from macro 'CAMHAL_LOGE'
#define CAMHAL_LOGE DBGUTILS_LOGE
^
hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:160:28: note: expanded from macro 'DBGUTILS_LOGE'
#define DBGUTILS_LOGE(...) DBGUTILS_LOGV_FULL(ANDROID_LOG_ERROR, __FILE__, __LINE__, __FUNCTION__, TI_UTILS_DEBUG_TIMESTAMP_TOKEN "(%x) %s %s:%d %s - " __VA_ARGS__, "")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:151:17: note: expanded from macro 'DBGUTILS_LOGV_FULL'
reinterpret_cast<int>(androidGetThreadId()), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hardware/ti/dra7xx/camera/CameraProperties.cpp:108:9: error: cast from pointer to smaller type 'int' loses information
CAMHAL_LOGE("camera busy or no cameras detected. properties not loaded. num_cameras = %d", mCamerasSupported);

.....

Any help please.


Regards
Ala

  • Hi Ala,

    Can you provide the compiler you're using? Also, what commands are you using to build camera?

    Thanks,
    David
  • Hi David

    I followed these steps:

    ard @ ard-OptiPlex-3010: ~ / workspace / AAOreo $ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/

    ard @ ard-OptiPlex-3010: ~ / workspace / AAOreo $ source build/envsetup.sh
    including device/generic/car/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-mips64/vendorsetup.sh
    including device/generic/mini-emulator-mips/vendorsetup.sh
    including device/generic/mini-emulator-x86_64/vendorsetup.sh
    including device/generic/mini-emulator-x86/vendorsetup.sh
    including device/generic/uml/vendorsetup.sh
    including device/google/dragon/vendorsetup.sh
    including device/google/marlin/vendorsetup.sh
    including device/google/muskie/vendorsetup.sh
    including device/google/taimen/vendorsetup.sh
    including device/huawei/angler/vendorsetup.sh
    including device/lge/bullhead/vendorsetup.sh
    including device/linaro/hikey/vendorsetup.sh
    including sdk/bash_completion/adb.bash

    ard @ ard-OptiPlex-3010: ~ / workspace / AAOreo $ lunch aosp_car_x86_64-userdebug
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=8.1.0
    TARGET_PRODUCT=aosp_car_x86_64
    TARGET_BUILD_VARIANT=userdebug
    TARGET_BUILD_TYPE=release
    TARGET_PLATFORM_VERSION=OPM1
    TARGET_BUILD_APPS=
    TARGET_ARCH=x86_64
    TARGET_ARCH_VARIANT=x86_64
    TARGET_CPU_VARIANT=
    TARGET_2ND_ARCH=x86
    TARGET_2ND_ARCH_VARIANT=x86_64
    TARGET_2ND_CPU_VARIANT=
    HOST_ARCH=x86_64
    HOST_2ND_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-4.15.0-47-generic-x86_64-with-Ubuntu-16.04-xenial
    HOST_CROSS_OS=windows
    HOST_CROSS_ARCH=x86
    HOST_CROSS_2ND_ARCH=x86_64
    HOST_BUILD_TYPE=release
    BUILD_ID=OPM8.190305.001
    OUT_DIR=out
    AUX_OS_VARIANT_LIST=
    ============================================


    ard @ ard-OptiPlex-3010: ~ / workspace / AAOreo $ cd hardware/ti/dra7xx/camera/

    ard@ard-OptiPlex-3010:~/workspace/AAOreo/hardware/ti/dra7xx/camera$ mma -j4
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=8.1.0
    TARGET_PRODUCT=aosp_car_x86_64
    TARGET_BUILD_VARIANT=userdebug
    TARGET_BUILD_TYPE=release
    TARGET_ARCH=x86_64
    TARGET_ARCH_VARIANT=x86_64
    TARGET_2ND_ARCH=x86
    TARGET_2ND_ARCH_VARIANT=x86_64
    HOST_ARCH=x86_64
    HOST_2ND_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-4.15.0-47-generic-x86_64-with-Ubuntu-16.04-xenial
    HOST_CROSS_OS=windows
    HOST_CROSS_ARCH=x86
    HOST_CROSS_2ND_ARCH=x86_64
    HOST_BUILD_TYPE=release
    BUILD_ID=OPM8.190305.001
    OUT_DIR=out
    ============================================
    ninja: no work to do.
    ninja: no work to do.
    hardware/ti/dra7xx/camera/Android.mk was modified, regenerating...

    [686/1001] including ./system/sepolicy/Android.mk ...
    ./system/sepolicy/Android.mk:111: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
    [1001/1001] including ./tools/tradefederation/core/Android.mk ...
    PRODUCT_COPY_FILES frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml ignored.
    PRODUCT_COPY_FILES frameworks/base/config/preloaded-classes:system/etc/preloaded-classes ignored.
    PRODUCT_COPY_FILES device/generic/goldfish/manifest.xml:vendor/manifest.xml ignored.
    PRODUCT_COPY_FILES device/generic/goldfish/data/etc/config.ini:config.ini ignored.
    platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
    platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
    platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
    platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
    platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests
    platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/android.hardware.renderscript@1.0.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/android.hardware.renderscript@1.0.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/android.hardware.renderscript@1.0.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/android.hardware.renderscript@1.0.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/android.hardware.graphics.allocator@2.0.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/android.hardware.graphics.allocator@2.0.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/android.hardware.graphics.allocator@2.0.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/android.hardware.graphics.allocator@2.0.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/android.hardware.graphics.mapper@2.0.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/android.hardware.graphics.mapper@2.0.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/android.hardware.graphics.mapper@2.0.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/android.hardware.graphics.mapper@2.0.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/android.hardware.graphics.common@1.0.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/android.hardware.graphics.common@1.0.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/android.hardware.graphics.common@1.0.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/android.hardware.graphics.common@1.0.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libhwbinder.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libhwbinder.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libhwbinder.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libhwbinder.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libbase.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libbase.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libbase.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libbase.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libcutils.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libcutils.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libcutils.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libcutils.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libhardware.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libhardware.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libhardware.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libhardware.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libhidlbase.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libhidlbase.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libhidlbase.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libhidlbase.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libhidltransport.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libhidltransport.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libhidltransport.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libhidltransport.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libutils.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libutils.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libutils.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libutils.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libc++.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libc++.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libc++.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libc++.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libRS_internal.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libRS_internal.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libRS_internal.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libRS_internal.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libRSDriver.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libRSDriver.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libRSDriver.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libRSDriver.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libRSCpuRef.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libRSCpuRef.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libRSCpuRef.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libRSCpuRef.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libbcinfo.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libbcinfo.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libbcinfo.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libbcinfo.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libblas.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libblas.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libblas.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libblas.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libft2.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libft2.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libft2.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libft2.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libpng.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libpng.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libpng.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libpng.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libcompiler_rt.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libcompiler_rt.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libcompiler_rt.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libcompiler_rt.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libbacktrace.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libbacktrace.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libbacktrace.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libbacktrace.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libunwind.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/libunwind.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libunwind.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/libunwind.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/liblzma.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib/vndk-sp/liblzma.so'
    build/core/base_rules.mk:390: warning: overriding commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/liblzma.so'
    build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/generic_x86_64/system/lib64/vndk-sp/liblzma.so'
    ./hardware/interfaces/cas/1.0/Android.mk:35: warning: overriding commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/HidlCasPluginDescriptor.java'
    hardware/interfaces/cas/1.0/CasHal.mk:83: warning: ignoring old commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/HidlCasPluginDescriptor.java'
    ./hardware/interfaces/cas/1.0/Android.mk:54: warning: overriding commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/Status.java'
    hardware/interfaces/cas/1.0/CasHal.mk:102: warning: ignoring old commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/Status.java'
    ./hardware/interfaces/cas/1.0/Android.mk:75: warning: overriding commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/ICas.java'
    hardware/interfaces/cas/1.0/CasHal.mk:123: warning: ignoring old commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/ICas.java'
    ./hardware/interfaces/cas/1.0/Android.mk:94: warning: overriding commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/ICasListener.java'
    hardware/interfaces/cas/1.0/CasHal.mk:142: warning: ignoring old commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/ICasListener.java'
    ./hardware/interfaces/cas/1.0/Android.mk:115: warning: overriding commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/IDescramblerBase.java'
    hardware/interfaces/cas/1.0/CasHal.mk:163: warning: ignoring old commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/IDescramblerBase.java'
    ./hardware/interfaces/cas/1.0/Android.mk:142: warning: overriding commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/IMediaCasService.java'
    hardware/interfaces/cas/1.0/CasHal.mk:190: warning: ignoring old commands for target `out/target/common/gen/JAVA_LIBRARIES/android.hardware.cas-V1.0-java_intermediates/android/hardware/cas/V1_0/IMediaCasService.java'


    [ 1% 1/72] target C++: camera. <= ha...dra7xx/camera/CameraHalUtilClasses.cpp
    FAILED: out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates/CameraHalUtilClasses.o
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I hardware/ti/dra7xx/camera/../hwcomposer -I hardware/libhardware/include/hardware -I hardware/ti/dra7xx/camera/inc -I system/media/camera/include -I external/jpeg -I external/libdrm/include/drm -I external/libdrm/omap -I external/libdrm -I hardware/ti/dra7xx/camera/../libtiutils -I frameworks/native/include/media/hardware -I frameworks/native/include/media/openmax -I hardware/ti/dra7xx/camera/inc/V4LCameraAdapter -I hardware/ti/dra7xx/camera -I out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates -I out/target/product/generic_x86_64/gen/SHARED_LIBRARIES/camera._intermediates -I libnativehelper/include_deprecated \$(cat out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._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/generic_x86_64/obj/include -isystem bionic/libc/arch-x86_64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-x86 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -O2 -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -ffunction-sections -fno-short-enums -fstrict-aliasing -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -O2 -g -fno-strict-aliasing -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 -m64 -march=x86-64 -DUSE_SSSE3 -mssse3 -msse4 -msse4.1 -msse4.2 -mpopcnt -target x86_64-linux-android -Bprebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -std=gnu++14 -fno-rtti -fno-short-enums -DCOPY_IMAGE_BUFFER -DANDROID_API_JB_OR_LATER -DCAMERAHAL_USE_RAW_IMAGE_SAVING -DLOG_TAG=\\\"CameraHal\\\" -DSUPPORT_ANDROID_FRAMEBUFFER_HAL -DSUPPORT_ANDROID_MEMTRACK_HAL -DUSE_V4LM2M -DV4L_CAMERA_ADAPTER -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/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates/CameraHalUtilClasses.d -o out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates/CameraHalUtilClasses.o hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp"
    In file included from hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:24:
    In file included from hardware/ti/dra7xx/camera/inc/CameraHal.h:52:
    In file included from hardware/ti/dra7xx/camera/inc/Common.h:21:
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:260:30: error: cast from pointer to smaller type 'int32_t' (aka 'int') loses information
    const int32_t threadId = reinterpret_cast<int32_t>(androidGetThreadId());
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:356:13: error: cast from pointer to smaller type 'int' loses information
    (int)mThreadId, IndentString<>(debug->offsetForCurrentThread()).string(),
    ^~~~~~~~~~~~~~
    system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
    __android_log_print(prio, tag, __VA_ARGS__)
    ^~~~~~~~~~~
    In file included from hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:24:
    In file included from hardware/ti/dra7xx/camera/inc/CameraHal.h:52:
    In file included from hardware/ti/dra7xx/camera/inc/Common.h:21:
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:367:13: error: cast from pointer to smaller type 'int' loses information
    (int)mThreadId, IndentString<>(debug->offsetForCurrentThread()).string(),
    ^~~~~~~~~~~~~~
    system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
    __android_log_print(prio, tag, __VA_ARGS__)
    ^~~~~~~~~~~
    In file included from hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:24:
    In file included from hardware/ti/dra7xx/camera/inc/CameraHal.h:52:
    In file included from hardware/ti/dra7xx/camera/inc/Common.h:21:
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:381:17: error: cast from pointer to smaller type 'int' loses information
    (int)mThreadId, IndentString<>(debug->offsetForCurrentThread()).string(),
    ^~~~~~~~~~~~~~
    system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
    __android_log_print(prio, tag, __VA_ARGS__)
    ^~~~~~~~~~~
    In file included from hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:24:
    hardware/ti/dra7xx/camera/inc/CameraHal.h:423:17: warning: implicit conversion of NULL constant to 'unsigned int' [-Wnull-conversion]
    mYuv[0] = NULL;
    ~ ^~~~
    0
    hardware/ti/dra7xx/camera/inc/CameraHal.h:424:17: warning: implicit conversion of NULL constant to 'unsigned int' [-Wnull-conversion]
    mYuv[1] = NULL;
    ~ ^~~~
    0
    hardware/ti/dra7xx/camera/inc/CameraHal.h:642:44: warning: unused parameter 'reset' [-Wunused-parameter]
    virtual CameraBuffer * getBuffers(bool reset = false) { return NULL; }
    ^
    hardware/ti/dra7xx/camera/inc/CameraHal.h:1070:37: warning: unused parameter 'str' [-Wunused-parameter]
    virtual bool match(const char * str) { return false; }
    ^
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:43:5: error: cast to 'void *' from smaller integer type 'int' [-Werror,-Wint-to-void-pointer-cast]
    LOG_FUNCTION_NAME_EXIT;
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:130:35: note: expanded from macro 'LOG_FUNCTION_NAME_EXIT'
    # define LOG_FUNCTION_NAME_EXIT (void*)__function_logger_instance;
    ^
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:56:5: error: cast to 'void *' from smaller integer type 'int' [-Werror,-Wint-to-void-pointer-cast]
    LOG_FUNCTION_NAME_EXIT;
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:130:35: note: expanded from macro 'LOG_FUNCTION_NAME_EXIT'
    # define LOG_FUNCTION_NAME_EXIT (void*)__function_logger_instance;
    ^
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:97:5: error: cast to 'void *' from smaller integer type 'int' [-Werror,-Wint-to-void-pointer-cast]
    LOG_FUNCTION_NAME_EXIT;
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:130:35: note: expanded from macro 'LOG_FUNCTION_NAME_EXIT'
    # define LOG_FUNCTION_NAME_EXIT (void*)__function_logger_instance;
    ^
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:110:5: error: cast to 'void *' from smaller integer type 'int' [-Werror,-Wint-to-void-pointer-cast]
    LOG_FUNCTION_NAME_EXIT;
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:130:35: note: expanded from macro 'LOG_FUNCTION_NAME_EXIT'
    # define LOG_FUNCTION_NAME_EXIT (void*)__function_logger_instance;
    ^
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:143:5: error: cast to 'void *' from smaller integer type 'int' [-Werror,-Wint-to-void-pointer-cast]
    LOG_FUNCTION_NAME_EXIT
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:130:35: note: expanded from macro 'LOG_FUNCTION_NAME_EXIT'
    # define LOG_FUNCTION_NAME_EXIT (void*)__function_logger_instance;
    ^
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:161:9: error: cast from pointer to smaller type 'int' loses information
    CAMHAL_LOGEB("Camera area weight is invalid %d", weight);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/inc/Common.h:54:22: note: expanded from macro 'CAMHAL_LOGEB'
    #define CAMHAL_LOGEB DBGUTILS_LOGEB
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:170:24: note: expanded from macro 'DBGUTILS_LOGEB'
    #define DBGUTILS_LOGEB DBGUTILS_LOGE
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:160:28: note: expanded from macro 'DBGUTILS_LOGE'
    #define DBGUTILS_LOGE(...) DBGUTILS_LOGV_FULL(ANDROID_LOG_ERROR, __FILE__, __LINE__, __FUNCTION__, TI_UTILS_DEBUG_TIMESTAMP_TOKEN "(%x) %s %s:%d %s - " __VA_ARGS__, "")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:151:17: note: expanded from macro 'DBGUTILS_LOGV_FULL'
    reinterpret_cast<int>(androidGetThreadId()), \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:166:9: error: cast from pointer to smaller type 'int' loses information
    CAMHAL_LOGEB("Camera area top coordinate is invalid %d", top );
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/inc/Common.h:54:22: note: expanded from macro 'CAMHAL_LOGEB'
    #define CAMHAL_LOGEB DBGUTILS_LOGEB
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:170:24: note: expanded from macro 'DBGUTILS_LOGEB'
    #define DBGUTILS_LOGEB DBGUTILS_LOGE
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:160:28: note: expanded from macro 'DBGUTILS_LOGE'
    #define DBGUTILS_LOGE(...) DBGUTILS_LOGV_FULL(ANDROID_LOG_ERROR, __FILE__, __LINE__, __FUNCTION__, TI_UTILS_DEBUG_TIMESTAMP_TOKEN "(%x) %s %s:%d %s - " __VA_ARGS__, "")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:151:17: note: expanded from macro 'DBGUTILS_LOGV_FULL'
    reinterpret_cast<int>(androidGetThreadId()), \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:171:9: error: cast from pointer to smaller type 'int' loses information
    CAMHAL_LOGEB("Camera area bottom coordinate is invalid %d", bottom );
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/inc/Common.h:54:22: note: expanded from macro 'CAMHAL_LOGEB'
    #define CAMHAL_LOGEB DBGUTILS_LOGEB
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:170:24: note: expanded from macro 'DBGUTILS_LOGEB'
    #define DBGUTILS_LOGEB DBGUTILS_LOGE
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:160:28: note: expanded from macro 'DBGUTILS_LOGE'
    #define DBGUTILS_LOGE(...) DBGUTILS_LOGV_FULL(ANDROID_LOG_ERROR, __FILE__, __LINE__, __FUNCTION__, TI_UTILS_DEBUG_TIMESTAMP_TOKEN "(%x) %s %s:%d %s - " __VA_ARGS__, "")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:151:17: note: expanded from macro 'DBGUTILS_LOGV_FULL'
    reinterpret_cast<int>(androidGetThreadId()), \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:176:9: error: cast from pointer to smaller type 'int' loses information
    CAMHAL_LOGEB("Camera area left coordinate is invalid %d", left );
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/inc/Common.h:54:22: note: expanded from macro 'CAMHAL_LOGEB'
    #define CAMHAL_LOGEB DBGUTILS_LOGEB
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:170:24: note: expanded from macro 'DBGUTILS_LOGEB'
    #define DBGUTILS_LOGEB DBGUTILS_LOGE
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:160:28: note: expanded from macro 'DBGUTILS_LOGE'
    #define DBGUTILS_LOGE(...) DBGUTILS_LOGV_FULL(ANDROID_LOG_ERROR, __FILE__, __LINE__, __FUNCTION__, TI_UTILS_DEBUG_TIMESTAMP_TOKEN "(%x) %s %s:%d %s - " __VA_ARGS__, "")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:151:17: note: expanded from macro 'DBGUTILS_LOGV_FULL'
    reinterpret_cast<int>(androidGetThreadId()), \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:181:9: error: cast from pointer to smaller type 'int' loses information
    CAMHAL_LOGEB("Camera area right coordinate is invalid %d", right );
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/inc/Common.h:54:22: note: expanded from macro 'CAMHAL_LOGEB'
    #define CAMHAL_LOGEB DBGUTILS_LOGEB
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:170:24: note: expanded from macro 'DBGUTILS_LOGEB'
    #define DBGUTILS_LOGEB DBGUTILS_LOGE
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:160:28: note: expanded from macro 'DBGUTILS_LOGE'
    #define DBGUTILS_LOGE(...) DBGUTILS_LOGV_FULL(ANDROID_LOG_ERROR, __FILE__, __LINE__, __FUNCTION__, TI_UTILS_DEBUG_TIMESTAMP_TOKEN "(%x) %s %s:%d %s - " __VA_ARGS__, "")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:151:17: note: expanded from macro 'DBGUTILS_LOGV_FULL'
    reinterpret_cast<int>(androidGetThreadId()), \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:186:9: error: cast from pointer to smaller type 'int' loses information
    CAMHAL_LOGEA("Camera area left larger than right");
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/inc/Common.h:53:22: note: expanded from macro 'CAMHAL_LOGEA'
    #define CAMHAL_LOGEA DBGUTILS_LOGEA
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:169:24: note: expanded from macro 'DBGUTILS_LOGEA'
    #define DBGUTILS_LOGEA DBGUTILS_LOGE
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:160:28: note: expanded from macro 'DBGUTILS_LOGE'
    #define DBGUTILS_LOGE(...) DBGUTILS_LOGV_FULL(ANDROID_LOG_ERROR, __FILE__, __LINE__, __FUNCTION__, TI_UTILS_DEBUG_TIMESTAMP_TOKEN "(%x) %s %s:%d %s - " __VA_ARGS__, "")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:151:17: note: expanded from macro 'DBGUTILS_LOGV_FULL'
    reinterpret_cast<int>(androidGetThreadId()), \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:191:9: error: cast from pointer to smaller type 'int' loses information
    CAMHAL_LOGEA("Camera area top larger than bottom");
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/inc/Common.h:53:22: note: expanded from macro 'CAMHAL_LOGEA'
    #define CAMHAL_LOGEA DBGUTILS_LOGEA
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:169:24: note: expanded from macro 'DBGUTILS_LOGEA'
    #define DBGUTILS_LOGEA DBGUTILS_LOGE
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:160:28: note: expanded from macro 'DBGUTILS_LOGE'
    #define DBGUTILS_LOGE(...) DBGUTILS_LOGV_FULL(ANDROID_LOG_ERROR, __FILE__, __LINE__, __FUNCTION__, TI_UTILS_DEBUG_TIMESTAMP_TOKEN "(%x) %s %s:%d %s - " __VA_ARGS__, "")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:151:17: note: expanded from macro 'DBGUTILS_LOGV_FULL'
    reinterpret_cast<int>(androidGetThreadId()), \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:238:13: error: cast from pointer to smaller type 'int' loses information
    CAMHAL_LOGEA("Parsing of the left area coordinate failed!");
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/inc/Common.h:53:22: note: expanded from macro 'CAMHAL_LOGEA'
    #define CAMHAL_LOGEA DBGUTILS_LOGEA
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:169:24: note: expanded from macro 'DBGUTILS_LOGEA'
    #define DBGUTILS_LOGEA DBGUTILS_LOGE
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:160:28: note: expanded from macro 'DBGUTILS_LOGE'
    #define DBGUTILS_LOGE(...) DBGUTILS_LOGV_FULL(ANDROID_LOG_ERROR, __FILE__, __LINE__, __FUNCTION__, TI_UTILS_DEBUG_TIMESTAMP_TOKEN "(%x) %s %s:%d %s - " __VA_ARGS__, "")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:151:17: note: expanded from macro 'DBGUTILS_LOGV_FULL'
    reinterpret_cast<int>(androidGetThreadId()), \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:249:13: error: cast from pointer to smaller type 'int' loses information
    CAMHAL_LOGEA("Parsing of the top area coordinate failed!");
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/inc/Common.h:53:22: note: expanded from macro 'CAMHAL_LOGEA'
    #define CAMHAL_LOGEA DBGUTILS_LOGEA
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:169:24: note: expanded from macro 'DBGUTILS_LOGEA'
    #define DBGUTILS_LOGEA DBGUTILS_LOGE
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:160:28: note: expanded from macro 'DBGUTILS_LOGE'
    #define DBGUTILS_LOGE(...) DBGUTILS_LOGV_FULL(ANDROID_LOG_ERROR, __FILE__, __LINE__, __FUNCTION__, TI_UTILS_DEBUG_TIMESTAMP_TOKEN "(%x) %s %s:%d %s - " __VA_ARGS__, "")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:151:17: note: expanded from macro 'DBGUTILS_LOGV_FULL'
    reinterpret_cast<int>(androidGetThreadId()), \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/CameraHalUtilClasses.cpp:260:13: error: cast from pointer to smaller type 'int' loses information
    CAMHAL_LOGEA("Parsing of the right area coordinate failed!");
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/inc/Common.h:53:22: note: expanded from macro 'CAMHAL_LOGEA'
    #define CAMHAL_LOGEA DBGUTILS_LOGEA
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:169:24: note: expanded from macro 'DBGUTILS_LOGEA'
    #define DBGUTILS_LOGEA DBGUTILS_LOGE
    ^
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:160:28: note: expanded from macro 'DBGUTILS_LOGE'
    #define DBGUTILS_LOGE(...) DBGUTILS_LOGV_FULL(ANDROID_LOG_ERROR, __FILE__, __LINE__, __FUNCTION__, TI_UTILS_DEBUG_TIMESTAMP_TOKEN "(%x) %s %s:%d %s - " __VA_ARGS__, "")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:151:17: note: expanded from macro 'DBGUTILS_LOGV_FULL'
    reinterpret_cast<int>(androidGetThreadId()), \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    4 warnings and 20 errors generated.
    [ 2% 2/72] target C++: camera. <= ha.../ti/dra7xx/camera/CameraHal_Module.cpp
    FAILED: out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates/CameraHal_Module.o
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I hardware/ti/dra7xx/camera/../hwcomposer -I hardware/libhardware/include/hardware -I hardware/ti/dra7xx/camera/inc -I system/media/camera/include -I external/jpeg -I external/libdrm/include/drm -I external/libdrm/omap -I external/libdrm -I hardware/ti/dra7xx/camera/../libtiutils -I frameworks/native/include/media/hardware -I frameworks/native/include/media/openmax -I hardware/ti/dra7xx/camera/inc/V4LCameraAdapter -I hardware/ti/dra7xx/camera -I out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates -I out/target/product/generic_x86_64/gen/SHARED_LIBRARIES/camera._intermediates -I libnativehelper/include_deprecated \$(cat out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._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/generic_x86_64/obj/include -isystem bionic/libc/arch-x86_64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-x86 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -O2 -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -ffunction-sections -fno-short-enums -fstrict-aliasing -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -O2 -g -fno-strict-aliasing -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 -m64 -march=x86-64 -DUSE_SSSE3 -mssse3 -msse4 -msse4.1 -msse4.2 -mpopcnt -target x86_64-linux-android -Bprebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -std=gnu++14 -fno-rtti -fno-short-enums -DCOPY_IMAGE_BUFFER -DANDROID_API_JB_OR_LATER -DCAMERAHAL_USE_RAW_IMAGE_SAVING -DLOG_TAG=\\\"CameraHal\\\" -DSUPPORT_ANDROID_FRAMEBUFFER_HAL -DSUPPORT_ANDROID_MEMTRACK_HAL -DUSE_V4LM2M -DV4L_CAMERA_ADAPTER -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/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates/CameraHal_Module.d -o out/target/product/generic_x86_64/obj/SHARED_LIBRARIES/camera._intermediates/CameraHal_Module.o hardware/ti/dra7xx/camera/CameraHal_Module.cpp"
    In file included from hardware/ti/dra7xx/camera/CameraHal_Module.cpp:26:
    In file included from hardware/ti/dra7xx/camera/inc/CameraHal.h:52:
    In file included from hardware/ti/dra7xx/camera/inc/Common.h:21:
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:260:30: error: cast from pointer to smaller type 'int32_t' (aka 'int') loses information
    const int32_t threadId = reinterpret_cast<int32_t>(androidGetThreadId());
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:356:13: error: cast from pointer to smaller type 'int' loses information
    (int)mThreadId, IndentString<>(debug->offsetForCurrentThread()).string(),
    ^~~~~~~~~~~~~~
    system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
    __android_log_print(prio, tag, __VA_ARGS__)
    ^~~~~~~~~~~
    In file included from hardware/ti/dra7xx/camera/CameraHal_Module.cpp:26:
    In file included from hardware/ti/dra7xx/camera/inc/CameraHal.h:52:
    In file included from hardware/ti/dra7xx/camera/inc/Common.h:21:
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:367:13: error: cast from pointer to smaller type 'int' loses information
    (int)mThreadId, IndentString<>(debug->offsetForCurrentThread()).string(),
    ^~~~~~~~~~~~~~
    system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
    __android_log_print(prio, tag, __VA_ARGS__)
    ^~~~~~~~~~~
    In file included from hardware/ti/dra7xx/camera/CameraHal_Module.cpp:26:
    In file included from hardware/ti/dra7xx/camera/inc/CameraHal.h:52:
    In file included from hardware/ti/dra7xx/camera/inc/Common.h:21:
    hardware/ti/dra7xx/camera/../libtiutils/DebugUtils.h:381:17: error: cast from pointer to smaller type 'int' loses information
    (int)mThreadId, IndentString<>(debug->offsetForCurrentThread()).string(),
    ^~~~~~~~~~~~~~
    system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
    __android_log_print(prio, tag, __VA_ARGS__)
    ^~~~~~~~~~~
    In file included from hardware/ti/dra7xx/camera/CameraHal_Module.cpp:26:
    hardware/ti/dra7xx/camera/inc/CameraHal.h:423:17: warning: implicit conversion of NULL constant to 'unsigned int' [-Wnull-conversion]
    mYuv[0] = NULL;
    ~ ^~~~
    0
    hardware/ti/dra7xx/camera/inc/CameraHal.h:424:17: warning: implicit conversion of NULL constant to 'unsigned int' [-Wnull-conversion]
    mYuv[1] = NULL;
    ~ ^~~~
    0
    hardware/ti/dra7xx/camera/inc/CameraHal.h:642:44: warning: unused parameter 'reset' [-Wunused-parameter]
    virtual CameraBuffer * getBuffers(bool reset = false) { return NULL; }
    ^
    hardware/ti/dra7xx/camera/inc/CameraHal.h:1070:37: warning: unused parameter 'str' [-Wunused-parameter]
    virtual bool match(const char * str) { return false; }
    ^
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:53:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    open: camera_device_open
    ^~~~~
    .open =
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:61:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    common: {
    ^~~~~~~
    .common =
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:62:10: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    tag: HARDWARE_MODULE_TAG,
    ^~~~
    .tag =
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:63:10: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    version_major: 1,
    ^~~~~~~~~~~~~~
    .module_api_version =
    hardware/libhardware/include/hardware/hardware.h:114:23: note: expanded from macro 'version_major'
    #define version_major module_api_version
    ^
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:64:10: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    version_minor: 0,
    ^~~~~~~~~~~~~~
    .hal_api_version =
    hardware/libhardware/include/hardware/hardware.h:132:23: note: expanded from macro 'version_minor'
    #define version_minor hal_api_version
    ^
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:65:10: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    id: CAMERA_HARDWARE_MODULE_ID,
    ^~~
    .id =
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:66:10: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    name: "TI OMAP CameraHal Module",
    ^~~~~
    .name =
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:67:10: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    author: "TI",
    ^~~~~~~
    .author =
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:68:10: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    methods: &Ti::Camera::camera_module_methods,
    ^~~~~~~~
    .methods =
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:69:10: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    dso: NULL, /* remove compilation warnings */
    ^~~~
    .dso =
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:70:10: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    reserved: {0}, /* remove compilation warnings */
    ^~~~~~~~~
    .reserved =
    hardware/ti/dra7xx/camera/CameraHal_Module.cpp:72:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
    get_number_of_cameras: Ti::Camera::camera_get_number_of_cameras,
    ^~~~~~~~~~~~~~~~~~~~~~




    thanks
    Ala
  • Hi Ala,

    Can you try using 'make camera.jacinto6' instead of 'mma -j4'? You would issue this from '~/workspace/AAOreo/' instead of 'camera' directory.

    Thanks,
    David
  • Hi David

    there is another error:

    ard@ard-OptiPlex-3010:~/workspace/AAOreo$ make camera.jacinto6
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=8.1.0
    TARGET_PRODUCT=aosp_car_x86_64
    TARGET_BUILD_VARIANT=userdebug
    TARGET_BUILD_TYPE=release
    TARGET_ARCH=x86_64
    TARGET_ARCH_VARIANT=x86_64
    TARGET_2ND_ARCH=x86
    TARGET_2ND_ARCH_VARIANT=x86_64
    HOST_ARCH=x86_64
    HOST_2ND_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-4.15.0-47-generic-x86_64-with-Ubuntu-16.04-xenial
    HOST_CROSS_OS=windows
    HOST_CROSS_ARCH=x86
    HOST_CROSS_2ND_ARCH=x86_64
    HOST_BUILD_TYPE=release
    BUILD_ID=OPM8.190305.001
    OUT_DIR=out
    ============================================
    ninja: no work to do.
    ninja: no work to do.
    No need to regenerate ninja file
    ninja: error: unknown target 'camera.jacinto6'
    16:52:20 ninja failed with: exit status 1

    #### failed to build some targets (41 seconds) ####

    Regards
    Ala.
  • Hi Ala,

    Are you setting your environment up before this?

    . build/envsetup.sh
    lunch aosp_car_x86_64-userdebug
    make camera.jacinto6

    Also, can you try using 'lunch full_jacinto6evm-userdebug' instead of 'lunch aosp_car_x86_64-userdebug'?


    Thanks,
    David

  • Hi David

    I followed these steps , but there is another error :

    ard@ard-OptiPlex-3010:~/workspace/AAOreo$ lunch full_jacinto6evm-userdebug

    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=8.1.0
    TARGET_PRODUCT=full_jacinto6evm
    TARGET_BUILD_VARIANT=userdebug
    TARGET_BUILD_TYPE=release
    TARGET_PLATFORM_VERSION=OPM1
    TARGET_BUILD_APPS=
    TARGET_ARCH=arm
    TARGET_ARCH_VARIANT=armv7-a-neon
    TARGET_CPU_VARIANT=cortex-a15
    TARGET_2ND_ARCH=
    TARGET_2ND_ARCH_VARIANT=
    TARGET_2ND_CPU_VARIANT=
    HOST_ARCH=x86_64
    HOST_2ND_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-4.15.0-47-generic-x86_64-with-Ubuntu-16.04-xenial
    HOST_CROSS_OS=windows
    HOST_CROSS_ARCH=x86
    HOST_CROSS_2ND_ARCH=x86_64
    HOST_BUILD_TYPE=release
    BUILD_ID=OPM8.190305.001
    OUT_DIR=out
    AUX_OS_VARIANT_LIST=
    ============================================
    ard@ard-OptiPlex-3010:~/workspace/AAOreo$ make camera.jacinto6
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=8.1.0
    TARGET_PRODUCT=full_jacinto6evm
    TARGET_BUILD_VARIANT=userdebug
    TARGET_BUILD_TYPE=release
    TARGET_ARCH=arm
    TARGET_ARCH_VARIANT=armv7-a-neon
    TARGET_CPU_VARIANT=cortex-a15
    HOST_ARCH=x86_64
    HOST_2ND_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-4.15.0-47-generic-x86_64-with-Ubuntu-16.04-xenial
    HOST_CROSS_OS=windows
    HOST_CROSS_ARCH=x86
    HOST_CROSS_2ND_ARCH=x86_64
    HOST_BUILD_TYPE=release
    BUILD_ID=OPM8.190305.001
    OUT_DIR=out
    ============================================
    ninja: no work to do.
    [1/2] glob device/*/*/Android.bp
    [1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
    out/build-full_jacinto6evm.ninja is missing, regenerating...


    [231/1004] including ./external/libdrm/Android.mk ...
    external/libdrm/libkms/Android.mk:23: warning: invalid GPU drivers: omapdrm
    [248/1004] including ./external/mesa3d/Android.mk ...
    ./external/mesa3d/Android.mk:52: warning: invalid GPU drivers: omapdrm
    [689/1004] including ./system/sepolicy/Android.mk ...
    ./system/sepolicy/Android.mk:111: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
    [1004/1004] including ./tools/tradefederation/core/Android.mk ...
    hardware/ti/dra7xx/camera/Android.mk: error: camera.jacinto6 (SHARED_LIBRARIES android-arm) missing libjhead (SHARED_LIBRARIES android-arm)
    You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
    build/core/main.mk:728: error: exiting from previous errors.
    09:14:03 ckati failed with: exit status 1

    #### failed to build some targets (13:08 (mm:ss)) ####


    Regards
    Ala

  • Hi Ala,

    To resolve this issue specifically, please see this patch:
    review.omapzoom.org/

    More generally, what source and branches are you using for this? Are you following our 6AO release pages?

    processors.wiki.ti.com/.../6AO.1.1_Release_Notes

    Thanks,
    David