- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using CMake to link to libVT.so for tracing, the MPI implementation used does not need to be intel-mpi therefore I am linking the required libraries with CMake.
I have the following file the define the VT target:
pc.c:(.text+0x2ea): undefined reference to `_VT_em64t_init_init_signal_region'
/usr/bin/ld: pc.c:(.text+0x36a): undefined reference to `_VT_em64t_get_reg'
/usr/bin/ld: pc.c:(.text+0x701): undefined reference to `_VT_em64t_init_local'
/usr/bin/ld: pc.c:(.text+0x719): undefined reference to `_VT_em64t_get_reg'
/usr/bin/ld: pc.c:(.text+0x755): undefined reference to `_VT_em64t_init_init_stack_region'
/usr/bin/ld: /home/primrose/installed/spack/opt/spack/linux-ubuntu22.04-zen3/oneapi-2022.1.0/intel-oneapi-itac-2021.6.0-p2qb5a64gf7tj3qqvawkc7vi2vfeubsw/itac/2021.6.0/lib/libVT.a(pc.pic.o): in function `VT_Pc_unwind':
pc.c:(.text+0x7f4): undefined reference to `_VT_em64t_step'
/usr/bin/ld: pc.c:(.text+0x80c): undefined reference to `_VT_em64t_get_reg'
/usr/bin/ld: pc.c:(.text+0x957): undefined reference to `_VT_em64t_init_init_stack_region'
/usr/bin/ld: /home/primrose/installed/spack/opt/spack/linux-ubuntu22.04-zen3/oneapi-2022.1.0/intel-oneapi-itac-2021.6.0-p2qb5a64gf7tj3qqvawkc7vi2vfeubsw/itac/2021.6.0/lib/libVT.a(pc.pic.o): in function `VT_Pc_UpdateStackRange':
pc.c:(.text+0x10b3): undefined reference to `_VT_em64t_init_init_stack_region'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/convert/CMakeFiles/convert_3d_debug.dir/build.make:302: convert_3d_debug] Error 1
make[1]: *** [CMakeFiles/Makefile2:1116: src/convert/CMakeFiles/convert_3d_debug.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX static library ../../libexahype2_3d_debug.a
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities.
If you use a different MPI implementation or an old version of the supported one, you need to check its compatibility with Intel® Trace Collector. Compile and run the check_compatibility.c program located at /opt/intel/oneapi/itac/2021.6.0/examples/ directory. for more information refer to the below link:
If ITAC is compatible with your MPI implementation, could you please try adding below steps in the Cmake file for including the header file path and linking with the libVT.so file.
source /opt/intel/oneapi/setvars.sh
include_directories(${VT_ROOT}/include)
link_directories(${VT_ROOT}/lib)
Thanks & Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We haven't heard back from you. Could you please provide any updates on your issue?
Thanks & Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.
Thanks & Regards,
Hemanth
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page