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

    <tr>
        <th>Summary</th>
        <td>
            libclang_rt libraries missing in SLES binaries for clang-14
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            packaging,
            regression
      </td>
    </tr>

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

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

<pre>
    When upgrading to clang-14, I stumbled on this problem.
The downloaded binaries https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.0/clang+llvm-14.0.0-x86_64-linux-sles12.4.tar.xz do not contain `libclang_rt*.a` files.
Previous releases had them (e.g. https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.0/clang+llvm-12.0.0-x86_64-linux-sles12.4.tar.xz for SLES
or https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/clang+llvm-13.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz for Ubuntu).

Previous versions had e.g.:
```
$ pwd
/tmp/clang+llvm-12.0.0-x86_64-linux-sles12.4/lib/clang/12.0.0/lib/linux

$ ls
clang_rt.crtbegin-x86_64.o                libclang_rt.hwasan-x86_64.so            libclang_rt.scudo_minimal-x86_64.so
clang_rt.crtend-x86_64.o                  libclang_rt.hwasan_cxx-x86_64.a         libclang_rt.scudo_standalone-x86_64.a
libclang_rt.asan-preinit-x86_64.a         libclang_rt.hwasan_cxx-x86_64.a.syms
...
```

The v14 release binaries have:
```
$ pwd
/tmp/clang+llvm-14.0.0-x86_64-linux-sles12.4/lib/clang/14.0.0/lib

$ ls x86_64-unknown-linux-gnu/
libclang_rt.bu

$ ls i386-unknown-linux-gnu/
libclang_rt.buil
```

Given the extensions of the above files (.bu, .buil), I guess there's some problem with the path length and so the build tasks are not executed.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytVUtv2zAM_jX2RYjgyM7r4EO7rsOAHQZsw46BbDO2GlkK9EjS_fpRdpxkTZqtWA0DFimK_EiRnwtdPec_G1DEb2rDK6Fq4jQpJVf1aJxF7AP5TKzzbSGhIloR1whLNkaj3NIoeYiSu-8NkErvlNS8QqNCKG4EWNI4t7FRehexR3xr4Rpf0FK3KEi5HT4jdPYEpUPRgARuweJy8Hcw0iagoQlNUNGBi9h9d7rXjvbz6XKajaRQfj-yEuyY0Yw6buj-F4IjSjtSauW4UCSaJlIUnZelwbh3lKOKrAQeO6T01cBWaG_JAIk0vMLcoSURmwOt6btnx65mx_6e3Uob8u3Lx289chTeG1l6FVl6iaxWfuQLr5wfMdz8A-GPTh-xxaHCL-q8BWOFVn2dQ30D_t5wmhzeXmQZ2eyqQXh07eYtRQt5ieJ04vFY917dWZ8jDPGk7ddDy9DSuAJqoQ4xqCYvnrP-os2OW340tfo1O1v6Si9boUTL5cn8MjSo6tXA10Ivy_1-OMBvhLaOq4pLreBo3Qc_N-1y2RhAmO620yvBqX1uD7WklF6_3yOlbMfZMH5nnMK38D-tcYMtLlsjO2uNi5YgByderRUOzWkEwthdlK3wVzyIdD795_NC3qjXJ7GFwM1AYI_90Y-SXnUaXugt9OwWyCtAQVbvPbJFz_C1B2uDtYGIzSyxuoWB5ckOGaTztOG4kKBq_GCroFWnDp6QHLldW8INdFwLeyi9g4rGVZ5Wi3TBYyechPwsqdAtpr_WVlgbfj3IzoHKTvcdqGP4GcXeyPzN5IaefUdtk2y-SOMmz_hqxlYZzMazSTqdZOmCpXwxm5cVm8_KeRlLXoC0eTS5jxjb8HLNcdSxIVioFX4M1AbLhTUOuslDLHKWMJZk43Q8YQzbBjgrEpYms6ocl4uSRVkCLReSBmwUSTU2eQez8LXFTSmss6dNjs5rBdBBQP_cu0abvF17U8FT3GWUd-n8Br3DbVQ">