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.

PROCESSOR-SDK-J721E: SDK 9.0 - Host emulation warnings

Part Number: PROCESSOR-SDK-J721E

Hi,

There are a ton of warnings when building the SDK for host emulation (see a few of them below). I assume this is because of the newer gcc version. Will this be addressed?

cd /opt/ti-processor-sdk-rtos-j721e-evm-09_00_00_02/sdk_builder
make sdk BUILD_TARGET_MODE=no BUILD_EMULATION_MODE=yes BUILD_EMULATION_ARCH=x86_64 -j$(nproc) PROFILE=release

#7 1.197 /opt/ti-processor-sdk-rtos-j721e-evm-09_00_00_02/pdk_jacinto_09_00_00_45/packages/ti/csl/src/ip/dru/V0/csl_dru.h:533:5: warning: converting a packed ‘CSL_UdmapTR’ {aka ‘const struct CSL_UdmapTR_t’} pointer (alignment 1) to a ‘uint32_t’ {aka ‘const unsigned int’} pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member]
#7 1.197   533 |     const uint32_t *trWord32 = (const uint32_t *) tr;
#7 1.197       |     ^~~~~

#7 2.201 /opt/ti-processor-sdk-rtos-j721e-evm-09_00_00_02/c7x-mma-tidl/arm-tidl/tiovx_kernels/tidl/mpu/vx_tidl_target.c:509:74: warning: ‘/C7x_’ directive output may be truncated writing 5 bytes into a region of size between 1 and 512 [-Wformat-truncation=]
#7 2.201   509 |                     snprintf((char *)traceBaseName, TIDL_STRING_SIZE, "%s/C7x_%d_%s", dirName, (i+1), (char *)fileNamePtr);
#7 2.201       |                                                                          ^~~~~
#7 2.201 /opt/ti-processor-sdk-rtos-j721e-evm-09_00_00_02/c7x-mma-tidl/arm-tidl/tiovx_kernels/tidl/mpu/vx_tidl_target.c:509:71: note: directive argument in the range [1, 2]
#7 2.201   509 |                     snprintf((char *)traceBaseName, TIDL_STRING_SIZE, "%s/C7x_%d_%s", dirName, (i+1), (char *)fileNamePtr);
#7 2.201       |                                                                       ^~~~~~~~~~~~~~
#7 2.201 In file included from /usr/include/stdio.h:894,
#7 2.201                  from /opt/ti-processor-sdk-rtos-j721e-evm-09_00_00_02/c7x-mma-tidl/arm-tidl/tiovx_kernels/tidl/mpu/vx_tidl_target.c:63:
#7 2.201 /usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: ‘__builtin___snprintf_chk’ output 8 or more bytes (assuming 519) into a destination of size 512
#7 2.201    71 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#7 2.201       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#7 2.201    72 |                                    __glibc_objsize (__s), __fmt,
#7 2.201       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#7 2.201    73 |                                    __va_arg_pack ());
#7 2.201       |                                    ~~~~~~~~~~~~~~~~~

#7 3.040 src/tidl_alg_utils.c:1150:39: warning: NULL used in arithmetic [-Wpointer-arith]
#7 3.040  1150 |      && (params->net->dataFlowInfo == NULL)
#7 3.040       |                                       ^~~~
#7 3.042 src/tidl_alg_utils.c: In function ‘void TIDL_outBuffInit(const TIDL_CreateParams*, int32_t, int32_t*, const IALG_MemRec*, void**, int32_t)’:
#7 3.042 src/tidl_alg_utils.c:1412:75: warning: NULL used in arithmetic [-Wpointer-arith]
#7 3.042  1412 |         params->currLayersGroupId) == 1) || (params->net->dataFlowInfo != NULL) )
#7 3.042       |                                                                           ^~~~

#7 4.825 src/tidl_conv2d_base.c:2085:33: warning: ‘sizeof’ on array function parameter ‘memorySize’ will return size of ‘int32_t*’ {aka ‘int*’} [-Wsizeof-array-argument]
#7 4.825  2085 |   memset (memorySize, 0, sizeof(memorySize));
#7 4.825       |                                ~^~~~~~~~~~~
#7 4.825 src/tidl_conv2d_base.c:2075:44: note: declared here
#7 4.825  2075 |                                    int32_t memorySize[TIDL_LAYER_MEMORY_MAX])
#7 4.825       |                                    ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#7 15.86 tidl_avx.c: In instantiation of ‘void TIDL_refConv2dKernelAvxIn8bitProc16bit(Tin*, Tw*, Tb*, Tacc*, Tacc*, Tacc*, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t) [with int Ksize = 1; Tin = short int; Tw = signed char; Tb = int; Tacc = int; int32_t = int]’:
#7 15.86 tidl_avx.c:1656:71:   required from ‘void TIDL_refConv2dKernelAvxProc(Tin*, Tw*, Tb*, Tacc*, Tacc*, Tacc*, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t) [with Tin = short int; Tw = signed char; Tb = int; Tacc = int; int32_t = int]’
#7 15.86 tidl_avx.c:1949:24:   required from here
#7 15.86 tidl_avx.c:1143:24: warning: left shift count >= width of type [-Wshift-count-overflow]
#7 15.86  1143 |       mask[j]=((Tacc)1)<<63;
#7 15.86       |               ~~~~~~~~~^~~~
#7 15.87 tidl_avx.c: In instantiation of ‘void TIDL_refConv2dKernelAvxProc16bit(Tin*, Tw*, Tb*, Tacc*, Tacc*, Tacc*, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t) [with int Ksize = 3; Tin = short int; Tw = signed char; Tb = int; Tacc = int; int32_t = int]’:
#7 15.87 tidl_avx.c:1669:65:   required from ‘void TIDL_refConv2dKernelAvxProc(Tin*, Tw*, Tb*, Tacc*, Tacc*, Tacc*, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t) [with Tin = short int; Tw = signed char; Tb = int; Tacc = int; int32_t = int]’
#7 15.87 tidl_avx.c:1949:24:   required from here
#7 15.87 tidl_avx.c:795:24: warning: left shift count >= width of type [-Wshift-count-overflow]
#7 15.87   795 |       mask[j]=((Tacc)1)<<63;
#7 15.87       |               ~~~~~~~~~^~~~
#7 15.87 tidl_avx.c: In instantiation of ‘void TIDL_refConv2dKernelAvxIn8bitProc16bit(Tin*, Tw*, Tb*, Tacc*, Tacc*, Tacc*, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t) [with int Ksize = 3; Tin = short int; Tw = signed char; Tb = int; Tacc = int; int32_t = int]’:
#7 15.87 tidl_avx.c:1674:71:   required from ‘void TIDL_refConv2dKernelAvxProc(Tin*, Tw*, Tb*, Tacc*, Tacc*, Tacc*, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t, int32_t) [with Tin = short int; Tw = signed char; Tb = int; Tacc = int; int32_t = int]’
#7 15.87 tidl_avx.c:1949:24:   required from here
#7 15.87 tidl_avx.c:1143:24: warning: left shift count >= width of type [-Wshift-count-overflow]
#7 15.87  1143 |       mask[j]=((Tacc)1)<<63;
#7 15.87       |               ~~~~~~~~~^~~~

#7 77.27 cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
#7 77.27 cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++