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

    <tr>
        <th>Summary</th>
        <td>
            cannot find crtbeginS.o: No such file or directory in some setups
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          glandium
      </td>
    </tr>
</table>

<pre>
    STR:
- Download and upack https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/AC2yzfWmQXK2xWGKJkfojA/runs/0/artifacts/public%2Fbuild%2Fsysroot-i686-linux-gnu.tar.zst
- `echo 'int main() { return 0; }' > foo.c`
- `clang --sysroot=/path/to/sysroot-i686-linux-gnu --target=i686-linux-gnu foo.c`

This fails with:
```
/usr/bin/ld: cannot find crtbeginS.o: No such file or directory
/usr/bin/ld: cannot find -lgcc: No such file or directory
/usr/bin/ld: cannot find -lgcc_s: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

Regression from 435ea21c897f94b5a3777a9f152e4c5bb4a371a3

This is happening because i586-linux-gnu was removed from X86Triples.

Cc: @MaskRay 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE2P4zYM_TXKhbDh0HYcH3yY2dQFumiBzg6weytkmba5kaVUH5nJ_PpCybTd6QcwKAoYsgSSj-Qj8aT3PBuiTtT3oj5sZAyLdd2spRk5rpvBjpfu0-ODKO9EcRDFXQYH-2S0lSNIM0I8SXWEJYSTTy7YC-wndjTZ50xxFlTuyZ1Zkc9X-8Jay1zZVWAvTyyw_zVSJIH9eSuwD9IfBfZ3H_DyMn1ef_7yEZ8_f__xh-NkvyZoF40X2Bcp2gWepArpfYqDZiWwxn6IrMfrzV-8szZkvNvvMs0mPmeziXmQLn_x4fdWxK4gtVgQ2LAJsEo2AvcCWxDNPTgK0RkoRHkPojkIbECU38Fkba7ErvgGRGlpZsiy16yiPKS6ZFhSV1b8WzmQZUG6mVLAXyxvk9zOx4U9TJK1hycOyx8jSW637_bEPnonsB9SN70eRXkHShpjA0xsRlAuDDSz-ZTbZPrJgo9qgYk1gXUwsiMVrLu8Ey7Ts1L_G9Av_h1QV76THzlnXbpoNkdyoOy6prVMLNF4pQnomQMoOxJsQeA-eoLsDMGCJwI2Z6tkYGsEtv9M5_V8oNmR92wNTM6uUJU1SdyqfdtMbTXUsmyaRrbTtkaqVD0MlSybrSz_Nj_2sMjTiQybGQZSMtXD9ZvhP0kPjlZ7pvGW7ct-9-j4pMnn3wJ-uNIuquJH6Y8P8gKbsSvHtmzlhrpts93tm6Le15ulq3ZDXUoah7LAhkpZjrtiO1ZthTvVNDRuuMMCq6LGfVFhW9X5UNWVrKuaJE2DKlBUBa2Sda71ec2tmzfsfaSuLesCN1oOpP1VRBANPcHVKBCTprguxWRDnL2oCs0--D9RAgdN3X9ZT2AD3q4EnkI8-U10unsrRDOHJQ6vgpMyvv6yk7NfSQWB_bXOpCK3Ps4d_hYAAP__NCmYug">