From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7240003360844152832 X-Received: by 2002:a4a:a8cb:0:b0:552:4bca:a9df with SMTP id r11-20020a4aa8cb000000b005524bcaa9dfmr476873oom.3.1686028000099; Mon, 05 Jun 2023 22:06:40 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a4a:e90c:0:b0:555:4fa3:82ce with SMTP id bx12-20020a4ae90c000000b005554fa382cels1479255oob.0.-pod-prod-09-us; Mon, 05 Jun 2023 22:06:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lwp3bhXCsY/T4amCkcP0oIoHQOhk/zDMHovKRTmB56aKytqvDZQyt3UvmYrLxPI4vh9JI X-Received: by 2002:a05:6808:48a:b0:39a:9ea1:ce8e with SMTP id z10-20020a056808048a00b0039a9ea1ce8emr1028379oid.5.1686027999479; Mon, 05 Jun 2023 22:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686027999; cv=none; d=google.com; s=arc-20160816; b=DTP/TXMeSU8NWn1so9j0ipF5muVdfXRu2mRASLTy83sWCBsARIilWXuyoVrDJs/ooX rYjDbEl4dOaQIEF8gNoMM/0Iww62AcvAZ0sLaCQA2hJQGjwFaDIYDuOtJ3dNaiDfvcXW 3g7aJNan2gOiwacqumUtcYvZu2WvGMz8gTKznFxwWR6AHDs/NJw7yBWjWtMU6yKk7bty zQ7nCyrWC+2w80aSckOe0e2h10q5GIJIHY5Da+XOD+DEp90ePqJd82WIru/B+Ge9q36i 6WLZeprA0XgA1s0PeiTNhg7Uo+g3DJTadOPJDQhj8x7il2wAVB3KshSwJxeadjqll7Nb ENmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=D7bnQ80xPqu8Y63nYQ1AxG5PErp4ffAyG98ZiKldiKY=; b=NSl9FuuMwXnI5TcENwGqCT67CbqTcG0kpFHMno8FG4n3jpArgWl6bxpZ2j6b6tlCX4 V8w68enZa6a1D/nQOSJRsRqW4U0VLRfLBN8I+HoP0Za4JvSPJiWwioqPtwDo3FKVKCHG wz8z4xoa/8aRVh0NVzmi+9KE08t27gMBgVJapSF5xuxnPky1FDQSdQQxDuY3f2jP0Zp4 afhIn77HcyxnovBuW5vvPmCgzatVznbMAQPXYk/BtsZwsqKDiPSrROnRjMUNpKtfL0tJ es0J26ijodyqpSZevXUcRwsMT10uoid1Sh3SrX8PX5dVBm+3ZAFvP9dSLX8QMt4kP5zq zMPA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id bd35-20020a056808222300b00397f6d5e8a2si914486oib.0.2023.06.05.22.06.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Jun 2023 22:06:39 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 35656Ujs030486 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 6 Jun 2023 07:06:32 +0200 Message-ID: <10b2a41239052aa722212adf003f312023f8cf41.camel@ilbers.de> Subject: Re: Cross-build issues over bookworm host for non-bookworm targets From: Uladzimir Bely To: Jan Kiszka , isar-users Date: Tue, 06 Jun 2023 08:06:29 +0300 In-Reply-To: References: <3a8429a8fa9ad793a6681c35d3648f9884084d88.camel@ilbers.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.2 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: 29au5hAjJVbd On Mon, 2023-06-05 at 06:40 +0200, Jan Kiszka wrote: > On 02.06.23 18:59, Uladzimir Bely wrote: > > On Fri, 2023-06-02 at 10:30 +0200, 'Jan Kiszka' via isar-users > > wrote: > > > Hi all, > > >=20 > > > the kas-isar:next build container is now based on bookworm, and > > > that=20 > > > seems to reveal some issues around cross-building over that host. > > > I've=20 > > > not reproduced that with two layers, meta-iot2050 and isar-cip- > > > core. > > > The=20 > > > latter builds fine natively, e.g. qemu-amd64, but it fails once=20 > > > switching to qemu-arm64 e.g. BUT: bookworm as target is fine > > > again. > > >=20 > > > Some exemplary splat: > > >=20 > > > ERROR: Logfile of failure stored in: /build/tmp/work/cip-core- > > > bullseye-arm64/sshd-regen-keys/0.4- > > > r0/temp/log.do_dpkg_build.14055 > > > Log data follows: > > > > DEBUG: Executing python function sstate_task_prefunc > > > > DEBUG: Python function sstate_task_prefunc finished > > > > DEBUG: Executing python function do_dpkg_build > > > > DEBUG: Executing shell function schroot_create_configs > > > > DEBUG: Shell function schroot_create_configs finished > > > > DEBUG: Executing shell function dpkg_runbuild > > > > sbuild (Debian sbuild) 0.85.0 (04 January 2023) on 76d4480b6118 > > > >=20 > > > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > =3D=3D=3D=3D > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ > > > > > sshd-regen-keys 0.4 (arm64)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Fri, 02 = Jun 2023 > > > > > 08:27:29 +0000 | > > > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > =3D=3D=3D=3D > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ > > > >=20 > > > > Package: sshd-regen-keys > > > > Version: 0.4 > > > > Source Version: 0.4 > > > > Distribution: isar > > > > Machine Architecture: amd64 > > > > Host Architecture: arm64 > > > > Build Architecture: amd64 > > > > Build Profiles: cross > > > > Build Type: binary > > > >=20 > > > > I: NOTICE: Log filtering will replace > > > > 'var/run/schroot/mount/isar- > > > > builder-80876582-28a6-4cef-89cf-0c1aacac137d-14055-caaa44a8- > > > > 48f9- > > > > 4b91-bf10-b777cbca86a3' with '<>' > > > >=20 > > > > +-------------------------------------------------------------- > > > > ---- > > > > ------------+ > > > > > Chroot Setup > > > > > Commands=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > > > > > =C2=A0=C2=A0 | > > > > +-------------------------------------------------------------- > > > > ---- > > > > ------------+ > > > >=20 > > > >=20 > > > > echo "Package: *\nPin: release n=3Disar\nPin-Priority: 1000" > > > > > /etc/apt/preferences.d/isar-apt > > > > --------------------------------------------------------------- > > > > ---- > > > > ------------------------- > > > >=20 > > > >=20 > > > > I: Finished running 'echo "Package: *\nPin: release > > > > n=3Disar\nPin- > > > > Priority: 1000" > /etc/apt/preferences.d/isar-apt'. > > > >=20 > > > > echo "APT::Get::allow-downgrades 1;" > > > > > /etc/apt/apt.conf.d/50isar- > > > > apt > > > > --------------------------------------------------------------- > > > > ---- > > > > -- > > > >=20 > > > >=20 > > > > I: Finished running 'echo "APT::Get::allow-downgrades 1;" > > > > > /etc/apt/apt.conf.d/50isar-apt'. > > > >=20 > > > > rm -f /var/log/dpkg.log > > > > ----------------------- > > > >=20 > > > >=20 > > > > I: Finished running 'rm -f /var/log/dpkg.log'. > > > >=20 > > > > ln -sf /home/builder/sshd-regen- > > > > keys/rootfs/var/cache/apt/archives/*.deb -t > > > > /var/cache/apt/archives/ || : > > > > --------------------------------------------------------------- > > > > ---- > > > > -------------------------------------- > > > >=20 > > > >=20 > > > > I: Finished running 'ln -sf /home/builder/sshd-regen- > > > > keys/rootfs/var/cache/apt/archives/*.deb -t > > > > /var/cache/apt/archives/ || :'. > > > >=20 > > > > Finished processing commands. > > > > --------------------------------------------------------------- > > > > ---- > > > > ------------- > > > > I: NOTICE: Log filtering will replace 'build/sshd-regen-keys- > > > > AuXR83/resolver-Ms1W52' with '<>' > > > >=20 > > > > +-------------------------------------------------------------- > > > > ---- > > > > ------------+ > > > > > Update > > > > > chroot=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > > > > > =C2=A0=C2=A0=C2=A0=C2=A0 > > > > > =C2=A0=C2=A0=C2=A0=C2=A0 | > > > > +-------------------------------------------------------------- > > > > ---- > > > > ------------+ > > > >=20 > > > > Reading package lists... > > > > Building dependency tree... > > > > Reading state information... > > > > Calculating upgrade... > > > > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > > > >=20 > > > > +-------------------------------------------------------------- > > > > ---- > > > > ------------+ > > > > > Fetch source > > > > > files=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > > > > > =C2=A0=C2=A0 | > > > > +-------------------------------------------------------------- > > > > ---- > > > > ------------+ > > > >=20 > > > >=20 > > > > Local sources > > > > ------------- > > > >=20 > > > > /build/tmp/work/cip-core-bullseye-arm64/sshd-regen-keys/0.4- > > > > r0/sshd-regen-keys_0.4.dsc exists in /build/tmp/work/cip-core- > > > > bullseye-arm64/sshd-regen-keys/0.4-r0; copying to chroot > > > > I: NOTICE: Log filtering will replace 'build/sshd-regen-keys- > > > > AuXR83/sshd-regen-keys-0.4' with '<>' > > > > I: NOTICE: Log filtering will replace 'build/sshd-regen-keys- > > > > AuXR83' with '<>' > > > >=20 > > > > +-------------------------------------------------------------- > > > > ---- > > > > ------------+ > > > > > Install package build > > > > > dependencies=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | > > > > +-------------------------------------------------------------- > > > > ---- > > > > ------------+ > > > >=20 > > > >=20 > > > > Setup apt archive > > > > ----------------- > > > >=20 > > > > Merged Build-Depends: debhelper (>=3D 10), build-essential:amd64, > > > > fakeroot:amd64, crossbuild-essential-arm64:amd64, libc- > > > > dev:arm64, > > > > libstdc++-dev:arm64 > > > > Filtered Build-Depends: debhelper (>=3D 10), build- > > > > essential:amd64, > > > > fakeroot:amd64, crossbuild-essential-arm64:amd64, libc- > > > > dev:arm64, > > > > libstdc++-dev:arm64 > > > > dpkg-deb: building package 'sbuild-build-depends-main-dummy' in > > > > '/<>/apt_archive/sbuild-build-depends-main- > > > > dummy.deb'. > > > > Ign:1 copy:/<>/apt_archive ./ InRelease > > > > Get:2 copy:/<>/apt_archive ./ Release [609 B] > > > > Ign:3 copy:/<>/apt_archive ./ Release.gpg > > > > Get:4 copy:/<>/apt_archive ./ Sources [683 B] > > > > Get:5 copy:/<>/apt_archive ./ Packages [726 B] > > > > Fetched 2018 B in 0s (0 B/s) > > > > Reading package lists... > > > > Get:1 file:/home/builder/sshd-regen-keys/isar-apt/cip-core- > > > > bullseye-arm64/apt/cip-core-bullseye isar InRelease > > > > Ign:1 file:/home/builder/sshd-regen-keys/isar-apt/cip-core- > > > > bullseye-arm64/apt/cip-core-bullseye isar InRelease > > > > Get:2 file:/home/builder/sshd-regen-keys/isar-apt/cip-core- > > > > bullseye-arm64/apt/cip-core-bullseye isar Release [4994 B] > > > > Get:2 file:/home/builder/sshd-regen-keys/isar-apt/cip-core- > > > > bullseye-arm64/apt/cip-core-bullseye isar Release [4994 B] > > > > Get:3 file:/home/builder/sshd-regen-keys/isar-apt/cip-core- > > > > bullseye-arm64/apt/cip-core-bullseye isar Release.gpg > > > > Ign:3 file:/home/builder/sshd-regen-keys/isar-apt/cip-core- > > > > bullseye-arm64/apt/cip-core-bullseye isar Release.gpg > > > > Reading package lists... > > > > Reading package lists... > > > >=20 > > > > Install main build dependencies (apt-based resolver) > > > > ---------------------------------------------------- > > > >=20 > > > > Installing build dependencies > > > > Reading package lists... > > > > Building dependency tree... > > > > Reading state information... > > > > /usr/lib/apt/solvers/apt: /lib/x86_64-linux-gnu/libc.so.6: > > > > version > > > > `GLIBC_2.34' not found (required by /usr/lib/apt/solvers/apt) > > > > Execute external solver... > > > > E: Write error - write (32: Broken pipe) > > > > E: Write error - write (32: Broken pipe) > > > > E: Sub-process sbuild-cross-resolver received signal 13. > > > > apt-get failed. > > > > E: Package installation failed > > > > Not removing build depends: cloned chroot in use > > >=20 > > >=20 > > > "/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not > > > found", > > > that looks suspicious. > > >=20 > > > Are we leaking something from the host into the sbuild env that > > > falls > > > apart here? Are we missing a dependency for the sbuild env? Or is > > > there=20 > > > a fundamental incompatibility in bookworm?=20 > > >=20 > > > Jan > > >=20 > > > --=20 > > > Siemens AG, Technology > > > Competence Center Embedded Linux > > >=20 > >=20 > > Adding "apt-utils" to SBUILD_CHROOT_PREINSTALL_COMMON=C2=A0 in > > `meta/recipes-devtools/sbuild-chroot` seems to solve the issue. > >=20 > > This package provides `/usr/lib/apt/solvers/apt` in sbuild-chroot.=20 >=20 > Can you also explain why adding that resolves the specific error > above? > So far, apt-utils was not needed. Is some script different that comes > with the host sbuild package? I'm still concerned that some binary of > the host leaks and would like to see that ruled out. >=20 > Jan >=20 I've looked through the issue and that's what I found. It seems to be related to new apt solver they use for cross-building (addded in https://salsa.debian.org/debian/sbuild/-/commit/696e963). For older sbuild (e.g., bullseye-based sbuild-chroot) we have the only `dump` solver belonging to apt package: ``` builder@c8c24e2a0203:/build$ ls -1 /usr/lib/apt/solvers/ dump builder@c8c24e2a0203:/build$ dpkg -S /usr/lib/apt/solvers/* apt: /usr/lib/apt/solvers/dump ``` With newer sbuild (e.g., for ookworm-based sbuild-chroot) we have three solvers availabler: ``` builder@834442924aa6:/build$ dpkg -S /usr/lib/apt/solvers/* apt-utils: /usr/lib/apt/solvers/apt apt: /usr/lib/apt/solvers/dump sbuild: /usr/lib/apt/solvers/sbuild-cross-resolver ``` The last one is enabled when cross-building. And since new sbuild has a strict dependency on apt-utils (ia "sbuild =3D> libsbuild-perl =3D> apt- utils" chain; in bullseye it was just "recommended"), it makes us add apt-utils package inside cross-build environment. Uladzimir