Bug#1030032: LLVM: should use debian multiarch

Konstantin P. ria.freelander at gmail.com
Mon Jan 30 14:17:24 GMT 2023


Package: src:llvm-toolchain-14
Version: 1:14.0.6-10
Distro: debian bookworkm

I want to cross-compile simple CMake project to mipsel in x86_64 machine. I
found than I cannot co-install LLVM versions from different architectures
by apt into one Debian machine. Even when I do not need llvm-config and any
of llvm binaries of mipsel architecture, only libraries and CMake files, I
cannot install llvm-14-dev:mipsel, because it depends on llvm-14:mipsel,
where all binaries are packaged, and llvm-14:mipsel conflicts with
llvm-14:amd64.

If all libraries and cmake files will be installed in
/usb/lib/DEB_HOST_MULTIARCH/, and will not depend on binaries (or depend on
binaries of "native" arch, if it is absolutely required), then CMake
projects can be compiled and packaged by cross-building with LLVM.

For now, it is not possible.

I found a similar bug,
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897275, as wontfix. But
they are requesting a pkg-config file, which I do not need, I want only
better packaging, when I can use LLVM to cross-compile CMake packages by
installing it using APT without dirty hacks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20230130/61971a6a/attachment.htm>


More information about the Pkg-llvm-team mailing list