File size: 11,289 Bytes
5aefcf4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Ticket Name: Linux/TDA2EXEVM: Missing pre-built libraries for TIOVX build (HOST Emulation Mode)

Query Text:
Part Number: TDA2EXEVM Tool/software: Linux My problem is "Where can we get the pre-built libraries for TIOVX build instructions for x86 Linux Platform (HOST Emulation Mode)" ? Hi, I download the installer package of PROCESSOR_SDK_VISION 03_06_00_00 for Linux from this web site: software-dl.ti.com/.../index_FDS.html Follow the user guides "Vision SDK Linux User Guide" and "TIOVX User Guide" to setup the environment on Ubuntu. When I follow the step "Build instructions for x86 Linux Platform (HOST Emulation Mode)" in "TIOVX User Guide", I cannot build the executable conformance test and tutorial files. The linking error messages are : Required system library libvxlib_bamplugin_X86.a Required system library libvxlib_X86.a Required system library libc6xsim_X86_C66.a Required system library libalgframework_X86.a Required system library libdmautils_X86.a In the document "TIOVX User Guide", it says that " This uses pre-built library for VXLIB, DMAUtils, Algframework from "$TIOVX_PATH\lib\PC\X86\LINUX\$PROFILE\*.a" " Actually I only find the pre-built libraries .libc6xsim_x86_64_C66.a .libvxlib_x86_64.a Still missing some pre-built libraries .libvxlib_bamplugin_X86.a .libvxlib_X86.a .libc6xsim_X86_C66.a .libalgframework_X86.a .libdmautils_X86.a .libvxlib_bamplugin_x86_64.a .libalgframework_x86_64.a .libdmautils_x86_64.a Please help me to get/build these libraries, thank you !

Responses:
Yes, this was a final packaging error in this release. I am working with team to provide patch to release site, I will keep you posted.

I have confirmed that the PC libraries in TIOVX that are missing in 3.06 have not changed since 3.05, so in order to get you going quickly, I recommend you download the 3.05 version of the package, and copy the missing libs over to the same location in 3.06. The 32-bit X86 build is needed for BAM to work properly in PC emulation, so this is the version of the libs that are available. Please let me know if this works for you. PROCESSOR_SDK_VISION_03_05_00_00 5 libraries to copy: libvxlib_bamplugin_X86.a libvxlib_X86.a libc6xsim_X86_C66.a libalgframework_X86.a libdmautils_X86.a Regards, Jesse

Hi Jesse, I follow your recommendation and it does not work. I download the PROCESSOR_SDK_VISION_03_05_00_00 and copy the libraries to the tiovx folder in PROCESSOR_SDK_VISION_03_06_00_00. It shows the error messages when building. Linking /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/out/PC/X86/LINUX/debug/vx_conformance_tests_exe /usr/bin/ld: /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/lib/PC/X86/LINUX/debug/libalgframework_X86.a(bam_execute.o): unrecognized relocation (0x2b) in section `.text' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status make: [/home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/out/PC/X86/LINUX/debug/vx_conformance_tests_exe] Error 1 (ignored) Linking /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/out/PC/X86/LINUX/debug/vx_tutorial_exe /usr/bin/ld: /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/lib/PC/X86/LINUX/debug/libalgframework_X86.a(bam_execute.o): unrecognized relocation (0x2b) in section `.text' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status make: [/home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/out/PC/X86/LINUX/debug/vx_tutorial_exe] Error 1 (ignored) Linking /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/out/PC/X86/LINUX/release/vx_conformance_tests_exe /usr/bin/ld: /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/out/PC/X86/LINUX/release/libalgframework_X86.a(bam_execute.o): unrecognized relocation (0x2b) in section `.text' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status make: [/home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/out/PC/X86/LINUX/release/vx_conformance_tests_exe] Error 1 (ignored) Linking /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/out/PC/X86/LINUX/release/vx_tutorial_exe /usr/bin/ld: /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/out/PC/X86/LINUX/release/libalgframework_X86.a(bam_execute.o): unrecognized relocation (0x2b) in section `.text' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status make: [/home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/out/PC/X86/LINUX/release/vx_tutorial_exe] Error 1 (ignored) The version of tiovx in PROCESSOR_SDK_VISION_03_05_00_00 is 01_00_01_00, and the version of tiovx in PROCESSOR_SDK_VISION_03_06_00_00 is 01_03_01_00. Regards, Kenny

This is working on my side. Does the build work for you in the PROCESSOR_SDK_VISION_03_05_00_00 / 01_00_01_00 version that you downloaded? If not, then I am wondering if there is a difference in the linux environment you are using (gcc version or something) compared to the libraries we built? 1. Can you please check if you see the same problem when building for TIOVX 01_00_01_00 version? 2. Can you send the Ubuntu linux version you are using? Also, what is returned when you run : gcc --version Thanks, Jesse

Hi Jesse, I download the TIOVX source code from https://git.ti.com/processor-sdk/tiovx/trees/master (verison 01_00_00_00) , copy the libraries to the same location in PROCESSOR_SDK_VISION_03_06. The build process completed without error message and generated 2 file vx_conformance_tests_exe and vx_tutorial_exe. It will cause a segmentation fault when running vx_conformance_tests_exe or vx_tutorial_exe. There are the gdb back trace information: $ gdb vx_conformance_tests_exe (gdb) run (gdb) backtrace #0 0xf7eb4ecd in ?? () from /lib/i386-linux-gnu/libc.so.6 #1 0x0830312e in BAM_DMA_AUTOINCREMENT_setMemRecFunc (memRecInternal=0xf7d81f94, memRecInputDataBlock=0xf7d81fdc, memRecOutputDataBlock=0xf7d81fb4, numRecInternal=0 '\000', numRecInputDataBlock=0 '\000', numRecOutputDataBlock=1 '\001', edmaContext=0xf7400bf0, edmaArgs=0xf7d821bc) at /adasuser/kedarc/ti_components/algorithms/dsp_apps/algframework/src/bam_dma_nodes/bam_dma_autoincrement_node.c:304 #2 0x08300454 in BAM_finaliseGraph (graphDef=0xf74004d0, nodeList=0xf7d8218c, intMemParams=0xf7d83054) at /adasuser/kedarc/ti_components/algorithms/dsp_apps/algframework/src/bam/bam_construct_int.c:1834 #3 0x082ff91a in BAM_setMemRec (graphHandle=0xf74004d0, memTab=0xf7402be8, nodeList=0xf7d8218c, intMemParams=0xf7d83054) at /adasuser/kedarc/ti_components/algorithms/dsp_apps/algframework/src/bam/bam_construct_int.c:1474 #4 0x082fdae2 in BAM_updateNodes (graphHandle=0xf74004d0, createParams=0xf7d82ff0, callSetMemRec=1) at /adasuser/kedarc/ti_components/algorithms/dsp_apps/algframework/src/bam/bam_construct_int.c:525 #5 0x082fc438 in BAM_createGraph (createParams=0xf7d82ff0, pGraphHandle=0xf74004a0) at /adasuser/kedarc/ti_components/algorithms/dsp_apps/algframework/src/bam/bam_construct.c:208 #6 0x0829a869 in tivxBamCreateHandleSingleNode (kernel_id=BAM_KERNELID_VXLIB_BOX_3X3_I8U_O8U, buf_params=0xf7d83168, kernel_details=0xf7d830dc, graph_handle=0xf7400468) at /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/kernels/common/target/tivx_bam_kernel_wrapper.c:1124 #7 0x0828c52f in tivxKernelBoxCreate (kernel=0x8534340 <g_target_kernel_instance_table>, obj_desc=0xf7d83240, num_params=2, priv_arg=0x0) at /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/kernels/openvx-core/c66x/bam/vx_bam_box3x3_target.c:203 #8 0x0826ec0d in tivxTargetKernelCreate (target_kernel_instance=0x8534340 <g_target_kernel_instance_table>, obj_desc=0xf7d83240, num_params=2) at /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/source/framework/vx_target_kernel.c:288 #9 0x0826dacf in tivxTargetNodeDescNodeCreate (node_obj_desc=0x85ecaa0 <gTivxObjDescShmEntry+1536>) at /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/source/framework/vx_target.c:590 #10 0x0826e04f in tivxTargetCmdDescHandler (cmd_obj_desc=0x85ec4a0 <gTivxObjDescShmEntry>) at /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/source/framework/vx_target.c:788 #11 0x0826e282 in tivxTargetTaskMain (app_var=0x852a4a0 <g_target_table>) at /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/source/framework/vx_target.c:895 #12 0x0827426c in tivxTaskMain (arg=0x852a4a4 <g_target_table+4>) at /home/kenny/TI_DEV/ti_components/open_compute/tiovx_01_03_01_00/source/platform/pc/linux/../../os/linux/tivx_task.c:106 #13 0xf7f3df72 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #14 0xf7e7443e in clone () from /lib/i386-linux-gnu/libc.so.6 Regards, Kenny

Hi Jesse, No, I just copy the libraries from PROCESSOR_SDK_VISION_03_05_00_00 to PROCESSOR_SDK_VISION_03_06_00_00 without doing any build process in PROCESSOR_SDK_VISION_03_05_00_00. I will verify the process in PROCESSOR_SDK_VISION_03_05_00_00. My ubuntu linux version is 14.04 and the result of gcc --version is gcc (Ubuntu 5.5.0-12ubuntu1~14.04) 5.5.0 20171010 Copyright (C) 2015 Free Software Foundation, Inc. Regards, Kenny

Hi Jesse, After finished the software requirement, installation and setup for PROCESSOR_SDK_VISION_03_05_00_00, I checked the build processes in the PROCESSOR_SDK_VISION_03_05_00_00 and tiovx_01_00_01_00. It shows the same error messages when building tiovx. Linking /home/kenny/PROCESSOR_SDK_VISION_03_05_00_00/ti_components/open_compute/tiovx_01_00_01_00/bin/PC/X86/LINUX/debug/vx_conformance_tests_exe /usr/bin/ld: /home/kenny/PROCESSOR_SDK_VISION_03_05_00_00/ti_components/open_compute/tiovx_01_00_01_00/lib/PC/X86/LINUX/debug/libalgframework_X86.a(bam_execute.o): unrecognized relocation (0x2b) in section `.text' /usr/bin/ld: final link failed: Bad value Regards, Kenny

Kenny, I tried same procedure on Ubuntu 14.04 virtual machine just now, and I am able to reproduce this issue. It seems the libs were created using Ubuntu 16.04, and we have been testing using 16.04 and 18.04, and it works for these more recent builds without issue. Since 14.04 LTS support is expired, we don't support this distribution version and I suggest moving to a more recent distribution soon. In the mean time, I have recompiled the 2 libraries which were giving issues compiling on 14.04 on my virtual machine, and attached them here. Please try these and confirm if the problem goes away. lib.tar.gz Regards, Jesse

Hi Jesse, Thanks for your help ! The building issue was be solved after using these attached libraries. Follow the Vision SDK Linux User Guide, I used the Ubuntu 14.04LTS. Which version of Ubuntu do you recommend as a development environment? Regards, Kenny

Hi Kenny, as mentioned in the UserGuide it was tested with Ubuntu 14.04, you should not have problems with this version (if you use virtual machine just make sure it is 64-bit version). Regards, Yordan

Hi Kenny, You are correct, the user guide says 14.04. However, as we move forward with future releases, we plan to migrate to 18.04 since the 5 year support from Ubuntu 14.04 is expiring and most users will no longer be using 14.04 because of that. Even now, most of our developers are using 18.04. You may want to migrate when it is convenient for you. Jesse