From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7240003360844152832 X-Received: by 2002:a05:6214:2aa5:b0:625:aa49:19f0 with SMTP id js5-20020a0562142aa500b00625aa4919f0mr11787995qvb.61.1685725169963; Fri, 02 Jun 2023 09:59:29 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ad4:4e69:0:b0:626:3bf3:c6bb with SMTP id ec9-20020ad44e69000000b006263bf3c6bbls383292qvb.1.-pod-prod-04-us; Fri, 02 Jun 2023 09:59:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6FXJOeapjdor16VXUE18Hdz/JtaynQq4Ok4QdO/38a5wPQXna85IlO7L4x3JyLYTp/TGOD X-Received: by 2002:a1f:4805:0:b0:453:4cf2:780f with SMTP id v5-20020a1f4805000000b004534cf2780fmr2682120vka.3.1685725168986; Fri, 02 Jun 2023 09:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685725168; cv=none; d=google.com; s=arc-20160816; b=A2Dh45z3nuDrDpTkkyjkyuELhWM1LxjL5JjXS0es54yWoPdCd6Slq05ILgfcRWk9N/ VBTm0oCMdd5FfV9JjLkwSNE7SmQ6VeeXCH9fPIydsHHxQR7Z0gLVXxmhjWdAIGOdQwsn KbwZ4I0jjgca3qMY4Pnp+76WmsMAM23jx1J8lGpY0T9LnxeZFUnnM4PW2WnR/IREFkMs mBhPwv5ShQ+k2PyJZaNrfdTgOmKv/kTwJyOcjBml5abX7q8xTrJzsoTz53rSUWXvGNUJ NXfzn4SR7o0gnYvzfkD+/yQPV6Qz8LzCkXR16AUe19729MnOd8S3r0JPgl3EhDzRoQc0 qJmA== 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=R0iO1kHEyvf1N+cptRKq6FWPB5tvb1MAQzsslbcQGQ4=; b=gY8mb5qGtTkVC41fK69jfvURFfPZg77kMp9Bo624gKvn8nczRrzNYTYDGujjdfM9Ua yHDdUgdIkWRv5fDRsY3hIrW7uFMtDgRoin6T1arH4HAyULBJo8qG2zpR3JZamuP3kSqT 2+3Rb35mDLBUxvFEGTmTTO6eqObZJzwiB099hUFVwp25ikNrFKz5OmZxad7gfjFdP4lC EcxSm+e8kRTX2hS/skMQkku8FgnwN2Uj1spXLyINuT5wQgp7EXg+keaAUfRQXbJpIXNK mD5J1LsPjApWx1APvG8KF06f8l8octAbqxXw7fxbLwBESKNS2EOPkqH7+WP2k5W1E/WU iMuQ== 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 e6-20020a056122040600b004572e8f235esi217149vkd.1.2023.06.02.09.59.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Jun 2023 09:59:28 -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 352GxLma005734 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Jun 2023 18:59:22 +0200 Message-ID: <3a8429a8fa9ad793a6681c35d3648f9884084d88.camel@ilbers.de> Subject: Re: Cross-build issues over bookworm host for non-bookworm targets From: Uladzimir Bely To: Jan Kiszka , isar-users Date: Fri, 02 Jun 2023 19:59:11 +0300 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1 (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: ySFtenAew30J 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 20= 23 > > > 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 Adding "apt-utils" to SBUILD_CHROOT_PREINSTALL_COMMON in `meta/recipes-devtools/sbuild-chroot` seems to solve the issue. This package provides `/usr/lib/apt/solvers/apt` in sbuild-chroot.=20