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

    <tr>
        <th>Summary</th>
        <td>
            [libc] lkbits broken on riscv32
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc
      </td>
    </tr>

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

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

<pre>
    #114912 broke the riscv32 buildbot:
```
libc/src/stdfix/lkbits.cpp:16:10: error: no matching function for call to 'bit_cast' 16 | return cpp::bit_cast<long accum, int_lk_t>(x); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ llvm-project/libc/src/__support/CPP/bit.h:38:1: note: candidate template ignored: substitution failure [with To = long _Accum, From = int_lk_t]: implicit instantiation of undefined template '__llvm_libc_20_0_0_git::cpp::enable_if<false, long _Accum>' 38 | bit_cast(const From &from) { | ^
```
I'm going to disable this for now.

Reproducible via:
```
$ cmake ../runtimes -G Ninja -DLLVM_ENABLE_LLD=ON -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_RUNTIMES="libc" -DLIBC_TARGET_TRIPLE=riscv32-linux-gnu -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
$ ninja libc
```
cc @smallp-o-p 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEVE2PozgQ_TWVSykR2CGEAwcSklG06Z5Wb2Y1e0LGOMTTxkb-6Om97G9fmWTSrd1ZDVi2oezneuVXxZyTvRaihGwDWT1jwV-MLbXkL51wLCgthXWz1nR_lUBomi6LlGBrzYtAfxFopeOvlGAbpOpa44FWkNSQVLBKbm36VLLlQPbOTr3vzvINyF69tNK7BR9HoFW6il0CtEJhrbFxog0OzPOL1D2eg-ZeGo1nY5EzpdAbBJK30jecOQ8kx3SFkG_RCh-sxisu0Oq-hG6V0T0yzsM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