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

    <tr>
        <th>Summary</th>
        <td>
            LLDB build fails when python is not at the same prefix.
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          Paul-Ferrell
      </td>
    </tr>
</table>

<pre>
    The `lldb/bindings/get-python-config.py` script fails when the python lib path is not within lldb's prefix, and CMakeLists.txt for LLDB has no backup plan in that case.

The idea that the installed python shares a prefix with LLVM is not a reasonable assumption, particularly on systems where module systems (LMOD, TCL environment modules) are used to install multiple versions of LLVM in tandem. This also breaks installs with the Spack package manager, as all packages are installed in their own independent prefix. 

Tagging @lawrence-danna-apple because he was responsible for the change that broke this.

Note: Where the heck do module systems and Spack get used? On supercomputers, mainly. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdk8ty2zAMRb9G2mCscSX5kYUWSTxeOU1nmmnXoAhJrCmSQ1Jx_PcFZattuqEeJICDi0th5bV5Gwiy7VprKbLyKJSRyvSBX3uKK3eNgzWr1ppO9YW78kEIrVcuQodKB7gMZCByittJ0EqAwziACmBshIuKg-Lfc_ZdAOepUx9Z-QxoJDy_4JlOKsRQxA9OaT2cTocnGDBFg8D2PDlwGg2oVAYjtBioyNaHbP14WxO_koS37YSiTIioNckFKgzoKQDeq89QXOjHy0KJ4AmDNSg0AYYwjS4qaxKmQx9VO2n0-gop1zVEGufGPcFo5cQhy8-s3J9eXg8p7u35BGTelbdmJBPvJ1nXB2AYmALjRbuwwjjpqByneicfuHQA290RuXHWisYC3gbmRR1YGeY9hyU63DpKvX93rBmkBXvGQ8MPP8udIvWyE2aIv0LN6pLyYC9JakmOeGHsm2IFfFIc-549Alm91njxZFpaSTQGV-hSC4Ja5P6AcS5clqV33JBK2qYJJ8x2QMN888iEt-f0qsKnuX61kbLqEX7OQqeggbg1af8XPRnp1jY7dhY2q47wyqOaHPnWjm6KLGoSYURl9LWAXDaVfKgeMI8qampm04lJafmvre_uWTxyM1fAkRZV8snrZojRBQblG5MuDQ9iEgVX5Q-t35fHynn7i9rIn4r9lYxw3Gy3u00-NDW1otrt17Ws5bYUO9FhV--2eyo7ud9QlWsUpEOTbZ6ysjR0gTkFv2ebQ66acl2W611ZfqmrqiyLerPfdFW7E3UrS7F54DERN66LxFFY3-e-mZHExPecZzjfvz-bbH_VG6K5HOfHiVXwzTec9OpI3pPW-Vy_mfl_A6Qid5E">