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