Issue 91263
Summary [MLIR] Installation/Packaging does not include libraries for tblgen-lsp-server and mlir-pdll-lsp-server when building with shared libs
Labels mlir
Assignees
Reporter UtkarshKunwar
    I was setting up my workspace to use a pre-compiled installation of the MLIR project. The rest of the tools are working fine as far as I have tested. The only issue I saw was with the executables for `tblgen-lsp-server` and `mlir-pdll-lsp-server` which I discovered while setting up LSP support for neovim.

**TL;DR:** When installing the MLIR project and building as shared libraries, the libraries `libMLIRPdllLspServerLib.so` and `libTableGenLspServerLib.so` aren't installed. The same behaviour is observe when packaging the project with `cpack`.

# Steps to reproduce

Checkout to the current latest stable tag at `llvmorg-18.1.5`.

## Build

![Screenshot_20240507_004628](https://github.com/llvm/llvm-project/assets/14164924/ee3b61d5-e8e4-4b91-89af-1397d2ef1e33)
I followed more or less the same instructions as [the official documentation](https://mlir.llvm.org/getting_started/). I only added where it should be installed and that I need to build shared libraries to reduce the size of the resulting installation due to space issues.

## Post compilation scenario

![Screenshot_20240507_004806](https://github.com/llvm/llvm-project/assets/14164924/8ce180e8-760e-41fb-99cb-b27bd68539b1)

The executables are built in `build/bin/` and the libraries `libMLIRPdllLspServerLib.so` and `libTableGenLspServerLib.so` are built in `build/lib/` and the binaries run just fine.

## Post installation scenario

![2024-05-07_01-03](https://github.com/llvm/llvm-project/assets/14164924/23d01d9d-ee0b-4950-8af8-14a7bd18fcb2)

![Screenshot_20240507_004918](https://github.com/llvm/llvm-project/assets/14164924/b8b821a6-e0a1-406c-b802-5ba37f384975)

The executables can't find the `.so`s because they aren't installed.

## Packaging scenario

![Screenshot_20240507_005913](https://github.com/llvm/llvm-project/assets/14164924/9e3dc5ff-fc62-43d5-9042-d67d6f2df198)

Packaging using CPack also shows the same behaviour. The same libraries are absent from the package but other libraries are present.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to