cmake advertising wrong mlir-tblgen executable?

Bug #2015299 reported by Seth Arnold
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
llvm-toolchain-15 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello, a friend reports that our LLVM 15 cmake files are advertising a functionality that they can't satisfy:

https://discuss.pixls.us/t/are-the-obs-repos-for-darktable-dead/16928/63

url> asn (Andreas Schneider) March 25, 2023, 4:29pm #76
url>
url> The openSUSE build is fixed, but Ubuntu doesn’t work because of:
url>
url> [ 330s] CMake Error at /usr/lib/llvm-15/lib/cmake/llvm/LLVMExports.cmake:1634 (message):
url> [ 330s] The imported target "mlir-tblgen" references the file
url> [ 330s]
url> [ 330s] "/usr/lib/llvm-15/bin/mlir-tblgen"
url> [ 330s]
url> [ 330s] but this file does not exist. Possible reasons include:
url> [ 330s]
url> [ 330s] * The file was deleted, renamed, or moved to another location.
url> [ 330s]
url> [ 330s] * An install or uninstall procedure did not complete successfully.
url> [ 330s]
url> [ 330s] * The installation package was faulty and contained
url> [ 330s]
url> [ 330s] "/usr/lib/llvm-15/lib/cmake/llvm/LLVMExports.cmake"
url> [ 330s]
url> [ 330s] but not all the files it references.
url>
url> I don’t know what provides mlir-tblgen now, but it looks like something changed on Ubuntu.
url>
url> Someone with Debian/Ubuntu knowlege who can shed some light on this?

That cmake file appears to come from one package:
$ apt-file search /usr/lib/llvm-15/lib/cmake/llvm/LLVMExports.cmake
llvm-15-dev: /usr/lib/llvm-15/lib/cmake/llvm/LLVMExports.cmake

but the mlir-tblgen comes from another package:
$ apt-file search mlir-tblgen
llvm-13: /usr/share/man/man1/mlir-tblgen-13.1.gz
llvm-13-doc: /usr/share/doc/llvm-13-doc/html/CommandGuide/mlir-tblgen.html
llvm-13-doc: /usr/share/doc/llvm-13-doc/html/_sources/CommandGuide/mlir-tblgen.rst.txt
llvm-14: /usr/share/man/man1/mlir-tblgen-14.1.gz
llvm-14-doc: /usr/share/doc/llvm-14-doc/html/CommandGuide/mlir-tblgen.html
llvm-14-doc: /usr/share/doc/llvm-14-doc/html/_sources/CommandGuide/mlir-tblgen.rst.txt
llvm-15: /usr/share/man/man1/mlir-tblgen-15.1.gz
llvm-15-doc: /usr/share/doc/llvm-15-doc/html/CommandGuide/mlir-tblgen.html
llvm-15-doc: /usr/share/doc/llvm-15-doc/html/_sources/CommandGuide/mlir-tblgen.rst.txt
mlir-13-tools: /usr/bin/mlir-tblgen-13
mlir-13-tools: /usr/lib/llvm-13/bin/mlir-tblgen
mlir-14-tools: /usr/bin/mlir-tblgen-14
mlir-14-tools: /usr/lib/llvm-14/bin/mlir-tblgen
mlir-15-tools: /usr/bin/mlir-tblgen-15
mlir-15-tools: /usr/lib/llvm-15/bin/mlir-tblgen

Is our llvm-15-dev missing a Dependency:? Or should this .cmake file be split apart to only advertise the services that it offers? Or something else?

Thanks

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in llvm-toolchain-15 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.