<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/61252>61252</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [compiler-rt] build error: ‘_Float16’ is not supported on this target
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            compiler-rt
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          hiraditya
      </td>
    </tr>
</table>

<pre>
    With `cmake -DCMAKE_BUILD_TYPE=Release -GNinja   ../llvm   -DLLVM_TARGETS_TO_BUILD:STRING=X86   -DBUILD_SHARED_LIBS:BOOL=OFF   -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi"   -DLLVM_ENABLE_PROJECTS="clang;compiler-rt"`

and gcc as the host compiler, the build of compiler-rt fails with the following error:

```
llvm-project/compiler-rt/lib/builtins/fp_extend.h:44:9: error: ‘_Float16’ is not supported on this target
   44 | typedef _Float16 src_t;
      |         ^~~~~~~~
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysU01zmzAQ_TXLZcceWTIYHziAgdStY2dspx8nRoAApTLyILlJLv3tHbCduOm1GoYPzb73tI-33BhZt0IE4Ebgxg4_2UZ3QSM7Xkr7yp1cl6_BN2kbBI8UB_5T4Che3Idfkix6XK7ibP_jIQEWb4US3Agc3a1l-8QRcTwGmir164CIo3i1-nqf7cPtXbLfZfvNGQws3O23y_UdsPi77w2FZ9bdp3CbxNlqGe2AhdFmswIWb9L0nStZh9EqybaP6_3yPtkBi4FSJfPi5QVYdH7huQRK_8E8bDefk8X-gikUb2tgUaEPR6lEN-osUAoeARIDCc933pZYFwVyg7YR2Ghj8QoAuhg285NUJeoKb5iw4lIZfO4N7GsqrZR-lm2Nout0Byy8VelFz9fw2Zs3Onb6SRQWaPrXAVMlc6Bpr2lla4Cm1TETL1a05bgBFk6nwMI5sPBNCCGh4BOY-1mqNLcT77oxR2mw1RbN6XjUnRUl6hZtIw1a3tXCno-DiNMpwmyB9vUoSlHhlQhNV2QWWPRWiDgUXhe4ye_z-tCoUwasnLM5d0Qw8WY-pTN_4jpN4Fcup25FiF8Qr8z9ipasYKSczeYVm_C5IwNKKCOMzCiljLlj7lUzQUTpkZz4bkVhSsSBSzXubRzrrnakMScReBPqUkfxXCgzxJ7SD7_ejZ0uGMzPT7WBKVHSWPPOY6VVw8Tc4tz4EoD_4Ldz6lTQWHs0fUBoCjStpW1O-bjQh8tUXR43-Rja65MwdPgnAAD__yiyK6A">