<?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 sys/stat.h missing in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1290065#M1311</link>
    <description>&lt;P&gt;I'm building with dpcpp -std=c++17 and -fsycl, but I don't see stat.h anywhere in the oneapi.&amp;nbsp; I imagine frankenbuilding it from another glibc version will cause more problems than solve it.&amp;nbsp; I do however, see stat.h in one of the fpga's implementations...&amp;nbsp; why is it missing in the base API, then?&lt;/P&gt;
&lt;P&gt;What is the best method of dealing with missing components of oneAPI's glibc?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 17:13:06 GMT</pubDate>
    <dc:creator>InvisibleWonder</dc:creator>
    <dc:date>2021-06-15T17:13:06Z</dc:date>
    <item>
      <title>sys/stat.h missing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1290065#M1311</link>
      <description>&lt;P&gt;I'm building with dpcpp -std=c++17 and -fsycl, but I don't see stat.h anywhere in the oneapi.&amp;nbsp; I imagine frankenbuilding it from another glibc version will cause more problems than solve it.&amp;nbsp; I do however, see stat.h in one of the fpga's implementations...&amp;nbsp; why is it missing in the base API, then?&lt;/P&gt;
&lt;P&gt;What is the best method of dealing with missing components of oneAPI's glibc?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 17:13:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1290065#M1311</guid>
      <dc:creator>InvisibleWonder</dc:creator>
      <dc:date>2021-06-15T17:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: sys/stat.h missing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1290348#M1312</link>
      <description>&lt;P&gt;Hi Gabriel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;As you can see it here &lt;A href="https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-dpcpp-system-requirements.html" target="_blank" rel="noopener"&gt;https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-dpcpp-system-requirements.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GNU is a software requirement for oneAPI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;oneAPI takes glibc from GNU in linux to include C/C++ standard libraries in device code and having gcc is a mandate for using oneAPI for the same reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;In addition to this you can also find an extension where you can make use of glibc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Please refer: &lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/optimization-and-programming-guide/extensions/c-and-c-standard-libraries-support.html" target="_blank" rel="noopener"&gt;https://software.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/optimization-and-programming-guide/extensions/c-and-c-standard-libraries-support.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Noorjahan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 12:13:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1290348#M1312</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2021-07-15T12:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: sys/stat.h missing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1290409#M1313</link>
      <description>&lt;P&gt;Thank you, Noorjahan, but on the devcloud environment, I cannot find libsysl-glibc.o.&amp;nbsp; Instead, I find:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /opt/intel/inteloneapi/compiler/2021.2.0/linux/lib/libomp-glibc.o&lt;/P&gt;
&lt;P&gt;But when I try to link with that or gcc's default glibc, dpgpp errors out, saying it's incompatible with -fsycl.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, the supported functions in libsysl-glibc are very limited.&amp;nbsp; Obviously, device code cannot support all the functionality of glibc, but what is host code supposed to do?&amp;nbsp; How can legacy host code be preserved, while adding sycl functionality in specific offloads?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 15:52:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1290409#M1313</guid>
      <dc:creator>InvisibleWonder</dc:creator>
      <dc:date>2021-06-16T15:52:56Z</dc:date>
    </item>
    <item>
      <title>Re:sys/stat.h missing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1291000#M1319</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;I&gt;when I try to link with that or gcc's default glibc, dpcpp errors out, saying it's incompatible with -fsycl&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please provide a sample reproducer and steps you have followed. So that, we can work on it from our end.&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jun 2021 08:07:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1291000#M1319</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2021-06-18T08:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: sys/stat.h missing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1291103#M1322</link>
      <description>&lt;P&gt;I prepared a minimal test case, but it compiled fine.&amp;nbsp; This narrowed down the search space enough to find the culprit:&lt;/P&gt;
&lt;P&gt;link time optimization isn't supported (-flto).&amp;nbsp; Without it, the project is now linking properly with dpcpp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your Socratic help &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 13:22:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1291103#M1322</guid>
      <dc:creator>InvisibleWonder</dc:creator>
      <dc:date>2021-06-18T13:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: sys/stat.h missing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1291545#M1325</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Glad to know that your issue is resolved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we will no longer respond to this thread.&lt;/P&gt;
&lt;P&gt;If you require any additional assistance from Intel, please start a new thread.&lt;/P&gt;
&lt;P&gt;Any further interaction in this thread will be considered community only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Noorjahan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 06:28:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/sys-stat-h-missing/m-p/1291545#M1325</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2021-06-22T06:28:41Z</dc:date>
    </item>
  </channel>
</rss>

