<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Code coverage compiler option (--coverage) throws errors for ICX compiler version2022.0.2 in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Code-coverage-compiler-option-coverage-throws-errors-for-ICX/m-p/1655956#M4274</link>
    <description>&lt;P&gt;I wanted to use the code coverage for my CPP code, for this I am using the compiler option (--coverage), I am facing linking issues as mentioned below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/intel/oneapi/compiler/2022.0.2/linux/lib/clang/14.0.0/lib/linux/libclang_rt.profile-x86_64.a(GCDAProfiling.c.o): in function `llvm_gcda_start_file':&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x73): relocation truncated to fit: R_X86_64_PC32 against `.bss.filename'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0xa0): relocation truncated to fit: R_X86_64_PC32 against `.bss.filename'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0xca): relocation truncated to fit: R_X86_64_PC32 against `.bss.filename'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0xd6): relocation truncated to fit: R_X86_64_PC32 against `.bss.filename'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0xf9): relocation truncated to fit: R_X86_64_PC32 against `.bss.filename'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x133): relocation truncated to fit: R_X86_64_PC32 against `.bss.output_file'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x139): relocation truncated to fit: R_X86_64_PC32 against `.bss.new_file'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x141): relocation truncated to fit: R_X86_64_PC32 against `.bss.write_buffer'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x14c): relocation truncated to fit: R_X86_64_PC32 against `.bss.cur_buffer_size'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x157): relocation truncated to fit: R_X86_64_PC32 against `.bss.cur_pos'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x171): additional relocation overflows omitted from the output&lt;BR /&gt;clang: error: linker command failed with exit code 1 (use -v to see invocation)&lt;BR /&gt;make: *** [Makefile:379: a.out] Error 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used compiler options CFLAGS "-static-intel -mcmodel=large" as well but not able to solve this.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In the compiler documentation I see there are, these options but didn't find any docs to explain how to use them.&lt;/P&gt;&lt;P&gt;-fcoverage-compilation-dir=&amp;lt;value&amp;gt;&lt;BR /&gt;The compilation directory to embed in the coverage mapping.&lt;BR /&gt;-fcoverage-mapping Generate coverage mapping to enable code coverage analysis&lt;BR /&gt;-fcoverage-prefix-map=&amp;lt;value&amp;gt;&lt;BR /&gt;remap file source paths in coverage mapping&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has idea on how to use the above options or to the solve the above linking error, Please suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using ubunutu 24.04LTS linux machine and not using VS, I am using cscope and Vim for code navigation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2025 12:53:20 GMT</pubDate>
    <dc:creator>ShivaPrasad</dc:creator>
    <dc:date>2025-01-10T12:53:20Z</dc:date>
    <item>
      <title>Code coverage compiler option (--coverage) throws errors for ICX compiler version2022.0.2</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Code-coverage-compiler-option-coverage-throws-errors-for-ICX/m-p/1655956#M4274</link>
      <description>&lt;P&gt;I wanted to use the code coverage for my CPP code, for this I am using the compiler option (--coverage), I am facing linking issues as mentioned below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/intel/oneapi/compiler/2022.0.2/linux/lib/clang/14.0.0/lib/linux/libclang_rt.profile-x86_64.a(GCDAProfiling.c.o): in function `llvm_gcda_start_file':&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x73): relocation truncated to fit: R_X86_64_PC32 against `.bss.filename'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0xa0): relocation truncated to fit: R_X86_64_PC32 against `.bss.filename'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0xca): relocation truncated to fit: R_X86_64_PC32 against `.bss.filename'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0xd6): relocation truncated to fit: R_X86_64_PC32 against `.bss.filename'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0xf9): relocation truncated to fit: R_X86_64_PC32 against `.bss.filename'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x133): relocation truncated to fit: R_X86_64_PC32 against `.bss.output_file'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x139): relocation truncated to fit: R_X86_64_PC32 against `.bss.new_file'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x141): relocation truncated to fit: R_X86_64_PC32 against `.bss.write_buffer'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x14c): relocation truncated to fit: R_X86_64_PC32 against `.bss.cur_buffer_size'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x157): relocation truncated to fit: R_X86_64_PC32 against `.bss.cur_pos'&lt;BR /&gt;GCDAProfiling.c:(.text.llvm_gcda_start_file+0x171): additional relocation overflows omitted from the output&lt;BR /&gt;clang: error: linker command failed with exit code 1 (use -v to see invocation)&lt;BR /&gt;make: *** [Makefile:379: a.out] Error 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used compiler options CFLAGS "-static-intel -mcmodel=large" as well but not able to solve this.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In the compiler documentation I see there are, these options but didn't find any docs to explain how to use them.&lt;/P&gt;&lt;P&gt;-fcoverage-compilation-dir=&amp;lt;value&amp;gt;&lt;BR /&gt;The compilation directory to embed in the coverage mapping.&lt;BR /&gt;-fcoverage-mapping Generate coverage mapping to enable code coverage analysis&lt;BR /&gt;-fcoverage-prefix-map=&amp;lt;value&amp;gt;&lt;BR /&gt;remap file source paths in coverage mapping&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has idea on how to use the above options or to the solve the above linking error, Please suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using ubunutu 24.04LTS linux machine and not using VS, I am using cscope and Vim for code navigation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 12:53:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Code-coverage-compiler-option-coverage-throws-errors-for-ICX/m-p/1655956#M4274</guid>
      <dc:creator>ShivaPrasad</dc:creator>
      <dc:date>2025-01-10T12:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Code coverage compiler option (--coverage) throws errors for ICX compiler version2022.0.2</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Code-coverage-compiler-option-coverage-throws-errors-for-ICX/m-p/1657047#M4279</link>
      <description>&lt;P&gt;Can you provide a reproducer?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 01:11:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Code-coverage-compiler-option-coverage-throws-errors-for-ICX/m-p/1657047#M4279</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2025-01-15T01:11:27Z</dc:date>
    </item>
  </channel>
</rss>

