<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/101789>101789</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Flang build fails on GitHub Action MacOS X86_64 runners
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
tstellar
</td>
</tr>
</table>
<pre>
I'm trying to do a release build with flang on the GitHub Action MacOS X86_64 runners and it is failing with this error:
```
[338/2224] Generating ../../../../include/flang/__fortran_builtins.mod
FAILED: include/flang/__fortran_builtins.mod /Users/runner/work/llvm-project/llvm-project/build/tools/clang/stage2-bins/include/flang/__fortran_builtins.mod
cd /Users/runner/work/llvm-project/llvm-project/build/tools/clang/stage2-bins/tools/flang/tools/f18 && /usr/local/Cellar/cmake/3.30.1/bin/cmake -E make_directory /Users/runner/work/llvm-project/llvm-project/build/tools/clang/stage2-bins/include/flang && /Users/runner/work/llvm-project/llvm-project/build/tools/clang/stage2-bins/bin/flang-new -cpp -fsyntax-only -module-dir /Users/runner/work/llvm-project/llvm-project/build/tools/clang/stage2-bins/include/flang /Users/runner/work/llvm-project/llvm-project/flang/module/__fortran_builtins.f90
dyld[6699]: unknown imports format
/bin/sh: line 1: 6699 Abort trap: 6 /Users/runner/work/llvm-project/llvm-project/build/tools/clang/stage2-bins/bin/flang-new -cpp -fsyntax-only -module-dir /Users/runner/work/llvm-project/llvm-project/build/tools/clang/stage2-bins/include/flang /Users/runner/work/llvm-project/llvm-project/flang/module/__fortran_builtins.f90
```
I think it may be possible that this error is a symptom of running out of memory. Does this command use a lot of memory?
### How To Reproduce
```
cmake -G Ninja -S llvm -B build \
-DLLVM_RELEASE_ENABLE_PGO=OFF -DBOOTSTRAP_COMPILER_RT_ENABLE_IOS=OFF -DBOOTSTRAP_DARWIN_osx_ARCHS=x86_64 -DBOOTSTRAP_DARWIN_osx_BUILTIN_ARCHS=x86_64 \
-C clang/cmake/caches/Release.cmake \
-DBOOTSTRAP_LLVM_PARALLEL_LINK_JOBS=1 \
-DBOOTSTRAP_CPACK_PACKAGE_FILE_NAME="LLVM-19.1.0-rc1-macOS-X64"
ninja -C build stage2-package
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVltvozgU_jXOyxEITEiTBx5IAm12aFKlnd15Q8aYxFNjR7aZNv9-ZSDbbqezN2n6tBFyYnIu37kfYgw_SMYSFC9RvJ6Qzh6VTqyxTAiiJ5Wqz8kG4asWrD5zeQCroFZAQDPBiGFQdVzU8MTtERpB5AGUBHtkcM3tTVdBSi1XEm4J3d3Dl_msnE1Bd1IybYDIGrgFbqAhXDjhvRh75AaY1kqjKEXBGgWXcxaMz3CNl1E0RzjHGE9RvIZrJpkm1gnyfYTzNweXVHQ1QzjvgSKcl2WjtNVEls4Ky6XxW1UP0vN0U2RrFKXwT_kA4fyzYdognA8mIpw_Kf2IcC7Et9Y7afWVUfv9tfchwrlVSjhuOuoxlhwY9iouzb_AD4MB9KcDuvx7gfPHPZwDwjOEZw5BZ5xaoSgRCOerPq-cyJY8OlsiPwr80Onk8vIavAzcd1lzzahV-vzBvn0F_2dqHUzuNXqSPYFHTyfwGnOWljx7SoozeK2qO8G8muuP98F_VHfJhwH6-3naLMYqrs-iRvFyNlssUNzXWycfpXqSwNuT0tZAo3RL7FjzF6eZoyMVXDII3S9wAiCtlLZgNTm5d__H7wPi97Yp9-fGNXH56Lp7S85QMTgpY3glGNgjsa9avOv-BMy5PVnVgmr64eA6uOqsu7asVfrsA6wVMwMfVW3rRkdnGBAQ6hUdivI_DQwcDQ_cqCd4ULBnJ63qjrK_GCtjB7qGLZdfCXj34NwD3nIcdSheDYTgrYvi19tynxVZep-V2TZdFll5d71D0XqX5-Ctl7vdw_3DPr0rV7vbu02R7cv9w4Vws7t_h3Cd7n_bbEtlnst0v7pxJM_D2PwB1fLzpnjYbN9Sv8DsP94KLllz6byU0CNz2bEfRr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