<?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: icpx hangs while compiling donna_64.cpp from cryptopp in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-hangs-while-compiling-donna-64-cpp-from-cryptopp/m-p/1620389#M4006</link>
    <description>&lt;P&gt;I'm escalating your issue to our internal team to investigate.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 23:21:11 GMT</pubDate>
    <dc:creator>Alex_Y_Intel</dc:creator>
    <dc:date>2024-08-02T23:21:11Z</dc:date>
    <item>
      <title>icpx hangs while compiling donna_64.cpp from cryptopp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-hangs-while-compiling-donna-64-cpp-from-cryptopp/m-p/1620371#M4004</link>
      <description>&lt;P&gt;There is a &lt;A href="https://github.com/weidai11/cryptopp/" target="_self"&gt;popular C++ cryptography library&lt;/A&gt; with 4700 stars on github.&amp;nbsp; I noticed that the current version of icpx fails to compile it, hanging for about 4 minutes (depending on the machine) and then crashing.&amp;nbsp; Here are the steps to reproduce the issue:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;git clone https://github.com/weidai11/cryptopp
cd cryptopp
icpx -c donna_64.cpp&lt;/LI-CODE&gt;&lt;P&gt;Here is the output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;icpx: error #10106: Fatal error in /opt/intel/oneapi/compiler/2024.2/bin/compiler/clang++, terminated by kill signal&lt;/LI-CODE&gt;&lt;P&gt;I would expect icpx to either compile successfully, or at least provide a better description of a syntax error if there is one.&amp;nbsp; I believe the code is valid C++, since g++ can compile it as I will describe below.&lt;/P&gt;&lt;P&gt;On another machine with more memory, icpx just seems to hang indefinitely, over 12 hours when I let it run overnight.&lt;/P&gt;&lt;P&gt;I narrowed down the issue to &lt;A href="https://github.com/weidai11/cryptopp/blob/60f81a77e0c9a0e7ffc1ca1bc438ddfa2e43b78e/donna_64.cpp#L345" target="_self"&gt;these lines in donna_64.cpp&lt;/A&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#define write51full(n,shift) \
f = ((t[n] &amp;gt;&amp;gt; shift) | (t[n+1] &amp;lt;&amp;lt; (51 - shift))); \
for (i = 0; i &amp;lt; 8; i++, f &amp;gt;&amp;gt;= &lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt; *out++ = (byte)f;
#define write51(n) write51full(n,13*n)

write51(0)&lt;/LI-CODE&gt;&lt;P&gt;Without those lines (and the other invocations of the `write51` macro), it compiles.&amp;nbsp; Also, g++ can compile it just fine either way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@7a1da2106c1d cryptopp]# time g++ -c donna_64.cpp

real    0m0.797s
user    0m0.742s
sys     0m0.050s
[root@7a1da2106c1d cryptopp]# echo $?
0&lt;/LI-CODE&gt;&lt;P&gt;Here are my version details:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@7a1da2106c1d cryptopp]# icpx --version
Intel(R) oneAPI DPC++/C++ Compiler 2024.2.0 (2024.2.0.20240602)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2024.2/bin/compiler
Configuration file: /opt/intel/oneapi/compiler/2024.2/bin/compiler/../icpx.cfg
[root@7a1da2106c1d cryptopp]#
[root@7a1da2106c1d cryptopp]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.4 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.4"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.4 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.4"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.4"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 21:04:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-hangs-while-compiling-donna-64-cpp-from-cryptopp/m-p/1620371#M4004</guid>
      <dc:creator>jeff-irwin</dc:creator>
      <dc:date>2024-08-02T21:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: icpx hangs while compiling donna_64.cpp from cryptopp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-hangs-while-compiling-donna-64-cpp-from-cryptopp/m-p/1620389#M4006</link>
      <description>&lt;P&gt;I'm escalating your issue to our internal team to investigate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 23:21:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-hangs-while-compiling-donna-64-cpp-from-cryptopp/m-p/1620389#M4006</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-08-02T23:21:11Z</dc:date>
    </item>
  </channel>
</rss>

