<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJzNVctu2zoQ_Rp5M7Agy5ZjL7TwI0GLOk3RtEV2BkmNJDY0KZCUHd-vv0PKaZs27aabCgIlvmbOnBkeclOdyzuNYGrwLQJXRjyidSA1CKMrNq6NbRCoBYsKmZO6iSsVcx649C5s3e2-3MJkCi1zwBE1rWAelKqA91JVjiaOOMzUTKpgw2g4SBfNPTEL7nzgRrnoiMGplQqTfAMVuk56BIdHtEyBtxIdeAMnYx-BWdPrCqQnf_TbtAFzLZveMi_JQZIvMG3SCG__ZvXler97u35YfQRyEseu36_Wu-fRJF-m8OkSGlJ0Hz6CdJAU6xYtJsWWzLXedy6ZrpL8ht5G-rbnqTAH6vxAF_Uo9nGNWDlPhFK_65Wiz3QWvCTZNslWQ3ttLaHpO4JLvDwSH8H8sGCeXd6hW6wnWZbkBUGB3bAWNg8PgE8oes-4QkhTchIbLvUAY9j8WVdYS43VS6ataIle4XuL8LSY7-ezb96B6MspNXvT-b1DT9Hv96HvA8uO-quQIdFS9v4wsCQrYdhiTSxqQQhqS4R9dxOegJNGpqsDE60ZftfSC1PhmlKs8J5AUkqHGQqEKfkf8bwgB6FWleRk4pY23-Upo_H7s6Yq9VJcNrpUdF1qAp6fo0MiavFLGFL7fx-8UMbhq4n5R5FHf5cSpOUu2NHGUzGGg_y7knz1NMQ2HFeMJ6gxJAzsxM4kHiQzUXcuOnO72tzdP-zvt-9gkqUkU4x8MW6OUWJ4719InWA6IOL9oRtkrKbKOKN_cWo3G0hmmVLHcPJJxnocu547YSUn9RyH0x8phVFVTqvldMlGrPetsWU7PhI_mlk56q0q_yAoF-vhM-6s-UqcPDsj3m6KWZZNRm1ZzQueUZYrsazyyawu-PKqWE6K4mqGohCzkWIclStJPqgmNJ4gmgj1UWxHf49AlnmWhzfPp9lidpViPZ9nFasnTExwwTMiCg-k-mmwkxLHI1tGk7xvXGBROu--TzK6FBqNGAETQi-9wnK32w45_fECoazCiQC_epNQeT3fHq9o_XR7d0PxLkcxmjKG8j9tO0Fr>54001</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            LLD build failing on OSX with missing xar symbols (despite LLVM_ENABLE_LIBXAR=OFF)
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          h-vetinari
      </td>
    </tr>
</table>

<pre>
    One of the blockers in conda-forge for releasing the last bits of LLVM 13 has been that lld builds have been failing on missing xar symbols for a while, despite several tries to work around it through configuration (e.g. LLVM_HAVE_LIBXAR or LLVM_ENABLE_LIBXAR). The lastest PR is [here](https://github.com/conda-forge/lld-feedstock/pull/34).

Error upon linking:
```
[100%] Linking CXX executable ../../bin/lld
Undefined symbols for architecture x86_64:
  "xar_opt_set(__xar_t const*, char const*, char const*)", referenced from:
      lld::macho::BitcodeBundleSection::finalize() in liblldMachO2.a(SyntheticSections.cpp.o)
  "xar_open(char const*, int)", referenced from:
      lld::macho::BitcodeBundleSection::finalize() in liblldMachO2.a(SyntheticSections.cpp.o)
  "xar_close(__xar_t const*)", referenced from:
      lld::macho::BitcodeBundleSection::finalize() in liblldMachO2.a(SyntheticSections.cpp.o)
ld: symbol(s) not found for architecture x86_64
```

The error goes away when building on MACOSX_SDK 10.13 and above, but conda-forge cannot bump that far yet.

CC @llvm/issue-subscribers-lld-macho 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVNtu4zYQ_Rr5ZWBBF9u1HvTgS4IWdZpis13kzeBlJLGhSYGk7Lhf36HkdDdtus8rCJR4mzlzZuZwK6_1o0GwDYQOgWsrXtB5UAaENZLNG-taBBrBoUbmlWnHk5r5AFwFH68eDl8eIC-hYx44oqETLIDWEvigtPS0ccZpp2FKRxvWwEn50dwrc-CvJ261Hx0xuHRKY1LsQKLvVUDweEbHNASn0EOwcLHuBZ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