<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/151321>151321</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Flang/MLIR/LLVM build fails with GCC 14 on aarch
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir,
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Acture
</td>
</tr>
</table>
<pre>
Description:
Building LLVM (with mlir, clang, and flang) using GCC 14.3.0 fails in the following environments:
Environment:
macOS AArch64 with GCC 14.3.0 (with and without Nix sandbox)
aarch64-linux with GCC 14.3.0 (via Nix sandbox on server)
Expected Behavior:
LLVM and its subprojects (flang, mlir) should build successfully with GCC 14.3.0.
Notes:
The issue appears to stem from incompatibilities between libc++ and libstdc++ during the build process.
See discussion from [nix pr](https://github.com/NixOS/nixpkgs/pull/428306)
See attached logs for details.
[llvm-build-sanitized.log](https://github.com/user-attachments/files/21509853/llvm-build-sanitized.log)
[mlir_gcc_build.log](https://github.com/user-attachments/files/21509855/mlir_gcc_build.log)
[flang_mlir_gcc_build.log](https://github.com/user-attachments/files/21509854/flang_mlir_gcc_build.log)
[flang_gcc_build.log](https://github.com/user-attachments/files/21509856/flang_gcc_build.log)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0VMFu4zYQ_RrqMoggUdLaOuhgJ6uiQDYLNEWvAUWOpGkpUiApx9uvLyjZTlpk28sWMGB6QL73_GbmCe9pMIgNq46sekjEEkbrmoMMi8Oks-pb84BeOpoDWcOKA8vi57iQVmQGeHz87Qswvn-lMMKkyTF-D1ILM8SDMAr67UcNi48Pfrq_h7xMizSDXpD2QAbCiNBbre1rvIHmRM6aCU3wN8LPb8VbbRLy6zMcDk6On0pYFbxDv4qKGuLBLgGe6AxeGNXZM-P1hiLE-v5Ok1nOH6GcSLx_CNaAR3dCd4P4fJ5RBlRwxFGcyLqbRJYdVoeiCAoe_NLNzv6OMvgI3V-N2pyrwY920Qq6aC_4RUr0vl-0_vZPYekG_mQDvpn064hA3i8IYp5ROA_Bgg84Qe_sBGSknWYRqCNNgdBDh-EV0YCmTjJ-ZPy4KtXU-aCuFbW42JbYpE3X7GzUlcLG-owIirxcvCdrNipWHQ2dYXasemB8P4YwrzJ5y3g7UBiXLpV2Yrx9ovPXZ8ZbQ-f5j8Ez3s6L1oy3Jd8X2aebx5FFhCDkiAq0HTz01oHCEIfo4garjlqfprtV5p0XhgL9iSrVdvhPHYtHd7cRbJPH2540xm-eV1m9rwrG2-_CbzKrY2zkyyDly3rpBzFXjLcfAF851yl6-V-Yy1j6Hvzf-X809acb9QesiWoKVRe1SLDJd1Wx39XFLk_GBvO8V3Wt-m6vpMpFteNl3vFKibLue1Ul1PCMV9muyHJe8ipPUfW7Wu1KVJnYSY6szHASpNPY69S6IVlXqsmrvOB5okWH2q9xyfm2tpzxe8b5ZZl5jFHXXCZl8KzMNPng3_ACBY1Nu11vvzz-_Avj7RoT235tufhu4WPkrDGVLE43_-JqpLhO6SVnGG9X_dHZy184NfyvAAAA___wduut">