<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/99767>99767</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
stage2 compiler-rt build fails on X86_64 MacOS GitHub runners
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
tstellar
</td>
</tr>
</table>
<pre>
I'm trying to do release builds on the x86_64 MacOS GitHub runners, and the stage2 compiler-rt build is failing with errors like:
`fatal error: /Applications/Xcode_15.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /var/folders/80/7d6cd1d13n9by5z92zm5q2mr0000gn/T/lsan_common-429870/lsan_common-x86_64.out and /var/folders/80/7d6cd1d13n9by5z92zm5q2mr0000gn/T/lsan_common-f0ff7a/lsan_common-x86_64h.out have the same architectures (x86_64) and can't be in the same fat output file`
The full log can be found [here](https://github.com/tstellar/llvm-project/actions/runs/10016041098/job/27693684826).
I am able to work around this by passing the following CMake options:
```
-DBOOTSTRAP_COMPILER_RT_ENABLE_IOS=OFF
-DBOOTSTRAP_DARWIN_osx_ARCHS=x86_64
-DBOOTSTRAP_DARWIN_osx_BUILTIN_ARCHS=x86_64
```
### How to Reproduce
```
cmake -G Ninja -S llvm -B build \
-DLLVM_RELEASE_ENABLE_PGO=OFF
-DLLVM_RELEASE_ENABLE_PROJECTS="clang;lld;lldb;clang-tools-extra;bolt;polly;mlir" \
-C clang/cmake/caches/Release.cmake
ninja -C build stage2-package
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVUuPozgQ_jXOxSIyBeFx4JAXM1mlO6N0dndukYEieNpg1jb9mF-_MqQ1vdOP00rIgP25qr5yfWVujLh0iBlZrMhiM-ODbZTOrLEoJdezQlXP2Y5A3FKrn0V3oVbRSlGNErlBWgxCVoaqjtoG6VMSnaOQ3vDycEe_CPt1KKge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