Tool/software: Linux
Hi,
I am facing following error while compiling VISION SDK 3.04.
...
#
#
# /home/sj/dvr_toolchain/SDK/vision_sdk/binaries/apps/tda2ex_evm_linux_all/vision_sdk/bin/tda2ex-evm/vision_sdk_ipu2_release.xem4 created.
#
'/home/sj/dvr_toolchain/SDK/vision_sdk/binaries/apps/tda2ex_evm_linux_all/obj/vision_sdk/tda2ex-evm/ipu2/release/vision_sdk_configuro/osa_mem_map.h' -> '/home/sj/dvr_toolchain/SDK/vision_sdk/links_fw/src/hlos/osa/include/osa_mem_map.h'
# system: tda2ex-evm: Compiling system_ipc.c
# system: tda2ex-evm: Compiling system_gbm_allocator.c
system_gbm_allocator.c: In function 'gbm_wrap_native_buffers':
system_gbm_allocator.c:178:9: error: implicit declaration of function 'gbm_surface_import' [-Werror=implicit-function-declaration]
surf = gbm_surface_import(dev,
^
system_gbm_allocator.c:178:7: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
surf = gbm_surface_import(dev,
^
# osa: tda2ex-evm: Compiling osa_mem.c
# osa: tda2ex-evm: Compiling osa_remote_log_client.c
# osa: tda2ex-evm: Compiling osa_remote_log_server.c
cc1: all warnings being treated as errors
/home/sj/dvr_toolchain/SDK/vision_sdk/build/hlos/makerules/linux/common_footer_a15.mk:58: recipe for target 'system_gbm_allocator.o' failed
make[6]: *** [system_gbm_allocator.o] Error 1
make[6]: *** Waiting for unfinished jobs....
Makefile:16: recipe for target 'system' failed
make[5]: *** [system] Error 2
make[5]: *** Waiting for unfinished jobs....
# osa: tda2ex-evm: Creating archive osa.a
MAKEFILE.MK:16: recipe for target 'vision_sdk_linux_lib' failed
make[4]: *** [vision_sdk_linux_lib] Error 2
Makefile:229: recipe for target 'links_fw_libs_hlos' failed
make[3]: *** [links_fw_libs_hlos] Error 2
Makefile:64: recipe for target 'apps_hlos' failed
make[2]: *** [apps_hlos] Error 2
Makefile:36: recipe for target 'apps' failed
make[1]: *** [apps] Error 2
Makefile:12: recipe for target 'vision_sdk' failed
Similar issue is mentioned in - https://e2e.ti.com/support/arm/automotive_processors/f/1021/t/706851?tisearch=e2e-sitesearch&keymatch=gbm_surface_import
However, the solution mentioned here is not present in SDK user guide for VISION SDK 3.04
Request your help for same.
# Linking into /home/sj/dvr_toolchain/SDK/vision_sdk/binaries/apps/tda2ex_evm_linux_all/vision_sdk/bin/tda2ex-evm/vision_sdk_ipu2_release.xem4... # # # /home/sj/dvr_toolchain/SDK/vision_sdk/binaries/apps/tda2ex_evm_linux_all/vision_sdk/bin/tda2ex-evm/vision_sdk_ipu2_release.xem4 created. # '/home/sj/dvr_toolchain/SDK/vision_sdk/binaries/apps/tda2ex_evm_linux_all/obj/vision_sdk/tda2ex-evm/ipu2/release/vision_sdk_configuro/osa_mem_map.h' -> '/home/sj/dvr_toolchain/SDK/vision_sdk/links_fw/src/hlos/osa/include/osa_mem_map.h' # system: tda2ex-evm: Compiling system_ipc.c # system: tda2ex-evm: Compiling system_gbm_allocator.c system_gbm_allocator.c: In function 'gbm_wrap_native_buffers': system_gbm_allocator.c:178:9: error: implicit declaration of function 'gbm_surface_import' [-Werror=implicit-function-declaration] surf = gbm_surface_import(dev, ^ system_gbm_allocator.c:178:7: error: assignment makes pointer from integer without a cast [-Werror=int-conversion] surf = gbm_surface_import(dev, ^ # osa: tda2ex-evm: Compiling osa_mem.c # osa: tda2ex-evm: Compiling osa_remote_log_client.c # osa: tda2ex-evm: Compiling osa_remote_log_server.c cc1: all warnings being treated as errors /home/sj/dvr_toolchain/SDK/vision_sdk/build/hlos/makerules/linux/common_footer_a15.mk:58: recipe for target 'system_gbm_allocator.o' failed make[6]: *** [system_gbm_allocator.o] Error 1 make[6]: *** Waiting for unfinished jobs.... Makefile:16: recipe for target 'system' failed make[5]: *** [system] Error 2 make[5]: *** Waiting for unfinished jobs.... # osa: tda2ex-evm: Creating archive osa.a MAKEFILE.MK:16: recipe for target 'vision_sdk_linux_lib' failed make[4]: *** [vision_sdk_linux_lib] Error 2 Makefile:229: recipe for target 'links_fw_libs_hlos' failed make[3]: *** [links_fw_libs_hlos] Error 2 Makefile:64: recipe for target 'apps_hlos' failed make[2]: *** [apps_hlos] Error 2 Makefile:36: recipe for target 'apps' failed make[1]: *** [apps] Error 2 Makefile:12: recipe for target 'vision_sdk' failed make: *** [vision_sdk] Error 2