- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
when I try get code coverage of dpc++ code I find a error like, i search and find a similar erorr https://community.intel.com/t5/Intel-C-Compiler/undefined-reference-to-intel-fast-memcpy-when-using-intrinsics/td-p/969564, but seems libirc form icc, and idea on how to resolve this problem?
$echo "int main(){return 0;}" >> foo.cc $clang++ -v -fprofile-arcs -ftest-coverage foo.cc -o foo
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/gta/20210607/build/linux_prod/compiler/linux/lib/clang/13.0.0/lib/linux/libclang_rt.profile-x86_64.a(GCDAProfiling.c.o): in function `llvm_gcda_start_file': GCDAProfiling.c:(.text.llvm_gcda_start_file+0x234): undefined reference to `_intel_fast_memset' /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/gta/20210607/build/linux_prod/compiler/linux/lib/clang/13.0.0/lib/linux/libclang_rt.profile-x86_64.a(InstrProfilingUtil.c.o): in function `lprofApplyPathPrefix': InstrProfilingUtil.c:(.text.lprofApplyPathPrefix+0x55): undefined reference to `_intel_fast_memcpy' /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: InstrProfilingUtil.c:(.text.lprofApplyPathPrefix+0x80): undefined reference to `_intel_fast_memcpy' clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
We are working on this issue internally, we will get back to you soon.
Thanks & Regards,
Vidya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please use the ICX driver instead of the clang++ driver.
For eg -
icx -fprofile-arcs -ftest-coverage codecov.cpp -o codecov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am also facing issue to get the codecoverage for FlexRAN codebase.
For ICC , i am using the below FLAGS but its not working(Compliation error) with ICX.
LD_FLAGS += -prof-gen:srcpos
CC_FLAGS := -prof-gen:srcpos

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page