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

    <tr>
        <th>Summary</th>
        <td>
            flang runtime build error on FreeBSD x86
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Revision a707675dbba9ca3ec6e668f86fea2240a85ca171 enables 128 bit float unconditionally when compiling with recent versions of clang.  This breaks my build on FreeBSD 13.1 (x86) because 128 bit float support is not enabled for FreeBSD.

```
[ 87%] Building CXX object tools/flang/lib/Optimizer/Builder/CMakeFiles/obj.FIRBuilder.dir/Runtime/Numeric.cpp.o
In file included from /data/llvm/llvm-dev/flang/lib/Optimizer/Builder/Runtime/Numeric.cpp:15:
In file included from /data/llvm/llvm-dev/flang/include/flang/Runtime/numeric.h:15:
/data/llvm/llvm-dev/flang/include/flang/Runtime/cpp-type.h:55:25: error: __float128 is not supported on this target
using CppFloat128Type = __float128;
                        ^
```

There is a feature test macro `__FLOAT128__` that could be used instead of or in addition to testing compiler versions.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylU9tunDAU_Bp4OQoCs7DsAw_ZpCtFahspjaq8rYx92HVjMPIll359j1napFEqVQpCxsY-M2N7pjPyub3BB-WUGYGv83W9rmTX8Y3gJYoa67rpm7pHztgq500leLEuAEfeaXRQsAY65aHXhnsIozCjVJ6guNbP8HjEEYQZJqXVeIBH5Y9gUeDo4QFtZHRgehCaj4cM4PaoHHQW-b2D4Rm6oLQEUrWziNtvl1CUWQEJa56aOmEb6FDw4PCNBhemyVgPBDUavwiV0Bv7GydL8sskP1_aOl_e07DaQrNOWJVUl7CNAqLwi7s7MN0PFB68MdolbNdHzfTVqqP2evJqUD_RUn-umnsXX_g97hSdEw2oPttd3SyzmVRxxU0YqRCp9zUMaJXIxDRl5qTlaoSeikGNQgcZ92DNQPvfSe55pNYPw_I5k_jwn6LepUzK86Ki5qPES8WrPy9040J3_Jvso7Ck_sw_TzjjVhGXxQbQWmNjZ7-fjRFdsnhisQjO5vLRdJ7bA_qToODmK5-m3VJ2S-iQlJevkJJye1oM_3iS6tP7_prb2yNajGo4ULB8oIFH52Hgwhqgxfv97vP1-S0x7fc0JJHkbGEC5aFDINNLuhznkcuYH7K2ouzKU_LIojNa3MUpe2j_xC1LsS3qelXkBSuqVLal3JQbnnrlNbbz6YI9ne2Sv_kcX6eQ0pcGq9uj95OL18h29B4o26HLiPDNTU7WxODEW3QuzFGo1pu6So-tFFL2ot_UDRcVF1hWrGmKuuN5XjS8X6Wad6hdS6FMGBvxEWYI6lM6U9WynLF8w6oiZ3lRZawuOdZFl69WYiXKVbLKceBKZ1FHZuwhte0sqQsHR5NaOe9eJrlz6jAiznSEz4M_Gtt-N0_fhAp0CGFIZ_521v8LtUmsVg">