cmake advertising wrong mlir-tblgen executable?
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:/
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/
url> [ 330s] The imported target "mlir-tblgen" references the file
url> [ 330s]
url> [ 330s] "/usr/lib/
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/
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-dev: /usr/lib/
but the mlir-tblgen comes from another package:
$ apt-file search mlir-tblgen
llvm-13: /usr/share/
llvm-13-doc: /usr/share/
llvm-13-doc: /usr/share/
llvm-14: /usr/share/
llvm-14-doc: /usr/share/
llvm-14-doc: /usr/share/
llvm-15: /usr/share/
llvm-15-doc: /usr/share/
llvm-15-doc: /usr/share/
mlir-13-tools: /usr/bin/
mlir-13-tools: /usr/lib/
mlir-14-tools: /usr/bin/
mlir-14-tools: /usr/lib/
mlir-15-tools: /usr/bin/
mlir-15-tools: /usr/lib/
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
Status changed to 'Confirmed' because the bug affects multiple users.