TI中文支持网
TI专业的中文技术问题搜集分享网站

build TIDL in host emulation mode get " undefined reference to `__itt_thread_set_name_ptr__3_0'"

Hi,

I encounter the error shown below.

Even try adding ittnotify lib in the compile process , it also return the same error.

I marked the main error. If the color I used is disturbing, please tell me.

———————————-environment setting———————————————–

OS:Ubuntu18.04

Opencv:4.1.0

flatterbuffer:1.12.0

protobuf:3.11.3

gcc/g++:5.5.0 / 7.5.0

environment variables:

export TIDL_INSTALL_PATH=/shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10
export PSDK_INSTALL_PATH=$TIDL_INSTALL_PATH/..
export IVISION_PATH=$TIDL_INSTALL_PATH/../ivision
export DSP_TOOLS=$TIDL_INSTALL_PATH/../ti-cgt-c7000_1.4.2.LTS
export PDK_INSTALL_PATH=$TIDL_INSTALL_PATH/../pdk_jacinto_08_00_00_37/packages
export MMALIB_PATH=$TIDL_INSTALL_PATH/../mmalib_02_01_00_07
export CONCERTO_ROOT=$TIDL_INSTALL_PATH/../vision_apps/concerto

export TIDL_OPENCV_PATH=/shared_folder/opencv
export CPATH=$CPATH:/usr/local/include/opencv4

————————————–make message————————————————-

TARGET_COMBO=PC:LINUX:x86_64:1:release:GCC_LINUX
HOST_ROOT=/shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test
HOST_COMPILER=GCC_LINUX
HOST_PLATFORM=PC
HOST_OS=LINUX
HOST_CPU=x86_64
HOST_ARCH=64
HOST_FAMILY=x86_64
HOST_NUM_CORES=8
TARGET_OS=LINUX
TARGET_CPU=x86_64
TARGET_ARCH=64
TARGET_FAMILY=x86_64
TARGET_NUM_CORES=1
TARGET_PLATFORM=PC
TARGET_BUILD=release
TARGET_OUT=/shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test/out/PC/x86_64/LINUX/release
TARGET_DOC=/shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test/out/PC/x86_64/LINUX/release/docs
BUILD_DEFS =PC_LINUX_x86_64_1_release_GCC_LINUX_DEFS = LINUX PC x86_64="x86_64" TARGET_NUM_CORES=1 TARGET_ARCH=64 ARCH_64 TARGET_BUILD=1
PC_LINUX_x86_64_1_release_GCC_LINUX_LDIRS =SCM_ROOT=
SCM_VERSION=
Required system library libtidl_custom.a
Required system library libtidl_algo.a
Required system library libtidl_obj_algo.a
Required system library libtidl_priv_algo.a
Required system library libmmalib_cn_x86_64.a
Required system library libmmalib_x86_64.a
Required system library libcommon_x86_64.a
Required system library libC7100-host-emulation.a
Required system library libopencv_imgproc.a
Required system library libopencv_imgcodecs.a
Required system library libopencv_core.a
Required system library liblibtiff.a
Required system library liblibwebp.a
Required system library liblibpng.a
Required system library liblibjpeg-turbo.a
Required system library libIlmImf.a
Required system library libzlib.a
Required system library liblibjasper.a
Required system library libdl.so
Linking /shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test/out/PC/x86_64/LINUX/release/PC_dsp_test_dl_algo.out
/shared_folder/opencv/cmake/lib/libopencv_core.a(system.cpp.o): In function `cv::TLSData<cv::(anonymous namespace)::ThreadID>::createDataInstance() const':
system.cpp:(.text._ZNK2cv7TLSDataINS_12_GLOBAL__N_18ThreadIDEE18createDataInstanceEv+0x37): undefined reference to `__itt_thread_set_name_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::Region::LocationExtraData::LocationExtraData(cv::utils::trace::details::Region::LocationStaticStorage const&)':
trace.cpp:(.text._ZN2cv5utils5trace7details6Region17LocationExtraDataC2ERKNS3_21LocationStaticStorageE+0x2f): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region17LocationExtraDataC2ERKNS3_21LocationStaticStorageE+0x43): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region17LocationExtraDataC2ERKNS3_21LocationStaticStorageE+0x81): undefined reference to `__itt_string_handle_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region17LocationExtraDataC2ERKNS3_21LocationStaticStorageE+0xb3): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::Region::Impl::~Impl()':
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4ImplD2Ev+0x1a): undefined reference to `__itt_id_destroy_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::Region::Impl::release()':
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl7releaseEv+0x1a): undefined reference to `__itt_id_destroy_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::Region::Impl::registerRegion(cv::utils::trace::details::TraceManagerThreadLocal&)':
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl14registerRegionERNS2_23TraceManagerThreadLocalE+0x1f): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl14registerRegionERNS2_23TraceManagerThreadLocalE+0x37): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl14registerRegionERNS2_23TraceManagerThreadLocalE+0xa9): undefined reference to `__itt_id_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl14registerRegionERNS2_23TraceManagerThreadLocalE+0xe3): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::TraceArg::ExtraData::ExtraData(cv::utils::trace::details::TraceManagerThreadLocal&, cv::utils::trace::details::TraceArg const&)':
trace.cpp:(.text._ZN2cv5utils5trace7details8TraceArg9ExtraDataC2ERNS2_23TraceManagerThreadLocalERKS3_[_ZN2cv5utils5trace7details8TraceArg9ExtraDataC5ERNS2_23TraceManagerThreadLocalERKS3_]+0x1f): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8TraceArg9ExtraDataC2ERNS2_23TraceManagerThreadLocalERKS3_[_ZN2cv5utils5trace7details8TraceArg9ExtraDataC5ERNS2_23TraceManagerThreadLocalERKS3_]+0x33): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8TraceArg9ExtraDataC2ERNS2_23TraceManagerThreadLocalERKS3_[_ZN2cv5utils5trace7details8TraceArg9ExtraDataC5ERNS2_23TraceManagerThreadLocalERKS3_]+0x71): undefined reference to `__itt_string_handle_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8TraceArg9ExtraDataC2ERNS2_23TraceManagerThreadLocalERKS3_[_ZN2cv5utils5trace7details8TraceArg9ExtraDataC5ERNS2_23TraceManagerThreadLocalERKS3_]+0x93): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::TraceManager::~TraceManager()':
trace.cpp:(.text._ZN2cv5utils5trace7details12TraceManagerD2Ev+0x3a): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details12TraceManagerD2Ev+0x52): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details12TraceManagerD2Ev+0xb63): undefined reference to `__itt_region_end_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details12TraceManagerD2Ev+0xe41): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::TraceManager::TraceManager()':
trace.cpp:(.text._ZN2cv5utils5trace7details12TraceManagerC2Ev+0x475): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details12TraceManagerC2Ev+0x48d): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details12TraceManagerC2Ev+0x4df): undefined reference to `__itt_region_begin_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details12TraceManagerC2Ev+0x4ee): undefined reference to `__itt_string_handle_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details12TraceManagerC2Ev+0x77b): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::Region::LocationExtraData::init(cv::utils::trace::details::Region::LocationStaticStorage const&)':
trace.cpp:(.text._ZN2cv5utils5trace7details6Region17LocationExtraData4initERKNS3_21LocationStaticStorageE+0xe3): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region17LocationExtraData4initERKNS3_21LocationStaticStorageE+0xfb): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region17LocationExtraData4initERKNS3_21LocationStaticStorageE+0x13d): undefined reference to `__itt_string_handle_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region17LocationExtraData4initERKNS3_21LocationStaticStorageE+0x1fb): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::Region::Impl::enterRegion(cv::utils::trace::details::TraceManagerThreadLocal&)':
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11enterRegionERNS2_23TraceManagerThreadLocalE+0xfe): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11enterRegionERNS2_23TraceManagerThreadLocalE+0x116): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11enterRegionERNS2_23TraceManagerThreadLocalE+0x1e3): undefined reference to `__itt_task_begin_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11enterRegionERNS2_23TraceManagerThreadLocalE+0x743): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::Region::Impl::Impl(cv::utils::trace::details::TraceManagerThreadLocal&, cv::utils::trace::details::Region*, cv::utils::trace::details::Region&, cv::utils::trace::details::Region::LocationStaticStorage const&, long)':
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4ImplC2ERNS2_23TraceManagerThreadLocalEPS3_RS3_RKNS3_21LocationStaticStorageEl+0x66): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4ImplC2ERNS2_23TraceManagerThreadLocalEPS3_RS3_RKNS3_21LocationStaticStorageEl+0x7e): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4ImplC2ERNS2_23TraceManagerThreadLocalEPS3_RS3_RKNS3_21LocationStaticStorageEl+0x106): undefined reference to `__itt_id_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4ImplC2ERNS2_23TraceManagerThreadLocalEPS3_RS3_RKNS3_21LocationStaticStorageEl+0x153): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::Region::Impl::leaveRegion(cv::utils::trace::details::TraceManagerThreadLocal&)':
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11leaveRegionERNS2_23TraceManagerThreadLocalE+0x78): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11leaveRegionERNS2_23TraceManagerThreadLocalE+0x90): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11leaveRegionERNS2_23TraceManagerThreadLocalE+0xe7): undefined reference to `__itt_metadata_add_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11leaveRegionERNS2_23TraceManagerThreadLocalE+0xf6): undefined reference to `__itt_string_handle_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11leaveRegionERNS2_23TraceManagerThreadLocalE+0x159): undefined reference to `__itt_metadata_add_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11leaveRegionERNS2_23TraceManagerThreadLocalE+0x168): undefined reference to `__itt_string_handle_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11leaveRegionERNS2_23TraceManagerThreadLocalE+0x2b3): undefined reference to `__itt_task_end_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6Region4Impl11leaveRegionERNS2_23TraceManagerThreadLocalE+0x833): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::Region::destroy()':
trace.cpp:(.text._ZN2cv5utils5trace7details6Region7destroyEv+0x32b): undefined reference to `__itt_id_destroy_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::parallelForAttachNestedRegion(cv::utils::trace::details::Region const&)':
trace.cpp:(.text._ZN2cv5utils5trace7details29parallelForAttachNestedRegionERKNS2_6RegionE+0x73): undefined reference to `__itt_relation_add_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::traceArg(cv::utils::trace::details::TraceArg const&, long)':
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEl+0x8c): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEl+0xa4): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEl+0xef): undefined reference to `__itt_metadata_add_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEl+0x253): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::traceArg(cv::utils::trace::details::TraceArg const&, int)':
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEi+0x8b): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEi+0xa3): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEi+0xee): undefined reference to `__itt_metadata_add_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEi+0x253): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::traceArg(cv::utils::trace::details::TraceArg const&, double)':
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEd+0x8d): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEd+0xa5): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEd+0xf0): undefined reference to `__itt_metadata_add_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEd+0x253): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::traceArg(cv::utils::trace::details::TraceArg const&, char const*)':
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEPKc+0x97): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEPKc+0xaf): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEPKc+0xfb): undefined reference to `__itt_metadata_str_add_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details8traceArgERKNS2_8TraceArgEPKc+0x263): undefined reference to `__itt_domain_create_ptr__3_0'
/shared_folder/opencv/cmake/lib/libopencv_core.a(trace.cpp.o): In function `cv::utils::trace::details::Region::Region(cv::utils::trace::details::Region::LocationStaticStorage const&)':
trace.cpp:(.text._ZN2cv5utils5trace7details6RegionC2ERKNS3_21LocationStaticStorageE+0x770): undefined reference to `__itt_api_version_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6RegionC2ERKNS3_21LocationStaticStorageE+0x788): undefined reference to `__itt_domain_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6RegionC2ERKNS3_21LocationStaticStorageE+0xe1d): undefined reference to `__itt_id_create_ptr__3_0'
trace.cpp:(.text._ZN2cv5utils5trace7details6RegionC2ERKNS3_21LocationStaticStorageE+0x1186): undefined reference to `__itt_domain_create_ptr__3_0'
collect2: error: ld returned 1 exit status
/shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../vision_apps/concerto/finale.mak:210: recipe for target '/shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test/out/PC/x86_64/LINUX/release/PC_dsp_test_dl_algo.out' failed
make[1]: [/shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test/out/PC/x86_64/LINUX/release/PC_dsp_test_dl_algo.out] Error 1 (ignored)
Copying built libraries: /shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test/out/PC/x86_64/LINUX/release to /shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test/lib/PC/x86_64/LINUX/release
Copying built libraries: /shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test/out/PC/x86_64/LINUX/release/PC_dsp_test_dl_algo.out to /shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test/src/pc_linux/../..
cp: cannot stat '/shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test/out/PC/x86_64/LINUX/release/PC_dsp_test_dl_algo.out': No such file or directory
makefile:62: recipe for target 'final_install' failed
make[1]: [final_install] Error 1 (ignored)
make[1]: Leaving directory '/shared_folder/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/test'

Kuan-Hung Liu:

The error just solved compile PC_dsp_test_dl_algo.out with libittnotify.a.

But I don't know the proper makefile to add libittnotify.a.

,

Kuan-Hung Liu:

modify the makefile $CONCERTO_ROOT/finale.mak .

Add line $(TIDL_OPENCV_PATH)/cmake/3rdparty/lib/libittnotify.a to target $($(_MODULE)_BIN) as below.

$($(_MODULE)_BIN): $($(_MODULE)_OBJS) $($(_MODULE)_STATIC_LIBS) $($(_MODULE)_SHARED_LIBS) $($(_MODULE)_DEPS) xdc_configuro_$(_MODULE) $(PRINT) Linking $$@ -$(Q)$(call $(_MODULE)_LINK_EXE) $(LOGGING) $(QNULL) $(TIDL_OPENCV_PATH)/cmake/3rdparty/lib/libittnotify.a

,

Green Deng:

感谢反馈!

赞(0)
未经允许不得转载:TI中文支持网 » build TIDL in host emulation mode get " undefined reference to `__itt_thread_set_name_ptr__3_0'"
分享到: 更多 (0)