So I have an excerpt of my error log here from the previous build. It is a bit lengthy. One of the things about Android compiling that is interesting to me, is that you are compiling multiple parts at the same time. That being said, at the bottom is the notification of failure to build, but no-where near there is one of our key-words to denote the failure. The failure actually transpired 169 lines up from the finished failure line, because make has to wait for all jobs to finish before it can actually stop the build.

Just so we are not confused, the commands do not continue to build new things on the list, they simply complete whatever item that they are working on before closing shop due to the error.

[CODE]
hardware/qcom/media-caf/msm8960/mm-video/vidc/vdec/src/omx_vdec.cpp:10428:39: warning: format specifies type ‘int’ but the argument has type ‘OMX_U32’ (aka ‘unsigned long’) [-Wformat]
buffer_size_req,bytes);
^~~~~
system/core/include/log/log.h:156:52: note: expanded from macro ‘ALOGE’
#define ALOGE(…) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__))
^
system/core/include/log/log.h:453:38: note: expanded from macro ‘ALOG’
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:461:37: note: expanded from macro ‘LOG_PRI’
android_printLog(priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:534:36: note: expanded from macro ‘android_printLog’
__android_log_print(prio, tag, fmt)
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/vdec/src/omx_vdec.cpp:10442:45: warning: comparison of integers of different signs: ‘int’ and ‘uint32_t’ (aka ‘unsigned int’) [-Wsign-compare]
if ((temp_bufferHdr – omx->m_out_mem_ptr) >=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
hardware/qcom/media-caf/msm8960/mm-video/vidc/vdec/src/omx_vdec.cpp:10512:51: warning: format specifies type ‘int’ but the argument has type ‘OMX_U32’ (aka ‘unsigned long’) [-Wformat]
func, bufferHdr, buffer_size_req, bytes);
^~~~~
system/core/include/log/log.h:156:52: note: expanded from macro ‘ALOGE’
#define ALOGE(…) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__))
^
system/core/include/log/log.h:453:38: note: expanded from macro ‘ALOG’
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:461:37: note: expanded from macro ‘LOG_PRI’
android_printLog(priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:534:36: note: expanded from macro ‘android_printLog’
OMX_EventError, p2, NULL, NULL );
^~~~
0
211 warnings and 3 errors generated. ##################<—-HERE IS THE ERROR! #################
make: *** Waiting for unfinished jobs….
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:697:44: warning: implicit conversion of NULL constant to ‘OMX_U32’ (aka ‘unsigned long’) [-Wnull-conversion]
NULL, NULL);
^~~~
0
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:413:19: warning: comparison of integers of different signs:
system/core/include/log/log.h:156:52: note: expanded from macro ‘ALOGE’
#define ALOGE(…) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__))
^
system/core/include/log/log.h:453:38: note: expanded from macro ‘ALOG’
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:461:37: note: expanded from macro ‘LOG_PRI’
android_printLog(priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:534:36: note: expanded from macro ‘android_printLog’
__android_log_print(prio, tag, fmt)
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:2953:82: warning: unused parameter ‘hComp’ [-Wunused-parameter]
OMX_IN OMX_HANDLETYPE hComp,
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:2955:82: warning: unused parameter ‘port’ [-Wunused-parameter]
OMX_IN OMX_U32 port,
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3213:69: warning: unused parameter ‘hComp’ [-Wunused-parameter]
OMX_ERRORTYPE omx_video::free_buffer(OMX_IN OMX_HANDLETYPE hComp,
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3595:21: warning: format specifies type ‘unsigned int’ but the argument has type ‘unsigned long’ [-Wformat]
(width*height), chromaOffset, buffer->nAllocLen,
^~~~~~~~~~~~~~
system/core/include/log/log.h:156:52: note: expanded from macro ‘ALOGE’
#define ALOGE(…) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__))
^
system/core/include/log/log.h:453:38: note: expanded from macro ‘ALOG’
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:461:37: note: expanded from macro ‘LOG_PRI’
android_printLog(priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:534:36: note: expanded from macro ‘android_printLog’
__android_log_print(prio, tag, fmt)
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3595:37: warning: format specifies type ‘unsigned int’ but the argument has type ‘OMX_U32’ (aka ‘unsigned long’) [-Wformat]
(width*height), chromaOffset, buffer->nAllocLen,
^~~~~~~~~~~~
system/core/include/log/log.h:156:52: note: expanded from macro ‘ALOGE’
#define ALOGE(…) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__))
^
system/core/include/log/log.h:453:38: note: expanded from macro ‘ALOG’
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:461:37: note: expanded from macro ‘LOG_PRI’
android_printLog(priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:534:36: note: expanded from macro ‘android_printLog’
__android_log_print(prio, tag, fmt)
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3595:51: warning: format specifies type ‘unsigned int’ but the argument has type ‘OMX_U32’ (aka ‘unsigned long’) [-Wformat]
(width*height), chromaOffset, buffer->nAllocLen,
^~~~~~~~~~~~~~~~~
system/core/include/log/log.h:156:52: note: expanded from macro ‘ALOGE’
#define ALOGE(…) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__))
^
system/core/include/log/log.h:453:38: note: expanded from macro ‘ALOG’
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:461:37: note: expanded from macro ‘LOG_PRI’
android_printLog(priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:534:36: note: expanded from macro ‘android_printLog’
__android_log_print(prio, tag, fmt)
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3596:21: warning: format specifies type ‘unsigned int’ but the argument has type ‘unsigned long’ [-Wformat]
chromaOffset+chromaSize);
^~~~~~~~~~~~~~~~~~~~~~~
system/core/include/log/log.h:156:52: note: expanded from macro ‘ALOGE’
#define ALOGE(…) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__))
^
system/core/include/log/log.h:453:38: note: expanded from macro ‘ALOG’
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:461:37: note: expanded from macro ‘LOG_PRI’
android_printLog(priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:534:36: note: expanded from macro ‘android_printLog’
__android_log_print(prio, tag, fmt)
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3470:81: warning: unused parameter ‘hComp’ [-Wunused-parameter]
OMX_ERRORTYPE omx_video::empty_this_buffer_proxy(OMX_IN OMX_HANDLETYPE hComp,
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3688:78: warning: unused parameter ‘hComp’ [-Wunused-parameter]
OMX_IN OMX_HANDLETYPE hComp,
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3696:56: warning: comparison of integers of different signs: ‘int’ and ‘OMX_U32’ (aka ‘unsigned long’) [-Wsign-compare]
if(bufferAdd == NULL || ((bufferAdd – m_out_mem_ptr) >= m_sOutPortDef.nBufferCountActual) )
~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3743:70: warning: unused parameter ‘hComp’ [-Wunused-parameter]
OMX_ERRORTYPE omx_video::set_callbacks(OMX_IN OMX_HANDLETYPE hComp,
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3770:78: warning: unused parameter ‘hComp’ [-Wunused-parameter]
OMX_ERRORTYPE omx_video::use_EGL_image(OMX_IN OMX_HANDLETYPE hComp,
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3771:74: warning: unused parameter ‘bufferHdr’ [-Wunused-parameter]
OMX_INOUT OMX_BUFFERHEADERTYPE** bufferHdr,
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3772:79: warning: unused parameter ‘port’ [-Wunused-parameter]
OMX_IN OMX_U32 port,
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3773:76: warning: unused parameter ‘appData’ [-Wunused-parameter]
OMX_IN OMX_PTR appData,
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3774:75: warning: unused parameter ‘eglImage’ [-Wunused-parameter]
OMX_IN void* eglImage)
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:3793:69: warning: unused parameter ‘hComp’ [-Wunused-parameter]
OMX_ERRORTYPE omx_video::component_role_enum(OMX_IN OMX_HANDLETYPE hComp,
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:4138:21: warning: format specifies type ‘int’ but the argument has type ‘OMX_U32’ (aka ‘unsigned long’) [-Wformat]
buffer, idx, m_sOutPortDef.nBufferCountActual);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
system/core/include/log/log.h:156:52: note: expanded from macro ‘ALOGE’
#define ALOGE(…) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__))
^
system/core/include/log/log.h:453:38: note: expanded from macro ‘ALOG’
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:461:37: note: expanded from macro ‘LOG_PRI’
android_printLog(priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:534:36: note: expanded from macro ‘android_printLog’
__android_log_print(prio, tag, fmt)
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:4135:50: warning: comparison of integers of different signs: ‘int’ and ‘OMX_U32’ (aka ‘unsigned long’) [-Wsign-compare]
if(buffer == NULL || ((buffer – m_out_mem_ptr) > m_sOutPortDef.nBufferCountActual))
~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:4188:21: warning: comparison of integers of different signs: ‘int’ and ‘OMX_U32’ (aka ‘unsigned long’) [-Wsign-compare]
((buffer_index > m_sInPortDef.nBufferCountActual) &&
~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:4189:26: warning: comparison of integers of different signs: ‘int’ and ‘OMX_U32’ (aka ‘unsigned long’) [-Wsign-compare]
(buffer_index_meta > m_sInPortDef.nBufferCountActual)))
~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:4405:121: warning: format specifies type ‘int’ but the argument has type ‘OMX_U32’ (aka ‘unsigned long’) [-Wformat]
DEBUG_PRINT_ERROR(“get_parameter: OMX_IndexParamVideoProfileLevelQuerySupported nProfileIndex ret NoMore %d\n”, profileLevelType->nProfileIndex); %lu
system/core/include/log/log.h:156:52: note: expanded from macro ‘ALOGE’
#define ALOGE(…) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__))
^
system/core/include/log/log.h:453:38: note: expanded from macro ‘ALOG’
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:461:37: note: expanded from macro ‘LOG_PRI’
android_printLog(priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:534:36: note: expanded from macro ‘android_printLog’
__android_log_print(prio, tag, fmt)
^
hardware/qcom/media-caf/msm8960/mm-video/vidc/venc/src/omx_video_base.cpp:4423:121: warning: format specifies type ‘int’ but the argument has type ‘OMX_U32’ (aka ‘unsigned long’) [-Wformat]
DEBUG_PRINT_ERROR(“get_parameter: OMX_IndexParamVideoProfileLevelQuerySupported nProfileIndex ret NoMore %d\n”, profileLevelType->nProfileIndex);
system/core/include/log/log.h:453:38: note: expanded from macro ‘ALOG’
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:461:37: note: expanded from macro ‘LOG_PRI’
android_printLog(priority, tag, __VA_ARGS__)
^
system/core/include/log/log.h:534:36: note: expanded from macro ‘android_printLog’
__android_log_print(prio, tag, fmt)
^
95 warnings generated.
make: Leaving directory `/home/alaskalinuxuser/Documents/projects/phones/compile/slimroms6′

#### make failed to build some targets (02:10:13 (hh:mm:ss)) ####
[/CODE]

When we look back through the logs, we can see that there are actually a lot of warnings, and several errors. Most of them seem to revolve around things in the “mm-video” folder, and the system/core/include/log/log.h file. Once again, we really don’t want to change SLimRoms source code unless we have to, but in this case, the two are both in the source code downloaded from SlimRoms.

I decided to compare the SlimRom source download with the CM13 source that provided a successful build. There were several notable differences from the two mm-video folders, so I decided to drop in the CM13 mm-video folder and see where that takes us. It built successfully on the CM13 build, so I am hoping that it will work here too.

Linux – Keep it simple.

Leave a Reply

Your email address will not be published. Required fields are marked *