Hi, Quoting Johannes Schauer Marin Rodrigues (2024-12-01 21:39:59) > > 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) > > > > If instead, -d sid is used or --host=arm64 is dropped, the build readily > > succeeds. > > > > What is happening here is that we strangely mix the apt installations of > > bookworm and unstable. I suspect that we run the outer installation's > > solver but somehow pick up bookworm's libstdc++.so.6 thus lacking > > required symbols. I do not yet understand why this happens. > > > > Johannes/Jochen: > > * Do you agree that this is a bug in sbuild? > > * If yes, do you create a bug report or should I? > > * Do you see what is going on here? > > it's a bug in apt that I introduced in 2022 and it's strangle that it took > this > long before it was found: > > https://salsa.debian.org/debian/sbuild/-/commit/e0cb27671efef0d0c177cbe094dbf6ed1bc8dc68 > > Copying /usr/lib/apt/solvers/apt from outside the chroot into the chroot is a > bad idea. We need to find another solution to make the sbuild-cross-resolver > work.
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. Does anybody else have another idea? Thanks! cheers, josch
signature.asc
Description: signature