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

    <tr>
        <th>Summary</th>
        <td>
            [LTO]"libpython3.8.a: error adding symbols: Archive has no index; run ranlib to add one" 
        </td>
    </tr>

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

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

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

<pre>
    Acutual Result
![image](https://github.com/llvm/llvm-project/assets/137890639/e2f2d7b7-508d-47ee-96e9-9afa103e2345)

When I use LLVM Clang to compile Python source code and build Python, it shows this error. But if I use gcc to compile and build it, it passes. The version of Clang is the latest.
Anyone knows how to solve it?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkk9vnDwQhz-NuYwWGRsMHDiwiZBeKdFbVVF7NvYAbr32yn823W9fQbZKr73Yh7Ee_2bmkTGa1SEOpDmT5rmQOW0-DG9Gunt-7UUxe30fRpVTlha-Ysw2EfpM6EhYRZqzucgVSfNMWLeldI2Ej4RNhE2rSVueS-UvhE3W3v5cp2vwP1AlwiYZI6ZI2FTxtuup4D1hE7KF6XZuTw3t9KluEU-9wP7Uy0VWlCPjdUNY_8hwnN83dPAf5Ijw8vLtFZ6sdCskD8pfrsYifLmnzTuIPgeFoLxGkE7DnI3VjyJhT2ASxM2_R0ibiYAh-FDCOScwywO_KvU39xNi0gNw3ZuKJbxtCDcM0XgHfnlEMjsawcqEMZUf4Ud39w7hp9s_3vz7zo_e3nBn8unjUaEHrnveywKHSnRtJ2rRV8U2KFqLhXa1YigkbShXEinHrtVKzyhFYQZGGaeCtVVVdVVVqop1WrNuaXERi55JTfEijS335ZQ-rIWJMeMgeFOLwsoZbTzkYMzhOxxFwtjuShiOhc55jaSm1sQUPynJJHtY9fL2_-EHs2a-HrPmZVdKwsePEYPU2rgV4v0ye7sLBGNQm7khbDKC82Ccxl-EnyFkB0E6a-Z9SlJr8G4PA0UOdvhn_45edv-OXn8HAAD__-Uq-HM">