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

    <tr>
        <th>Summary</th>
        <td>
            LLVM 18.1.8 breaks paths for sanitizers in connection with Rust
        </td>
    </tr>

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

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

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

<pre>
    My project is using Rust together with clang and the address sanitizer. Both the build orchestration and the linker invocations are done by cargo which is based on LLVM 18.1.7.

I install llvm via `apt.llvm.org` and when I do that now I get  version 18.1.8, I found no way to pin it to a specific LLVM version. To me it seems that the paths of the static ASAN libraries have changed with the newest patch release, I get the following error:

```
ld: error: cannot open /usr/lib/llvm-18/lib/clang/18/lib/linux/libclang_rt.asan_static-x86_64.a: No such file or directory
ld: error: cannot open /usr/lib/llvm-18/lib/clang/18/lib/linux/libclang_rt.asan-x86_64.a: No such file or directory
```
But in reality the libraries are now in `/usr/lib/llvm-18/lib/clang/18/lib/x86_64-pc-linux-gnu` under different names.

Such a breaking change is surprising for a patch release, especially if there is no real possibility to install an older version.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VMGO4zYM_RrnQsSw5YzjHHzIdBFggN09dIteB7RM2-wokiHKyaZfX0jOZLftaS4LGAJoktIj-fhQhEdL1GZPz9nTpw0uYXK-fcPzYpxsOtff2i83mL37i3QAFliE7Qi_LxIguJHCRB6uHCbQBu0IaHsIEwH2vScRELQc-G_yOTy7MCVft7DpwXk9kQSPgZ195Bm2b-SB7cXp5BFAT9A7S9DdQKMfHVwn1lME06FQD87C589_foGyyct8n2fFp6w4rucLsJWAxoAxlzNcGCGrC5xDHu3c-TGri_T4dSILL9A7CBMGsO4KLzBSALiQlwgxXd9k6jd4gcEttgfr4Io3CA5mtsCxI4AgM2keWK-g7tk5_OHgTDFIiM6yvhIrnjFMAm5IhgQMrOH47fgVDHcePZPAhBcCPaEdqV-bHWMtXUlCzNcTeDKEQiu6CDtGDM4Yd43zIu-dz6rjz73J6uL-JdP0WXV8BIJGa10AN5OFTJ0W8Zk6Ge7iaS7nbdk87DT5TJ1--mXYLt9XK3lffchR0L6uBW6_N_VrvcsxvvTVgSx6goENgfPQsycdnL_9QlwfAfSfvj0vAdiCJzQcbncSv08ucjdSiW3k3cfxrrC2s94m5NvRLpGwi-0p4hoG8mQDWDyT_Iv432IBCJ0nfIsEWNkTd0YWP3tOWzw4D_h_AlFiMBpzA0609CnRulQkzE6EO16rdY8FQwvORFjvjN_0bdUfqgNuqC33ZVNX1e7QbKYWC8RuT2WlK1UOxaF6amqs66bpukFRozbcqkLtirrcl7uyrJq8aw67rquQCjyouiizXUFnZPPY4g2LLNQenvYHtTHYkZEkaUpZukJyZkpFhfNtanu3jJLtCsMS5MctgYOh9oeYNGsD5b6ksV8PQZM4VO2sJZ0ULO1l1MXN4k07hTBLXDh1ytRp5DAtXa7d-T729-nfhTVTp4RRMnVaa7i06p8AAAD___-02po">