On 2024-12-03 23:50, Johannes Schauer Marin Rodrigues wrote:

That's a funky issue. Thank's for not giving and reporting it instead.  It
can actually be reproduced in a quite simplified setting. What you need is
an unstable installation with sbuild and a bookworm chroot. Then go
(Johannes needs to use amd64 instead):

     sbuild -d bookworm --host=arm64 hostname

I tend to use hostname as the most minimal dummy package as it builds
really quickly and if building it fails, something tends to be seriously
broken. When running it, you can see the very same symptom:

      /usr/lib/apt/solvers/apt: /lib/x86_64-linux-gnu/libstdc++.so.6: version 
`GLIBCXX_3.4.32' not found (required by /usr/lib/apt/solvers/apt)
[...]

this should fix it: https://salsa.debian.org/debian/sbuild/-/merge_requests/106

It solves the problem by installing apt-utils:native into the chroot when cross
building. I'd like to avoid installing more packages into a build-chroot that I
would like to have as minimal as possible. But I don't see another way to
properly fix it.
[...]

From my understanding, the fix is in 0.8.8, but I am still unable to crossbuild:

Install main build dependencies (apt-based resolver)
----------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
E: Write error - write (32: Broken pipe)
E: Write error - write (32: Broken pipe)
Execute external solver...
The solver encountered an error of type: ERR_NO_SOLVER\nMessage: The external apt solver doesn't exist. You must install the apt-utils package.\n
The following information might help you to understand what is wrong:
External solver failed without a proper error message

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:
sbuild-build-depends-main-dummy:arm64 : Depends: debhelper-compat:arm64 (= 13)
                                         Depends: fakeroot:amd64
Depends: crossbuild-essential-arm64:amd64
                                         Depends: apt-utils:amd64
                                         Depends: libc-dev:arm64
                                         Depends: libstdc++-dev:arm64
E: External solver failed without a proper error message
E: Sub-process sbuild-cross-resolver returned an error code (1)
apt-get failed.
E: Package installation failed
Not removing build depends: cloned chroot in use

Reply via email to