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

    <tr>
        <th>Summary</th>
        <td>
            Internal compiler error while cross-compiling LLVM 20.1.5 with GCC 8.1.0
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          Sangeetha-E
      </td>
    </tr>
</table>

<pre>
    While cross-compiling LLVM 20.1.5 using GCC 8.1.0, I am encountering the following issues:

Initial Error:

```
llvm-20.1.5.src/lib/Support/APFloat.cpp:130:61: error: 'const llvm::fltSemantics{15, -14, 11, 16, IEEE754, IEEE, true, true}' is not a constant expression
 static constexpr fltSemantics semIEEEhalf = {15, -14, 11, 16};

```

Reference Fix Applied:

I followed the suggestion in this GitHub issue:
https://github.com/llvm/llvm-project/issues/81013#issue-2123529849

Subsequent Error After Applying Fix:

```
llvm-20.1.5.src/lib/Analysis/CtxProfAnalysis.cpp:233:5: internal compiler error: in tsubst_decomp_names, at cp/pt.c:16535
    for (auto &[_, SubCtxSet] : Ctx.callsites())
```

Note:

- These issues occur when using GCC 8.1.0.

- When I compile LLVM 20.1.5 with GCC 13, the build completes successfully.

- This suggests that newer versions of LLVM (including 20.1.5) may require GCC >= 13 for successful compilation.

Request:

Please confirm:

- Whether LLVM 20.1.5 officially requires GCC 13 or later.

- Are there any known workarounds to build LLVM 20.1.5 with GCC 8.x?

Thank you.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJycVd-P4jYQ_mvMy4gosUmAhzxkWXJd6Vqdyqn3uHKcCXHX2Fn_WOC_r5wEdq93VdVKEQZPPN_M931juHPyqBFLkj-Q_HHBg--NLQ9cHxF9z5f7RWPaa_mtlwpBWOPcUpjTIJXUR_j8-Y9fgaZJluQQXNz5tNvBJsmSlNAdPAE_AWphgvZoY9j3CJ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