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

    <tr>
        <th>Summary</th>
        <td>
            [llvm-shlib] MSBuild failure building exports
        </td>
    </tr>

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

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

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

<pre>
    On Windows 10, Visual Studio 2019, building with MSBuild, it reported the following.

"The build of 'C:\whatever\LLVM-C.def.rule' depends on 'C:\whatever\LIBLLVM-C.EXPORTS' which is produced by the build of 'C:\whatever\libllvm-c.exports.rule'. The items cannot be built in parallel."

"The build of 'C:\whatever\LLVM-C_exports.rule' depends on 'C:\whatever\LLVM-C.DEF' which is produced by the build of 'C:\whatever\LLVM-C.def.rule'. The items cannot be built in parallel."

After that, it tried to run gen-msvc-exports.py, which failed to find its input file.

This has the feel of a circular or missing dependency.

Note that `libllvm-c.exports` is the file generated by the `gen-msvc-exports.py` script,
see `llvm\tools\llvm-shlib\CMakeLists.txt`. Is that file maybe not specified as an output of the build step?

I'd try to dig deeper but my CMake-fu is non-existent. I can try things out in my environment if that would help.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVF9vpDYQ_zTel9EiY5YleeDhsrmVIiW9qomufasMHpZpjY3scTb77StD0sv1-ke6voAAz8zvH6NjpJNDbEV9I-rbjU48-tDO_uTr603nzaX95OBncsafI5RSqAN8ppi0hUdOhjwoWV7nt10ia8id4Ew8wsPjTX7OH4gh4OwDowEeEQZvrT-TOxVC3gr54fWq1NOIaxfwAwjVHET1QdSH86gZnzGI-nB___lheygMDkVIFoVqwOCMzkTw7h9K7m5eqz7-8uOnn54ec9F5pH4EijAHb1KPBrrLgu3fx1vqrH2etn2BL5lQfENRQMZOjFOEXjvnGbq1GQM5mHXQ1qIthFLfyfnXv0z8b94r6duPx_9B-Fu9v5Pph4ExAI-aXxPBgXIcPITk4IRuO8XnfvtGcr7kYyvoQZNdjw7kDBBHIDcnhoEsfhWhp5EijDquKUO0mZeGnkKfrA7gA0wUY87oqh66_vJVhx8844ISxF5-47bYyyzh0p0sZtgYNH8RU-zl31HZS4h9oDlzX-dEXA7n9qI-sPc25njlaXG01In6cHjQv-M9RY4Fv7DYywLu4optGT7pS4eQ9Y8z9jRkOXUE7cAnzvL44Z3BkXEW1fE91zuhGgMcLllaQ1kTnDFAlximCyzzt0PKjJ13W3yhyOi4gLts_Fo4kjvFPDB7P10A3TMF7yZ0DDSsaM8-WQMj2rnYmLYy19W13mBbNlLKRlVltRnbqtuXQzVcoW4arEx_1aHW-072gzQD6m5DrZKqKsuyLq_Kq0oWdd3vStk0za4eurJCsZM4abJFFrHw4bShGBO2jdoptbG6QxvfdlxoF6W7dIpiJ-2i8Z9lTGyXbfjejdu3fbakMQX8su1efd6kYNuReY75J1JHoY4n4jF1Re8noY6L1ettOwf_G_Ys1HHBGIU6LjD_CAAA__9-c9AV">