<?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: Undefined reference to `__truncdfhf2' in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675132#M4358</link>
    <description>&lt;P&gt;Could be related to GCC version.&lt;/P&gt;
&lt;P&gt;Mine is 11.4.0,&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2025 21:41:54 GMT</pubDate>
    <dc:creator>Viet_H_Intel</dc:creator>
    <dc:date>2025-03-14T21:41:54Z</dc:date>
    <item>
      <title>Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675111#M4352</link>
      <description>&lt;P&gt;I am trying to compile a simple program to experiment with using _Float16 without hardware support. The code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;mathimf.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;

int main()
{
    _Float16 a;
    a = sin(1.0);

    printf("%f\n", (float) a);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I attempt to compile it using the icx command "&lt;STRONG&gt;icx -march=znver2 -ffp-eval-method=source -fno-fast-math test.c -O0&lt;/STRONG&gt;" I get an error about missing&amp;nbsp;__truncdfhf2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;/tmp/icx-5661a33e8a/test-cacdee.o: In function `main':
test.c:(.text+0x16): undefined reference to `__truncdfhf2'
icx: error: linker command failed with exit code 1 (use -v to see invocation)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems this instruction is contained in compiler-rt, but when I add "&lt;STRONG&gt;-rtlib=compiler-rt&lt;/STRONG&gt;" I get the errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;/usr/bin/ld: cannot find /opt/intel/oneapi/compiler/2024.1/lib/clang/18/lib/linux/libclang_rt.builtins-x86_64.a: No such file or directory
/usr/bin/ld: cannot find /opt/intel/oneapi/compiler/2024.1/lib/clang/18/lib/linux/libclang_rt.builtins-x86_64.a: No such file or directory&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only libclang_rt files I can find are contained in "&lt;STRONG&gt;/opt/intel/oneapi/compiler/2024.1/lib/clang/18/lib/x86_64-unknown-linux-gnu/&lt;/STRONG&gt;" and even then there is no "&lt;STRONG&gt;libclang_rt.builtins-x86_64&lt;/STRONG&gt;" library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I go about getting this instruction in icx?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 16:50:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675111#M4352</guid>
      <dc:creator>jboline</dc:creator>
      <dc:date>2025-03-14T16:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675126#M4354</link>
      <description>&lt;P&gt;I am able to compile on none-hardware support system.&lt;/P&gt;
&lt;P&gt;$ icx -march=znver2 -ffp-eval-method=source -fno-fast-math t4.c -O0 -D__AVX512FP16__ -V&lt;BR /&gt;Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2025.0.0 Build 20241008&lt;BR /&gt;Copyright (C) 1985-2024 Intel Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;$ cat t4.c&lt;BR /&gt;#include &amp;lt;mathimf.h&amp;gt;&lt;BR /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/P&gt;
&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;_Float16 a;&lt;BR /&gt;a = sinf16(1);&lt;BR /&gt;printf ("a is %f\n",(float)a);&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;$ icx -march=znver2 -ffp-eval-method=source -fno-fast-math t4.c -O0 -Wno-implicit-function-declaration&lt;/P&gt;
&lt;P&gt;$ ./a.out&lt;BR /&gt;Illegal instruction (core dumped)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 21:24:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675126#M4354</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2025-03-14T21:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675129#M4355</link>
      <description>&lt;P&gt;I am using oneapi 2024.1.0. Also the code is using sin not sinf16.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 21:26:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675129#M4355</guid>
      <dc:creator>jboline</dc:creator>
      <dc:date>2025-03-14T21:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675130#M4356</link>
      <description>&lt;P&gt;I still can't reproduce the error you see with 2024.1.0.&lt;/P&gt;
&lt;P&gt;$ icx -march=znver2 -ffp-eval-method=source -fno-fast-math t5.c -O0 -V&lt;BR /&gt;Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2024.1.0 Build 20240308&lt;BR /&gt;Copyright (C) 1985-2024 Intel Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;$ cat t5.c&lt;BR /&gt;#include &amp;lt;mathimf.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;
&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;_Float16 a;&lt;BR /&gt;a = sin(1.0);&lt;/P&gt;
&lt;P&gt;printf("%f\n", (float) a);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;What gcc version on your system?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 21:31:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675130#M4356</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2025-03-14T21:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675131#M4357</link>
      <description>&lt;P&gt;Version is: gcc version 8.5.0 20210514 (Red Hat 8.5.0-18) (GCC)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 21:35:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675131#M4357</guid>
      <dc:creator>jboline</dc:creator>
      <dc:date>2025-03-14T21:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675132#M4358</link>
      <description>&lt;P&gt;Could be related to GCC version.&lt;/P&gt;
&lt;P&gt;Mine is 11.4.0,&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 21:41:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675132#M4358</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2025-03-14T21:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675139#M4359</link>
      <description>&lt;P&gt;Hmm I tried installing gcc 11 and using it, but I'm still getting the same error&lt;/P&gt;&lt;P&gt;$ gcc -v&lt;BR /&gt;Using built-in specs.&lt;BR /&gt;COLLECT_GCC=gcc&lt;BR /&gt;COLLECT_LTO_WRAPPER=/opt/rh/gcc-toolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper&lt;BR /&gt;OFFLOAD_TARGET_NAMES=nvptx-none&lt;BR /&gt;OFFLOAD_TARGET_DEFAULT=1&lt;BR /&gt;Target: x86_64-redhat-linux&lt;BR /&gt;Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/gcc-toolset-11/root/usr --mandir=/opt/rh/gcc-toolset-11/root/usr/share/man --infodir=/opt/rh/gcc-toolset-11/root/usr/share/info --with-bugurl=&lt;A href="http://bugzilla.redhat.com/bugzilla" target="_blank"&gt;http://bugzilla.redhat.com/bugzilla&lt;/A&gt; --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-11.2.1-20220127/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux&lt;BR /&gt;Thread model: posix&lt;BR /&gt;Supported LTO compression algorithms: zlib zstd&lt;BR /&gt;gcc version 11.2.1 20220127 (Red Hat 11.2.1-9) (GCC)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ icx -march=znver2 -ffp-eval-method=source -fno-fast-math test.c -O0 -V&lt;BR /&gt;Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2024.1.0 Build 20240308&lt;BR /&gt;Copyright (C) 1985-2024 Intel Corporation. All rights reserved.&lt;/P&gt;&lt;P&gt;/opt/rh/gcc-toolset-11/root/usr/lib/gcc/x86_64-redhat-linux/11/../../../../bin/ld: /tmp/icx-7ad0bac4ea/test-f2614d.o: in function `main':&lt;BR /&gt;test.c:(.text+0x16): undefined reference to `__truncdfhf2'&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 22:02:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675139#M4359</guid>
      <dc:creator>jboline</dc:creator>
      <dc:date>2025-03-14T22:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675582#M4360</link>
      <description>&lt;P&gt;Can you try:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;icx -march=znver2 -ffp-eval-method=source -fno-fast-math test.c -O0&amp;nbsp;--gcc-install-dir=/opt/rh/gcc-toolset-11/root/usr/lib/gcc/x86_64-redhat-linux/11&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 16:37:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675582#M4360</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2025-03-17T16:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675901#M4361</link>
      <description>&lt;P&gt;No luck, I get the same error message&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 15:16:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675901#M4361</guid>
      <dc:creator>jboline</dc:creator>
      <dc:date>2025-03-18T15:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675905#M4362</link>
      <description>&lt;P&gt;What do you get for "icx -v"? I am wondering if my target string could be messing things up:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ icx -v&lt;BR /&gt;Intel(R) oneAPI DPC++/C++ Compiler 2024.1.0 (2024.1.0.20240308)&lt;BR /&gt;Target: x86_64-unknown-linux-gnu&lt;BR /&gt;Thread model: posix&lt;BR /&gt;InstalledDir: /opt/intel/oneapi/compiler/2024.1/bin/compiler&lt;BR /&gt;Configuration file: /opt/intel/oneapi/compiler/2024.1/bin/compiler/../icx.cfg&lt;BR /&gt;Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/11&lt;BR /&gt;Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/11&lt;BR /&gt;Candidate multilib: .;@m64&lt;BR /&gt;Candidate multilib: 32;@m32&lt;BR /&gt;Selected multilib: .;@m64&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 15:22:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675905#M4362</guid>
      <dc:creator>jboline</dc:creator>
      <dc:date>2025-03-18T15:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675911#M4363</link>
      <description>&lt;P&gt;Not sure what happens with your system.&lt;/P&gt;
&lt;P&gt;It worked for me with --gcc-install-dir flag.&lt;/P&gt;
&lt;P&gt;$ icx -march=znver2 -ffp-eval-method=source -fno-fast-math t5.c -Wno-implicit-function-declaration -O0&lt;BR /&gt;/usr/bin/ld: /tmp/icx-d4bfb2a574/t5-9cbced.o: in function `main':&lt;BR /&gt;t5.c:(.text+0x16): undefined reference to `__truncdfhf2'&lt;BR /&gt;icx: error: linker command failed with exit code 1 (use -v to see invocation)&lt;BR /&gt;$ gcc -v&lt;BR /&gt;gcc version 8.1.0 (GCC)&lt;/P&gt;
&lt;P&gt;$ icx -march=znver2 -ffp-eval-method=source -fno-fast-math t5.c -Wno-implicit-function-declaration -O0 --gcc-install-dir=/usr/lib/gcc/x86_64-linux-gnu/11&lt;BR /&gt;&lt;BR /&gt;$ cat t5.c&lt;BR /&gt;#include &amp;lt;mathimf.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;
&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;_Float16 a;&lt;BR /&gt;a = sin(1.0);&lt;/P&gt;
&lt;P&gt;printf("%f\n", (float) a);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ icx -v&lt;BR /&gt;Intel(R) oneAPI DPC++/C++ Compiler 2024.1.0 (2024.1.0.20240308)&lt;BR /&gt;Target: x86_64-unknown-linux-gnu&lt;BR /&gt;Thread model: posix&lt;BR /&gt;InstalledDir: /installed-dir/compiler/2024.1/bin/compiler&lt;BR /&gt;Configuration file: /installed-dir/compiler/2024.1/bin/compiler/../icx.cfg&lt;BR /&gt;Found candidate GCC installation: /installed-dir/gcc-8.1.0/lib/gcc/x86_64-pc-linux-gnu/8.1.0&lt;BR /&gt;Selected GCC installation: /installed-dir/gcc-8.1.0/lib/gcc/x86_64-pc-linux-gnu/8.1.0&lt;BR /&gt;Candidate multilib: .;@m64&lt;BR /&gt;Candidate multilib: 32;@m32&lt;BR /&gt;Selected multilib: .;@m64&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 15:43:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675911#M4363</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2025-03-18T15:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675915#M4364</link>
      <description>&lt;P&gt;Can you try gcc11.4.0, instead of 11.2.1?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 15:56:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675915#M4364</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2025-03-18T15:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675942#M4365</link>
      <description>&lt;P&gt;Trying on rhel 9.4 it doesn't work either&lt;/P&gt;&lt;P&gt;$ icx -march=znver2 -ffp-eval-method=source -fno-fast-math test.c -Wno-implicit-function-declaration -O0 --gcc-install-dir=/usr/lib/gcc/x86_64-redhat-linux/11&lt;BR /&gt;/usr/bin/ld: /tmp/icx-556f0b3013/test-755a4c.o: in function `main':&lt;BR /&gt;test.c:(.text+0x16): undefined reference to `__truncdfhf2'&lt;BR /&gt;icx: error: linker command failed with exit code 1 (use -v to see invocation)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GCC version is 11.4.1&lt;/P&gt;&lt;P&gt;$ gcc -v&lt;BR /&gt;Using built-in specs.&lt;BR /&gt;COLLECT_GCC=gcc&lt;BR /&gt;COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper&lt;BR /&gt;OFFLOAD_TARGET_NAMES=nvptx-none&lt;BR /&gt;OFFLOAD_TARGET_DEFAULT=1&lt;BR /&gt;Target: x86_64-redhat-linux&lt;BR /&gt;Configured with: ../configure --enable-bootstrap --enable-host-pie --enable-host-bind-now --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=&lt;A href="http://bugzilla.redhat.com/bugzilla" target="_blank"&gt;http://bugzilla.redhat.com/bugzilla&lt;/A&gt; --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-plugin --enable-initfini-array --without-isl --enable-multilib --with-linker-hash-style=gnu --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_64=x86-64-v2 --with-arch_32=x86-64 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1&lt;BR /&gt;Thread model: posix&lt;BR /&gt;Supported LTO compression algorithms: zlib zstd&lt;BR /&gt;gcc version 11.4.1 20231218 (Red Hat 11.4.1-3) (GCC)&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 18:45:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675942#M4365</guid>
      <dc:creator>jboline</dc:creator>
      <dc:date>2025-03-18T18:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675962#M4366</link>
      <description>&lt;P&gt;Here is some more info from the compilation&lt;/P&gt;&lt;P&gt;$ icx -march=znver2 -ffp-eval-method=source -fno-fast-math -Wno-implicit-function-declaration -O0 --gcc-install-dir=/usr/lib/gcc/x86_64-redhat-linux/11/ test.c -v&lt;BR /&gt;Intel(R) oneAPI DPC++/C++ Compiler 2024.1.0 (2024.1.0.20240308)&lt;BR /&gt;Target: x86_64-unknown-linux-gnu&lt;BR /&gt;Thread model: posix&lt;BR /&gt;InstalledDir: /opt/intel/oneapi/compiler/2024.1/bin/compiler&lt;BR /&gt;Configuration file: /opt/intel/oneapi/compiler/2024.1/bin/compiler/../icx.cfg&lt;BR /&gt;Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/11&lt;BR /&gt;Candidate multilib: .;@m64&lt;BR /&gt;Candidate multilib: 32;@m32&lt;BR /&gt;Selected multilib: .;@m64&lt;BR /&gt;"/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -dumpdir a- -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name test.c -mrelocation-model static -fveclib=SVML -mframe-pointer=all -fmath-errno -ffp-contract=fast -fno-rounding-math -ffp-eval-method=source -mconstructor-aliases -funwind-tables=2 -target-cpu znver2 -mllvm -x86-enable-unaligned-vector-move=true -debugger-tuning=gdb -fdebug-compilation-dir=/local/home/1152177/fp16/test -v -fcoverage-compilation-dir=/local/home/1152177/fp16/test -fclang-abi-compat=17 -resource-dir /opt/intel/oneapi/compiler/2024.1/lib/clang/18 -I/opt/intel/oneapi/2024.1/include/dal -I/opt/intel/oneapi/2024.1/opt/oclfpga/include -c-isystem /opt/intel/oneapi/2024.1/include -cxx-isystem /opt/intel/oneapi/2024.1/include -internal-isystem /opt/intel/oneapi/compiler/2024.1/bin/compiler/../../opt/compiler/include -internal-isystem /opt/intel/oneapi/compiler/2024.1/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O0 -Wno-implicit-function-declaration -ferror-limit 19 -fheinous-gnu-extensions -fgnuc-version=4.2.1 -fcolor-diagnostics -D__GCC_HAVE_DWARF2_CFI_ASM=1 -fintel-compatibility -fintel-libirc-allowed -mllvm -disable-hir-generate-mkl-call -mllvm -loopopt=1 -floopopt-pipeline=light -mllvm -intel-abi-compatible=true -o /tmp/icx-80e2593b37/test-da8a95.o -x c test.c&lt;BR /&gt;clang -cc1 version 18.0.0 based upon LLVM 18.0.0git default target x86_64-unknown-linux-gnu&lt;BR /&gt;ignoring nonexistent directory "/usr/local/include"&lt;BR /&gt;ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/include"&lt;BR /&gt;ignoring nonexistent directory "/include"&lt;BR /&gt;#include "..." search starts here:&lt;BR /&gt;#include &amp;lt;...&amp;gt; search starts here:&lt;BR /&gt;/opt/intel/oneapi/2024.1/include/dal&lt;BR /&gt;/opt/intel/oneapi/2024.1/opt/oclfpga/include&lt;BR /&gt;/opt/intel/oneapi/2024.1/include&lt;BR /&gt;/opt/intel/oneapi/compiler/2024.1/bin/compiler/../../opt/compiler/include&lt;BR /&gt;/opt/intel/oneapi/compiler/2024.1/lib/clang/18/include&lt;BR /&gt;/usr/include&lt;BR /&gt;End of search list.&lt;BR /&gt;"/usr/bin/ld" --hash-style=gnu --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o a.out /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/11/crtbegin.o -L/opt/intel/oneapi/compiler/2024.1/bin/compiler/../../lib -L/opt/intel/oneapi/compiler/2024.1/bin/compiler/../../lib -L/opt/intel/oneapi/compiler/2024.1/lib/clang/18/lib/x86_64-unknown-linux-gnu -L/opt/intel/oneapi/compiler/2024.1/bin/compiler/../../lib -L/usr/lib/gcc/x86_64-redhat-linux/11 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../.. -L/opt/intel/oneapi/compiler/2024.1/bin/compiler/../../lib -L/opt/intel/oneapi/compiler/2024.1/bin/compiler/../../opt/compiler/lib -L/lib -L/usr/lib -L/opt/intel/oneapi/2024.1/lib /tmp/icx-80e2593b37/test-da8a95.o -Bstatic -lsvml -Bdynamic -Bstatic -lirng -Bdynamic -Bstatic -limf -Bdynamic -lm -lgcc --as-needed -lgcc_s --no-as-needed -Bstatic -lirc -Bdynamic -ldl -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed -Bstatic -lirc_s -Bdynamic /usr/lib/gcc/x86_64-redhat-linux/11/crtend.o /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crtn.o&lt;BR /&gt;/usr/bin/ld: /tmp/icx-80e2593b37/test-da8a95.o: in function `main':&lt;BR /&gt;test.c:(.text+0x16): undefined reference to `__truncdfhf2'&lt;BR /&gt;icx: error: linker command failed with exit code 1 (use -v to see invocation)&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 21:37:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675962#M4366</guid>
      <dc:creator>jboline</dc:creator>
      <dc:date>2025-03-18T21:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675963#M4367</link>
      <description>&lt;P&gt;Can you send the output of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;icx -march=znver2 -ffp-eval-method=source -fno-fast-math -Wno-implicit-function-declaration -O0 -#&amp;nbsp;test.c &amp;gt;&amp;amp; output.out&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 21:57:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675963#M4367</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2025-03-18T21:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `__truncdfhf2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675964#M4368</link>
      <description>&lt;P&gt;Ok, I actually got it to work. For some reason I need to add the flag "-rtlib=compiler-rt", but I also must use oneapi version 2025 else I get errors about&amp;nbsp;libclang_rt.builtins-x86_64.a missing:&lt;/P&gt;&lt;P&gt;/usr/bin/ld: cannot find /opt/intel/oneapi/compiler/2024.1/lib/clang/18/lib/linux/libclang_rt.builtins-x86_64.a: No such file or directory&lt;BR /&gt;/usr/bin/ld: cannot find /opt/intel/oneapi/compiler/2024.1/lib/clang/18/lib/linux/libclang_rt.builtins-x86_64.a: No such file or directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems oneapi version 2025 added&amp;nbsp;libclang_rt.builtins because I see libclang_rt.builtins.a in the install directory while it is missing for 2024&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 21:59:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Undefined-reference-to-truncdfhf2/m-p/1675964#M4368</guid>
      <dc:creator>jboline</dc:creator>
      <dc:date>2025-03-18T21:59:29Z</dc:date>
    </item>
  </channel>
</rss>

