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

    <tr>
        <th>Summary</th>
        <td>
            LLVMExports.cmake references flangPrintFunctionNames
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            cmake,
            packaging,
            flang
      </td>
    </tr>

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

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

<pre>
    The SPIRV-LLVM-Translator [out-of-tree CI builds](https://github.com/KhronosGroup/SPIRV-LLVM-Translator/actions?query=workflow%3A%22Out-of-tree+build+%26+tests%22+event%3Aschedule) (which rely on Ubuntu nightly packages from apt.llvm.org) recently started failing with:

```
CMake Error at /usr/lib/llvm-17/lib/cmake/llvm/LLVMExports.cmake:1809 (message):
  The imported target "flangPrintFunctionNames" references the file

 "/usr/lib/llvm-17/lib/flangPrintFunctionNames.so"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

 "/usr/lib/llvm-17/lib/cmake/llvm/LLVMExports.cmake"

  but not all the files it references.

Call Stack (most recent call first):
 /usr/lib/llvm-17/cmake/LLVMConfig.cmake:359 (include)
  CMakeLists.txt:82 (find_package)
```

The last known good build used c491c9170239 and the first broken build used 831e99fee90e.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVd2O2zYTfRr6ZrCGRFm2deGLtTf6EHybdtGkuS0ociSxpkiXQ9rrty9Ir91NstuggEGY5Pycc2aGEkR6sIgbVm9Z_TATMYzOb-iI9jjOOqfOmy8jwuenj799vXt8_Prp7osXlowIzgOrty6GO9ffBY8Iu4_QRW0UsfqB8fUYwoFYdc94y3g76DDGbi7dxHj7_9E76-h_3sUD4-2b0RlvhQzaWWJV-1dEf2bVw8n5fW_cifE6Ba45__UfAIxvc37Gt-lq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