Package: clang-16 
Severity: normal 

Dear Maintainer, 

the problem initially was described in # 1060887 but postgres maintainer told 
me, it's a clang problem. So, here I am. 


The minimal reproducible example of debian/control follows: 

Source: cross-deps-problem 
Build-Depends: debhelper (>= 13.3.4), postgresql-server-dev-16 
Section: libs 
Priority: optional 
Standards-Version: 4.3.0 

So I start with official debian:trixie docker image on amd64 host with the 
following commands: 

# dpkg --add-architecture armhf 
# apt-get update 
# apt-get dist-upgrade 
# apt-get -o APT::Get::Build-Dep-Automatic=yes -o Debug::pkgProblemResolver=yes 
build-dep --host-architecture=armhf -y . 

which yields: 

Note, using directory '.' to get the build dependencies 
Reading package lists... Done 
Building dependency tree... Done 
Reading state information... Done 
Starting pkgProblemResolver with broken count: 1 
Starting 2 pkgProblemResolver with broken count: 1 
Investigating (0) clang-16:armhf < none -> 1:16.0.6-19 @un puN Ib > 
Broken clang-16:armhf Depends on binutils:armhf < none @un pH > 
Considering binutils:armhf 0 as a solution to clang-16:armhf 0 
Done 
Some packages could not be installed. This may mean that you have 
requested an impossible situation or if you are using the unstable 
distribution that some required packages have not yet been created 
or been moved out of Incoming. 
The following information may help to resolve the situation: 

The following packages have unmet dependencies: 
clang-16:armhf : Depends: binutils:armhf but it is not installable 
E: Unable to correct problems, you have held broken packages. 

Manual installation (i.e. apt-get install clang-16:armhf binutils:armhf) 
succeeds, but it does not help to resolve build-dep issue...

Worth to mention, it also happens in bookworm with clang-14 and bullseye with 
clang-11 (you can find apt diagnostics in #1060887 for that cases too) 

Please help me diagnose and resolve this issue at least in bookworm 

Best, 
Andrey

Reply via email to