<?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 Re: Re:Undefined symbols when building with debug information and -std=c++20 in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1299242#M8609</link>
    <description>&lt;P&gt;Seems to work now, thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 15:49:13 GMT</pubDate>
    <dc:creator>fatvlad1744</dc:creator>
    <dc:date>2021-07-16T15:49:13Z</dc:date>
    <item>
      <title>Undefined symbols when building with debug information and -std=c++20</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1275847#M8144</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I'm using Intel HPC toolkit installed on my Fedora OS through yum repository and getting unexpected undefined symbol error when compiling&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;against C++20 standard (-std=c++20)&lt;/LI&gt;
&lt;LI&gt;with debug information flag (either -g/-g2/-ggdb)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Here's the example program that uses &lt;FONT face="courier new,courier"&gt;std::allocator&amp;lt;char&amp;gt;&lt;/FONT&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;memory&amp;gt;

int main() {
    auto buf = std::allocator&amp;lt;char&amp;gt;{}.allocate(10);
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If compiled with &lt;FONT face="courier new,courier"&gt;icpc -std=c++20 main.cpp&lt;/FONT&gt; no errors are thrown and program starts successfully. However, when compiled with &lt;FONT face="courier new,courier"&gt;icpc -g2 -std=c++20 main.cpp&lt;/FONT&gt; the following link errors appear:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ icpc -g2 -std=c++20 main.cpp &amp;amp;&amp;amp; ./a.out
ld: /tmp/icpcRngryW.o: in function `main':
/home/main.cpp:10: undefined reference to `std::allocator&amp;lt;char&amp;gt;::allocate(unsigned long)'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Versions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ uname -a
Linux localhost.localdomain 5.8.15-301.fc33.x86_64 #1 SMP Thu Oct 15 16:58:06 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ icpc --version
icpc (ICC) 2021.2.0 20210228
Copyright (C) 1985-2021 Intel Corporation.  All rights reserved.
$ g++ --version
g++ (GCC) 10.2.1 20201125 (Red Hat 10.2.1-9)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ ld --version
GNU ld version 2.35-10.fc33
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Worth mentioning that I was compiling a large codebase that potentially uses a huge variety of symbols from standard library and only std::allocator&amp;lt;char&amp;gt; was missing.&lt;/P&gt;
&lt;P&gt;Also adding -march=native resolves the issue somehow, so it happens only with generic build.&lt;BR /&gt;EDIT: Looks like -march=native is not directly related to the resolution. -march=native enables optimizations and therefore strips unneeded symbols.&lt;/P&gt;
&lt;P&gt;Any clues? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 16:54:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1275847#M8144</guid>
      <dc:creator>fatvlad1744</dc:creator>
      <dc:date>2021-04-22T16:54:10Z</dc:date>
    </item>
    <item>
      <title>Re:Undefined symbols when building with debug information and -std=c++20</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1276156#M8151</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;Could you please try using with icx compiler.&lt;/P&gt;&lt;P&gt;Meanwhile, we will look into the issue internally.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Apr 2021 11:39:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1276156#M8151</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2021-04-23T11:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Undefined symbols when building with debug information and -std=c++20</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1276663#M8164</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Noorjahan,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;No such problem with icpx compiler, thanks for workaround!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 14:53:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1276663#M8164</guid>
      <dc:creator>fatvlad1744</dc:creator>
      <dc:date>2021-04-26T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Re:Undefined symbols when building with debug information and -std=c++20</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1288126#M8408</link>
      <description>&lt;P&gt;I think this issue occurs on a "not yet" supported OS.&lt;/P&gt;&lt;P&gt;I tried the same compiler on Fedora 31 and didn't see an "undefined reference" message.&lt;/P&gt;&lt;P&gt;Please check systems requirements at &lt;A href="https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-hpc-toolkit-system-requirements.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-hpc-toolkit-system-requirements.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you have a Fedora 31, can you see if the issue still persists?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;$ uname -a&lt;/P&gt;&lt;P&gt;Linux box 5.8.18-100.fc31.x86_64 #1 SMP Mon Nov 2 20:32:55 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux&lt;/P&gt;&lt;P&gt;$ icpc --version&lt;/P&gt;&lt;P&gt;icpc (ICC) 2021.2.0 20210228&lt;/P&gt;&lt;P&gt;Copyright (C) 1985-2021 Intel Corporation.&amp;nbsp;All rights reserved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;$ g++&amp;nbsp;--version&lt;/P&gt;&lt;P&gt;g++ (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1)&lt;/P&gt;&lt;P&gt;Copyright (C) 2019 Free Software Foundation, Inc.&lt;/P&gt;&lt;P&gt;This is free software; see the source for copying conditions.&amp;nbsp;There is NO&lt;/P&gt;&lt;P&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;/P&gt;&lt;P&gt;$ ld&amp;nbsp;--version&lt;/P&gt;&lt;P&gt;GNU ld version 2.32-33.fc31&lt;/P&gt;&lt;P&gt;Copyright (C) 2019 Free Software Foundation, Inc.&lt;/P&gt;&lt;P&gt;This program is free software; you may redistribute it under the terms of&lt;/P&gt;&lt;P&gt;the GNU General Public License version 3 or (at your option) a later version.&lt;/P&gt;&lt;P&gt;This program has absolutely no warranty.&lt;/P&gt;&lt;P&gt;$ rm a.out &amp;amp;&amp;amp; icpc -std=c++20 test.cpp&amp;nbsp;&amp;nbsp;&amp;amp;&amp;amp; ./a.out&lt;/P&gt;&lt;P&gt;$ rm a.out &amp;amp;&amp;amp; icpc -std=c++20 test.cpp&amp;nbsp;-g &amp;amp;&amp;amp; ./a.out&lt;/P&gt;&lt;P&gt;$ rm a.out &amp;amp;&amp;amp; icpc -std=c++20 test.cpp&amp;nbsp;-g2 &amp;amp;&amp;amp; ./a.out&lt;/P&gt;&lt;P&gt;$ rm a.out &amp;amp;&amp;amp; icpc -std=c++20 test.cpp&amp;nbsp;-ggdb &amp;amp;&amp;amp; ./a.out&lt;/P&gt;&lt;P&gt;$ rm a.out &amp;amp;&amp;amp; icpc -std=c++20 test.cpp&amp;nbsp;-g2 -O2 &amp;amp;&amp;amp; ./a.out&lt;/P&gt;&lt;P&gt;$ rm a.out &amp;amp;&amp;amp; icpc -std=c++20 test.cpp&amp;nbsp;-g -O2 &amp;amp;&amp;amp; ./a.out&lt;/P&gt;&lt;P&gt;$ rm a.out &amp;amp;&amp;amp; icpc -std=c++20 test.cpp&amp;nbsp;-ggdb -O2 &amp;amp;&amp;amp; ./a.out&lt;/P&gt;&lt;P&gt;$ cat test.cpp&lt;/P&gt;&lt;P&gt;#include &amp;lt;iostream&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;memory&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;int main() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;auto buf = std::allocator&amp;lt;char&amp;gt;{}.allocate(10);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;$&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jun 2021 15:29:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1288126#M8408</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2021-06-08T15:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined symbols when building with debug information and -std=c++20</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1289114#M8420</link>
      <description>&lt;P&gt;I think the reason here is not "unsupported OS" but "unsupported compiler version". You need to install GCC 10.2 in order to reproduce the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 14:37:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1289114#M8420</guid>
      <dc:creator>fatvlad1744</dc:creator>
      <dc:date>2021-06-11T14:37:15Z</dc:date>
    </item>
    <item>
      <title>Re:Undefined symbols when building with debug information and -std=c++20</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1292919#M8489</link>
      <description>&lt;P&gt;Let's wait for the next compiler release. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jun 2021 12:58:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1292919#M8489</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2021-06-24T12:58:23Z</dc:date>
    </item>
    <item>
      <title>Re:Undefined symbols when building with debug information and -std=c++20</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1298898#M8601</link>
      <description>&lt;P&gt;We have released oneAPI 2021.3. Please let us know if your issue still persists. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jul 2021 18:27:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1298898#M8601</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2021-07-15T18:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Undefined symbols when building with debug information and -std=c++20</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1299242#M8609</link>
      <description>&lt;P&gt;Seems to work now, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:49:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1299242#M8609</guid>
      <dc:creator>fatvlad1744</dc:creator>
      <dc:date>2021-07-16T15:49:13Z</dc:date>
    </item>
    <item>
      <title>Re:Undefined symbols when building with debug information and -std=c++20</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1299243#M8610</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif;"&gt;Thank for your confirmation. We are going to close this thread. If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:54:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Undefined-symbols-when-building-with-debug-information-and-std-c/m-p/1299243#M8610</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2021-07-16T15:54:30Z</dc:date>
    </item>
  </channel>
</rss>

