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

    <tr>
        <th>Summary</th>
        <td>
            Linux package for LLVM 15 fails due to libpolly conflict since 2023-04-11
        </td>
    </tr>

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

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

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

<pre>
    Apparently getting libclang 15 will also install Polly headers, leading to a conflict when installing all of them from http://apt.llvm.org/focal/

The command for installing is as below:
```
sudo apt-get install -y clang-${{matrix.llvm_version}} llvm-${{matrix.llvm_version}} llvm-${{matrix.llvm_version}}-dev lld-${{matrix.llvm_version}} liblld-${{matrix.llvm_version}}-dev
sudo apt-get install -y libmlir-${{matrix.llvm_version}} libmlir-${{matrix.llvm_version}}-dev mlir-${{matrix.llvm_version}}-tools 
sudo apt-get install -y libpolly-${{matrix.llvm_version}}-dev
 ```
 When the final apt-get is called the following error occurs:
 ```
 Preparing to unpack .../libpolly-15-dev_1%3a15.0.7~++20230315075603+8dfdcc7b7bf6-1~exp1~20230315195652.107_amd64.deb ...
Unpacking libpolly-15-dev:amd64 (1:15.0.7~++20230315075603+8dfdcc7b7bf6-1~exp1~20230315195652.107) ...
dpkg: error processing archive /var/cache/apt/archives/libpolly-15-dev_1%3a15.0.7~++20230315075603+8dfdcc7b7bf6-1~exp1~20230315195652.107_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/llvm-15/include/polly/Canonicalization.h', which is also in package libclang-common-15-dev 1:15.0.7-0ubuntu0.22.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libpolly-15-dev_1%3a15.0.7~++20230315075603+8dfdcc7b7bf6-1~exp1~20230315195652.107_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
First failed build was 2023-04-11, it worked 2023-04-10 with `1:15.0.7~++20230315075603+8dfdcc7b7bf6-1~exp1~20230315195652.107`, failed with `1:15.0.7-0ubuntu0.22.04.1`



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVs2O6ygTfRqyKdkCHNvJIovk9pdVf9KV5m_ZwlCOmSZgAU46s-hnH0F-dVua6ZFao5EiFBuoOqeqTrlECHpnEVek3pD6aSamODi_Muitm3VOnVbrcRQebTQn2GGM2u7A6E4aYXfAajhqY0CY4EDbEIUx8N0Zc4IBhUIfCP8GBoVK16IDAdLZ3mgZ4Tigvd5Ju-mq6yEOuIfeuz0MMY6kWhO-JXwrxlgac9iXzu8I3_ZOCpN26BOh6_P684Ag3X4vrILe-UfbOoAI0KFxx2TxfKmhl19-DJNyIMZY7DDeqBQnyEQLwuek3ZB2sxfR67cM5eWAPmhnSftE2idIr77wXKHwAMaoT5nU3edOJqN_Tdfobm-0_6TXTx7NXD57NjpnAvwtyjFV2T-iDD9kHH5LFRgHhF5bYe5-AkhhDKrznjPGHVMRoffOg5Ny8uFWRR-Mfvc4Cn8p98mOQr5CWZaEb2-gWZ1AvTDC60qwuqRl-074hvANp7yiFatpWze0InyzUL2Ssu3arm8K9o5vI3u_HmLLuql5yWj7IvaqmZcKu-wqA_klu76o9dEvqdb5OBC-YKRafwUAwpd3z2p83ZFqfYnX6J3EELLCvRz0AYHw7UF4wrdSyAHP4k7reTv8W6EifFEU5wwRvrxnNPrTJX3ugP7odUyQW8K3U_BncGlNMmY14VttpZlU4pExE779JqyzWgqj_xBRO1sO-f43OA5aDrkbnRsmJOdih7eOWqQG5uyFN9zzU9Cpm2ycaMl5Seclu8e6UNjd4p3-jCJEhDB1l9jDUQR41bmkuxOkhi9Mor_x7hUtjHrEFIFs8X_JSoAjegS00k02okeVoBt8yOaDAv4T6bygT_x_mrriSv2WtU5bwrcpXuAxTt6iAmEvRSqdwrMermH4QdZb7UOEXugcw0kblYOaABV0XjCWsqsjHJ1_RXV_T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