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

    <tr>
        <th>Summary</th>
        <td>
            [clang] `intercept-build` can't find its Python modules on a `lib64` system
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    ```pytb
$ intercept-build 
Traceback (most recent call last):
  File "/usr/lib/llvm/20/bin/intercept-build", line 13, in <module>
    from libscanbuild.intercept import intercept_build
ModuleNotFoundError: No module named 'libscanbuild'
```

As the OP pointed out, the code appends a hardcoded `lib` directory:

https://github.com/llvm/llvm-project/blob/c1248c9d64e9210554571283980156b1d85cfe09/clang/tools/scan-build-py/bin/intercept-build#L10-L11

However, the files are installed in suffixed `lib` directory:

https://github.com/llvm/llvm-project/blob/c1248c9d64e9210554571283980156b1d85cfe09/clang/tools/scan-build-py/CMakeLists.txt#L90-L92

I'm going to submit a pull request changing the install directory to `lib` to match. Since these are just Python modules, they don't need multilib.

Original bug report: https://bugs.gentoo.org/938665
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUlMmO4zYQhp-GvhRskNR-0KHTPUIC9CxAcg-4lCTOUKRCUp322weU3EsayCHHAQzapljL__0lihjN5BB7Uv1CqoeT2NLsQ79MPrjrSXp97UlNj896TZLQB0LvCC_BuIRB4ZrOcjNWw_HkjyAUSqF-AOHt4mOCgApdAiWsBStiIrwjxd1xGmAwFoFwTviwxUD4YI3Mq31aCB84JXyQxhE-fCi3h9yDNQ6BFfmncUCK-8XrzSIpPr0UABiDX8AaGZVwe-zlNReYZfUhvWn580i-x37eU33xafCb059C8IEUd_DFw1EEnFhQA-HN--SENzdGL9huf_f1LkKaEb5-g9Xnohr8lnL3eVd5jSDWFZ2OIGAWQectDaSmGUtNQZuAKvlwfUV4rHNKa8x7fCB8mEyaN3lRfnlDmb_Oa_DfUaUM1frMWTFetqrTdYkdZ7SqyqphvC26lrKqlky3lRqRdvmoFW4ifEje20j4kBUfXpzX63_bVDwyen5k7H23v_q_8QnDi-7RWIwgAoJxMQlrUWc34zaO5vlnkX__WfzARxNTvKTnlHV39PzY8fdt_kZ4s8DkjZsgeYibXEwCAetmLQT8a8OYQM3CTfuJ-RXIm_Ac98YjeVhEUvMFfjdOYQ6JuJP8vsUE365p9u42rvGG-wraO8KbBA5Rw7LZZKyRl_eNfg1mMk5YkNsEAfM7kkf_35jlNsXLhC55f_Ehs-mKtq6rk-4L3RWdOGHPGl52VVN09WnuS8mE0LId-ahqxqQaVVcrxRpZVgXH8mR6TnlJW96xtuyq-sJZIZqxYm3OM9KSlBQXYewl25mLnkyMG_aM1jVtT1ZItHG_yji_GcbzrRb63f_cMSmp3V16TZFMsvv9d0RUDxnwxzmuKShxYBuN02BS_IAXvANx86Yuc0C8xoTLaQu2_98DuuvKc3aT9tTzfwIAAP__Zw_IfQ">