Spaces:
Runtime error
Runtime error
Ticket Name: Linux/TDA2: tda2xx_evm_linux_infoadas Compile Error | |
Query Text: | |
Part Number: TDA2 Other Parts Discussed in Thread: SYSBIOS Tool/software: Linux Hi, I have met as below compile error when compile the vision sdk app and linux after chainging tda2xx_evm_linux_all to tda2xx_evm_linux_infoadas. Vision SDK Version : PROCESSOR_SDK_VISION_03_04_00_00 Linux Compile Error checking fcntl.h presence... yes checking for fcntl.h... yes checking for string.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking for unistd.h... (cached) yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/cmem/api/Makefile config.status: creating src/cmem/tests/Makefile config.status: executing depfiles commands ----------------------------------------------------------- Thank you for installing the LinuxUtils package Installation directory prefix: '/usr'. Compilation command: 'arm-linux-gnueabihf-gcc -g -O2 ' Now type 'make; sudo make install' to generate the program and install it to your system. ------------------------------------------------------------ cd /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk ;\ # build cmem related .so files make -C /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/api make[2]: Entering directory '/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/api' if /bin/sh ../../../libtool --tag=CC --mode=compile arm-linux-gnueabihf-gcc -DPACKAGE_NAME=\"LinuxUtils\" -DPACKAGE_TARNAME=\"linuxutils\" -DPACKAGE_VERSION=\"4.0.0\" -DPACKAGE_STRING=\"LinuxUtils\ 4.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"linuxutils\" -DVERSION=\"4.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_UNISTD_H=1 -I. -I. -D_FILE_OFFSET_BITS=64 -I../../../include -Wall -g -O2 -MT cmem.lo -MD -MP -MF ".deps/cmem.Tpo" -c -o cmem.lo cmem.c; \ then mv -f ".deps/cmem.Tpo" ".deps/cmem.Plo"; else rm -f ".deps/cmem.Tpo"; exit 1; fi mkdir .libs arm-linux-gnueabihf-gcc -DPACKAGE_NAME=\"LinuxUtils\" -DPACKAGE_TARNAME=\"linuxutils\" -DPACKAGE_VERSION=\"4.0.0\" "-DPACKAGE_STRING=\"LinuxUtils 4.0.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"linuxutils\" -DVERSION=\"4.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_UNISTD_H=1 -I. -I. -D_FILE_OFFSET_BITS=64 -I../../../include -Wall -g -O2 -MT cmem.lo -MD -MP -MF .deps/cmem.Tpo -c cmem.c -fPIC -DPIC -o .libs/cmem.o arm-linux-gnueabihf-gcc -DPACKAGE_NAME=\"LinuxUtils\" -DPACKAGE_TARNAME=\"linuxutils\" -DPACKAGE_VERSION=\"4.0.0\" "-DPACKAGE_STRING=\"LinuxUtils 4.0.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"linuxutils\" -DVERSION=\"4.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_UNISTD_H=1 -I. -I. -D_FILE_OFFSET_BITS=64 -I../../../include -Wall -g -O2 -MT cmem.lo -MD -MP -MF .deps/cmem.Tpo -c cmem.c -o cmem.o >/dev/null 2>&1 /bin/sh ../../../libtool --tag=CC --mode=link arm-linux-gnueabihf-gcc -D_FILE_OFFSET_BITS=64 -I../../../include -Wall -g -O2 -o libticmem.la -rpath /usr/lib -version-info 1:0:0 cmem.lo arm-linux-gnueabihf-gcc -shared .libs/cmem.o -Wl,-soname -Wl,libticmem.so.1 -o .libs/libticmem.so.1.0.0 (cd .libs && rm -f libticmem.so.1 && ln -s libticmem.so.1.0.0 libticmem.so.1) (cd .libs && rm -f libticmem.so && ln -s libticmem.so.1.0.0 libticmem.so) arm-linux-gnueabihf-ar cru .libs/libticmem.a cmem.o arm-linux-gnueabihf-ranlib .libs/libticmem.a creating libticmem.la (cd .libs && rm -f libticmem.la && ln -s ../libticmem.la libticmem.la) make[2]: Leaving directory '/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/api' make -C /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/module KERNEL_INSTALL_DIR=/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/omap ARCH=arm TOOLCHAIN_PREFIX=arm-linux-gnueabihf- release make[2]: Entering directory '/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/module' Making module release... make -C /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/../ti_components/os_tools/linux/kernel/omap M=`pwd` ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- \ EXTRA_CFLAGS="-I/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/include" modules make[3]: Entering directory '/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/omap' CC [M] /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/module/cmemk.o /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/module/cmemk.c: In function 'ioctl': /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/module/cmemk.c:1437:8: error: implicit declaration of function 'dmac_map_area' [-Werror=implicit-function-declaration] dmac_map_area(virtp, size, DMA_FROM_DEVICE); ^ cc1: some warnings being treated as errors scripts/Makefile.build:264: recipe for target '/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/module/cmemk.o' failed make[4]: *** [/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/module/cmemk.o] Error 1 Makefile:1405: recipe for target '_module_/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/module' failed make[3]: *** [_module_/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/module] Error 2 make[3]: Leaving directory '/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/omap' Makefile:31: recipe for target 'release' failed make[2]: *** [release] Error 2 make[2]: Leaving directory '/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/linux/kernel/cmem/ludev/src/cmem/module' build_kernel.mk:18: recipe for target 'kernel' failed make[1]: *** [kernel] Error 2 make[1]: Leaving directory '/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/build/hlos/makerules/linux' Makefile:435: recipe for target 'kernel' failed make: *** [kernel] Error 2 Vision SDK Apps Converting binary file [/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/vision_sdk/bin/tda2xx-evm/AppImage] to C array .. Done. (387640 bytes) # Invoking configuro... making package.mak (because of package.bld) ... # !!! Current build platform is [tda2xx-evm] !!! # !!! Core is [ipu2] !!! # !!! Core is [ipu2] !!! # !!! Core is [ipu2] !!! generating interfaces for package vision_sdk_configuro (because package/package.xdc.inc is older than package.xdc) ... configuring MAIN_APP_ipu2.xem4 from package/cfg/MAIN_APP_ipu2_pem4.cfg ... Loading Ipu2.cfg for tda2xx-evm # !!! Current build platform is [tda2xx-evm] !!! # !!! Including CPU #0 [ HOST ] in build !!! # !!! Including CPU #1 [ IPU2 ] in build !!! # !!! Including CPU #2 [ DSP1 ] in build !!! # !!! Including CPU #3 [ DSP2 ] in build !!! # !!! Including CPU #4 [ EVE1 ] in build !!! # !!! Host Proc ID is [1] !!! configuring IPUMM... loading: ivahd_mpeg4dec loading: ivahd_h264dec loading: ivahd_jpegvdec loading: ivahd_vc1vdec loading: ivahd_mpeg2vdec loading: ivahd_h264enc loading: ivahd_mpeg4enc ### Generating System memory map header file ... ### Generating System memory map header file ... DONE !!! generating custom ti.sysbios library makefile ... generating custom ti.sdo.utils library makefile ... generating custom ti.sdo.ipc library makefile ... Auto-registering resource manager for HDVICP2 manageIpc = true Heap: ti.sysbios.heaps.HeapMem will link with ti.sdo.codecs.mpeg4enc:lib/mpeg4venc_ti_host.lib will link with ti.sdo.codecs.h264enc:lib/h264enc_ti_host.lib will link with ti.sdo.codecs.mpeg2vdec:lib/mpeg2vdec_ti_host.lib;lib/ivahd_ti_api_vM3.lib will link with ti.sdo.codecs.vc1vdec:lib/vc1vdec_ti_host_M3.lib will link with ti.sdo.codecs.h264vdec:lib/h264vdec_ti.lib will link with ti.sdo.codecs.mpeg4vdec:lib/mpeg4vdec_ti_host.lib Starting build of library sources ... making /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/obj/vision_sdk/tda2xx-evm/ipu2/release/vision_sdk_configuro/package/cfg/MAIN_APP_ipu2_pem4.src/ipc.aem4 ... gmake[1]: Entering directory `/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/obj/vision_sdk/tda2xx-evm/ipu2/release/vision_sdk_configuro/package/cfg/MAIN_APP_ipu2_pem4.src/ipc' clem4 /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/ipc_3_45_00_00/packages/ti/sdo/utils/NameServer.c ... arem4 Ipc.obj ... gmake[1]: Leaving directory `/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/obj/vision_sdk/tda2xx-evm/ipu2/release/vision_sdk_configuro/package/cfg/MAIN_APP_ipu2_pem4.src/ipc' making /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/obj/vision_sdk/tda2xx-evm/ipu2/release/vision_sdk_configuro/package/cfg/MAIN_APP_ipu2_pem4.src/utils.aem4 ... gmake[1]: Entering directory `/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/obj/vision_sdk/tda2xx-evm/ipu2/release/vision_sdk_configuro/package/cfg/MAIN_APP_ipu2_pem4.src/utils' clem4 /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/ipc_3_45_00_00/packages/ti/sdo/utils/UTILS.c ... arem4 UTILS.obj ... gmake[1]: Leaving directory `/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/obj/vision_sdk/tda2xx-evm/ipu2/release/vision_sdk_configuro/package/cfg/MAIN_APP_ipu2_pem4.src/utils' making /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/obj/vision_sdk/tda2xx-evm/ipu2/release/vision_sdk_configuro/package/cfg/MAIN_APP_ipu2_pem4.src/sysbios/sysbios.aem4 ... gmake[1]: Entering directory `/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/obj/vision_sdk/tda2xx-evm/ipu2/release/vision_sdk_configuro/package/cfg/MAIN_APP_ipu2_pem4.src/sysbios' clem4 /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/bios_6_46_04_53/packages/ti/sysbios/BIOS.c ... "/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/bios_6_46_04_53/packages/ti/sysbios/family/arm/m3/Hwi_smp.c", line 717: warning: a value of type "xdc_Ptr" cannot be assigned to an entity of type "xdc_SizeT" asmem4 /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/bios_6_46_04_53/packages/ti/sysbios/timers/dmtimer/Timer_asm.sv7M ... asmem4 /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/bios_6_46_04_53/packages/ti/sysbios/family/arm/m3/Hwi_asm.sv7M ... asmem4 /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/bios_6_46_04_53/packages/ti/sysbios/family/arm/m3/Hwi_asm_switch.sv7M ... asmem4 /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/bios_6_46_04_53/packages/ti/sysbios/family/arm/m3/IntrinsicsSupport_asm.sv7M ... asmem4 /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/bios_6_46_04_53/packages/ti/sysbios/family/arm/m3/TaskSupport_asm.sv7M ... asmem4 /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/os_tools/bios_6_46_04_53/packages/ti/sysbios/family/arm/ducati/Core_smp_asm.sv7M ... arem4 BIOS.obj dmtimer_Timer_asm.obj m3_Hwi_asm.obj m3_Hwi_asm_switch.obj m3_IntrinsicsSupport_asm.obj m3_TaskSupport_asm.obj ducati_Core_smp_asm.obj ... gmake[1]: Leaving directory `/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/obj/vision_sdk/tda2xx-evm/ipu2/release/vision_sdk_configuro/package/cfg/MAIN_APP_ipu2_pem4.src/sysbios' Build of libraries done. # Configuro done! # Making tda2xx-evm:ipu2:release:vision_sdk_lib... # Compiling tda2xx-evm:ipu2:release:vision_sdk: src/main_common_ipu2.c # Compiling tda2xx-evm:ipu2:release:vision_sdk: src/eve_firmware.c # Compiling tda2xx-evm:ipu2:release:vision_sdk: src/ipu_primary.c # Compiling tda2xx-evm:ipu2:release:vision_sdk: /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/apps/src/common/main_app/tda2xx/ipu2/src/main_ipu2.c # Compiling tda2xx-evm:ipu2:release:vision_sdk: /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/apps/src/common/app_init/app_init_ipu_primary.c # Compiling generated MAIN_APP_ipu2_pem4.oem4 # Linking into /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/vision_sdk/bin/tda2xx-evm/vision_sdk_ipu2_release.xem4... # undefined first referenced symbol in file --------- ---------------- g_HDVICP_logTbl /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/ti_components/codecs/framework_components_3_40_02_07/packages/ti/sdo/fc/ires/hdvicp/lib/debug/hdvicp2.aem4<iresman_hdvicp2.oem4> error: unresolved symbols remain error: errors encountered during linking; "/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/td a2xx_evm_linux_infoadas/vision_sdk/bin/tda2xx-evm/vision_sdk_ipu2_release.xe m4" not built /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/build/rtos/makerules/rules_m4.mk:297: recipe for target '/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/vision_sdk/bin/tda2xx-evm/vision_sdk_ipu2_release.xem4' failed make[7]: *** [/home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_infoadas/vision_sdk/bin/tda2xx-evm/vision_sdk_ipu2_release.xem4] Error 1 /home/jpp/vsdk/PROCESSOR_SDK_VISION_03_04_00_00/vision_sdk/build/rtos/makerules/common.mk:271: recipe for target 'ipu2' failed make[6]: *** [ipu2] Error 2 MAKEFILE.MK:162: recipe for target 'apps_ipu2' failed make[5]: *** [apps_ipu2] Error 2 MAKEFILE.MK:31: recipe for target 'apps' failed make[4]: *** [apps] Error 2 MAKEFILE.MK:287: recipe for target 'apps' failed make[3]: *** [apps] Error 2 Makefile:171: recipe for target 'apps_exe' failed make[2]: *** [apps_exe] 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 Regards JP Park. | |
Responses: | |
Hi JP Park, did you run "make –s –j depend" before "make –s –j" when you modified Rules.make? Regards, Yordan | |
Hi Yordan, Yes i did Linux Compile : compile is ok when no modify and then run "make linux_clean" -> Modify Rules.make, run "make linux -> Occurred the compile error as above. Vision apps Compile : Default compile is ok. and then i run "make ?s ?j depend" before "make ?s ?j" when you modified Rules.make? The same errors have occurred when i have tried to compile the other version (3.00, 3.02 ) Regards, JP Park | |
Hi JP Park, did you followed "2.4.2.1.1 Clone kernel" in VisionSDK_Linux_UserGuide.pdf and cloned and checkout the right tag for cmem module? Regards, Yordan | |
Hi JP Park, I haven't heard back from you, I hope you were able to resolve your issue. If not, just post a reply below (or create a new thread if the thread has locked due to time-out). Regards, Yordan | |