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

    <tr>
        <th>Summary</th>
        <td>
            error: static assertion failed due to requirement ... (llvm-gold)
        </td>
    </tr>

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

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

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

<pre>
    Hi, following the guide in https://llvm.org/docs/GoldPlugin.html:

I get the following errors:

```cpp

In file included from ../../gold/stringpool.cc:23:
In file included from ../../gold/gold.h:35:
In file included from ../../gold/system.h:68:
In file included from /usr/lib64/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../include/c++/12.2.1/unordered_set:46:
In file included from /usr/lib64/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../include/c++/12.2.1/bits/hashtable.h:35:
/usr/lib64/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../include/c++/12.2.1/bits/hashtable_policy.h:1685:2: error: static assertion failed due to requirement 'std::__is_invocable<const gold::Stringpool_template<unsigned short>::Stringpool_eq &, const gold::Stringpool_template<unsigned short>::Hashkey &, const gold::Stringpool_template<unsigned short>::Hashkey &>{}': key equality predicate must be invocable with two arguments of key type
 static_assert(__is_invocable<const _Equal&, const _Key&, const _Key&>{},
```

```cpp
In file included from ../../gold/stringpool.cc:23:
In file included from ../../gold/gold.h:35:
In file included from ../../gold/system.h:68:
In file included from /usr/lib64/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../include/c++/12.2.1/unordered_set:46:
In file included from /usr/lib64/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../include/c++/12.2.1/bits/hashtable.h:35:
/usr/lib64/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../include/c++/12.2.1/bits/hashtable_policy.h:1697:4: error: static assertion failed due to requirement 'std::__is_invocable<const gold::Stringpool_template<unsigned int>::Stringpool_eq &, const gold::Stringpool_template<unsigned int>::Hashkey &, const gold::Stringpool_template<unsigned int>::Hashkey &>{}': key equality predicate must be invocable with two arguments of key type
 static_assert(
```

What should I do to fix this?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVk1v3DYQ_TXUhVhBIrX6OOiwsa0m6KVADz0KFDmS2FKiTA5j778vqF3HtdukHwnSHAIIlCDMPD4O3zyM8F5PK0BLjm_I8TYRAWfr2tMpb5omGaw6t281YTd0tMbYB71OFGegU9AKqF7pjLh5wk-EdYR1xrxfUusmwjplpSes-8Ea9ZMJk17TGRcTI7Nbkl3Xd3QC3AGf4cE56_yrQFJml0du2wuAlY7aRCbSBAWKjs4uNE0J6_ZlskYR1nl0ep02a00qJeEnxj_g_0OE-Epnwk_8-G9T_dkjLHtyWf9NMmFd8C5WUg9lETGkJKx7rMu-LA6bPBi9hsfDtAbCupylLM2fdnu1XHEJ6yRhb_bnOSGs1ilwoHoPSPipKL8NXoPGKJpZ-BnFYOB1xf8nGv1mjZbnnU1e1pEPI_x0kWr88ChQSyq8B4farnQU2oCiKgBFSx3cB-1ggRUpYZVHFU_ET32vfa_X91bGXQi_kXb1SHfd7AE_f9Btj7BsRmCMCuves4r62Tok_O5PwXBPCStj234W4lvh59_g_MWx-B2p3pDqlrAqVi_-hvsgjMYz3RwoLQUCXYJHOkQlXgtEHzTOFB8sFW4KsZqe2nFPx_MGF4lc76K_3AVh9UeK3N_FHV-crP8Rzn_545nvzSs7-rRHfXen7-70td2piS1VfAvupNcv601_xPs8Z_oY0lf1pU84yS-zwGifwSj6jiobb2nUjxRn7QnvEtVy1fBGJNDmZVWy7MjLIpnbrBmYHKHK84qzvOZl3gxsPNYiE0o19THRLcsYz1jOcsbLrEirseYVH445ZI1gRU2KDBahTfo0ySXa-wBtmZV1nRgxgPFPo6JrY9BhCJMnRWa0R_-chhoNtP9FgmmaUsLqHfviUU0SnGlfTpqTxjkMqbTLdey8vg6bs7-CxNhEkXnslJ387wEAAP__6rZX7g">