Bug#990994: llvm-12-tools cannot be installed for a foreign architecture

Christoph Berg myon at debian.org
Fri Sep 17 14:28:56 BST 2021


Re: Michel Dänzer
> Package: llvm-12-tools
> Version: 1:12.0.1~+rc4-1
> Severity: normal
> 
> llvm-12-tools requires python3 packages from the same architecture. This prevents installing llvm-12-tools (and by extension llvm-12-dev) for a foreign architecture.
> 
> E.g. trying to install llvm-12-tools:i386 with aptitude gives:
> 
>  llvm-12-tools:i386 : Depends: python3:i386 but it is not going to be installed
>                       Depends: python3-yaml:i386 but it is not going to be installed
> 
> See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9833/diffs?commit_id=af0fde955c518447ccd92134517b4e69308e10b2#3f46a9fa9651371b76f0894b75d719a4c5659642_44_45 for how I had to work around this in Mesa's upstream CI.
> 
> (In buster it was still possible to install llvm-*-dev packages for foreign architectures)

The fix for this question is "Depends: python3:any" I believe.

Different take on a related issue:

When cross-compiling, I cannot install clang-11 and llvm-11-dev for
the build-architecture when installing the host-architecture
postgresql-server-dev-13. I think the fix is annotating (some subset
of) the llvm packges with "Multi-Arch: allowed".

Please consider applying these fixes so clang can be used for
cross-compilation.

Thanks,
Christoph



More information about the Pkg-llvm-team mailing list