<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63480>63480</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
fat-header.test test failure on Darwin when not building ARM target
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dtzSiFive
</td>
</tr>
</table>
<pre>
Trying to test our built LLVM on Darwin, encountering a test failure in `fat-header.test`:
```
-- Testing: 47076 tests, 3 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80..
FAIL: LLVM :: tools/dsymutil/fat-header.test (43001 of 47076)
******************** TEST 'LLVM :: tools/dsymutil/fat-header.test' FAILED ********************
Script:
--
: 'RUN: at line 3'; /Users/runner/work/circt/circt/llvm/build/bin/dsymutil -oso-prepend-path /Users/runner/work/circt/circt/llvm/llvm/test/tools/dsymutil /Users/runner/work/circt/circt/llvm/llvm/test/tools/dsymutil/Inputs/fat-test.arm.dylib -o /Users/runner/work/circt/circt/llvm/build/test/tools/dsymutil/Output/fat-header.test.tmp.fat32.dSYM
: 'RUN: at line 4'; /Users/runner/work/circt/circt/llvm/build/bin/llvm-objdump -m --universal-headers /Users/runner/work/circt/circt/llvm/build/test/tools/dsymutil/Output/fat-header.test.tmp.fat32.dSYM/Contents/Resources/DWARF/fat-test.arm.dylib | /Users/runner/work/circt/circt/llvm/build/bin/FileCheck /Users/runner/work/circt/circt/llvm/llvm/test/tools/dsymutil/fat-header.test -check-prefixes=FAT32
: 'RUN: at line 6'; /Users/runner/work/circt/circt/llvm/build/bin/dsymutil -oso-prepend-path /Users/runner/work/circt/circt/llvm/llvm/test/tools/dsymutil /Users/runner/work/circt/circt/llvm/llvm/test/tools/dsymutil/Inputs/fat-test.arm.dylib -o /Users/runner/work/circt/circt/llvm/build/test/tools/dsymutil/Output/fat-header.test.tmp.fat64.dSYM -fat64
: 'RUN: at line 7'; /Users/runner/work/circt/circt/llvm/build/bin/llvm-objdump -m --universal-headers /Users/runner/work/circt/circt/llvm/build/test/tools/dsymutil/Output/fat-header.test.tmp.fat64.dSYM/Contents/Resources/DWARF/fat-test.arm.dylib | /Users/runner/work/circt/circt/llvm/build/bin/FileCheck /Users/runner/work/circt/circt/llvm/llvm/test/tools/dsymutil/fat-header.test -check-prefixes=FAT64
--
Exit Code: 1
Command Output (stderr):
--
warning: /Users/runner/work/circt/circt/llvm/llvm/test/tools/dsymutil/Inputs/fat-test.arm.o: timestamp mismatch between object file (2023-06-23 04:09:04.766382864) and debug map (2015-08-05 21:31:26.000000000)
error: unable to get target for 'armv7-apple-darwin', see --version and --triple.
note: while processing dwarf streamer init
error: unable to get target for 'armv7s-apple-darwin', see --version and --triple.
note: while processing dwarf streamer init
error: unable to get target for 'arm64-apple-darwin', see --version and --triple.
note: while processing dwarf streamer init
--
********************
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
********************
Failed Tests (1):
LLVM :: tools/dsymutil/fat-header.test
```
This is on an x86 mac, built with only support for "host" target.
I'm a little out of touch with the latest lit REQUIRES bits, but I think this should instead be gated on something like `arm-registered-target` or so?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsV99v27YT_2volwMFmpIl-8EPbhIBAdrvF0vSDXukxLPFhiIFkoqb_fXDSU6aZl2BNl1XbAuEo2Lxx-fuc3e8UzGag0PcstUrtjpfqDF1Pmx1-u3a1OYOF43X99ubcG_cAZKHhDGBHwM0o7EJXr_--Q14B-cqHI1j8gzQtX50CQMtUPP8vTJ2DAjGASvFXiXeodIYMvrKSsHyHRPnTDzIUpye6V_O4QZjMu7A8h0UlajKadtIx-Vw9OEWQwTO5-lP5oLIMliSkCRyEgWJFYmSREViTWJeXe8uX9PSSTHCle8geW8jk7WO9_2YjGWyfqYDMLkuciGW4PczQiY3J2Xk1z9wc3F9A0xWX4aGyQpIj4tzeMnpM_7rNpghPT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