From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6680483261914808320 X-Received: by 2002:ac2:5143:: with SMTP id q3mr7783012lfd.169.1556191340970; Thu, 25 Apr 2019 04:22:20 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9f14:: with SMTP id u20ls693595ljk.16.gmail; Thu, 25 Apr 2019 04:22:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyr6Cwu2B+4fPnOI+AKdBxlSyeHzy1fwzq1UZIBhKPcpBzjZBZE2RLAu8LtcMnYZS7+mNf+ X-Received: by 2002:a2e:815a:: with SMTP id t26mr2626697ljg.157.1556191340438; Thu, 25 Apr 2019 04:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556191340; cv=none; d=google.com; s=arc-20160816; b=lsKihc5JzDqP357Ifw1o6EvxO7vXBU6VY2HGiVc3DPlyL3FMbrX0sniXKQfHx9CMiM GlqKhSJ8WwPcoF/1cLsqK4IRXa4g9vQM9x7yWdSJ5uB6cU5sNS4T+jXLWhedbyUBPEVu OAOt0kXxJPhjTMyKP+GgFZTu6/eipJnhM5PanVbYnD+jz+E67JFS2xI0St1HuDxUtlAW Amsw699JQi7stJblDyHRTImU51YB28B1GScu/Q2EGp1+UswIv3/t8gSzMNO5gSUamaOP B0t6CONTA+oZ0O9hQtJ6FVWIaZTWH1sWZaXBn7Q9Nldh9ML+CAukhO8579F6O6bHu5IK zc8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:from:subject; bh=zBRkjpi7ayiuVVpzrFJzPNV9FG5fwanz5oD0Vnwhbwo=; b=kxJxnuKlifjZSVo1StyTVjWEEgrZy4RrnspqDYwb1pvAUSLFEqVEB+ov7D+CwRc41z azHqXhVLQuibety64S2rvxfFq3ywgjPfrWdZk5h6DUpkioP0GoEQ/s4hck1KDa9l7ZBS s2nPHj5p7M1k530f3f8U/xcRa+28+ZWu7kZzohocfgUJumK+chF13KoxZp0cqKOLusCW Xus3+9SK0q8f5PvX4UfSKkMBulWUCDRmVMxJvtvGj/nULDGgi9ST1fio4JKx2gWov8My jXaPyacFyPBw16CTlXKERkMQnWcVSrdeIl8E128vB8gXk2P+0rBhqDDezXMF12UHsatq DIGA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id u30si358038lfn.4.2019.04.25.04.22.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 04:22:20 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x3PBMJ5d027353 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 25 Apr 2019 13:22:19 +0200 Received: from [139.25.69.232] (linux-ses-ext02.ppmd.siemens.net [139.25.69.232]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x3PBMJEa008952 for ; Thu, 25 Apr 2019 13:22:19 +0200 Subject: Re: [PATCH v3 0/8] Cleanup rootfs creation From: Claudius Heine To: isar-users@googlegroups.com References: <20190424092734.14167-1-claudius.heine.ext@siemens.com> <33359f72-d7d0-0d41-051d-da9885bd7354@ilbers.de> <0523bc46-f96e-d4d0-1828-fc99079c938b@siemens.com> <561243bd-3aa7-5f8a-83c5-4137660354fb@siemens.com> <1aa42268-5f7e-355b-e980-eebe9df4a526@ilbers.de> <3a1376a4-6a66-c71a-9565-b4e77b535509@ilbers.de> <6f41982e-7b01-d02c-7785-297061eb8cd4@siemens.com> <20190425103203.GJ21981@yssyq.m.ilbers.de> Message-ID: <41c5f746-1649-dd67-6f8d-118c0dd7f33e@siemens.com> Date: Thu, 25 Apr 2019 13:22:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: zkFl1GIEgkC7 On 25/04/2019 13.18, [ext] Claudius Heine wrote: > Hi Baurzhan, > > On 25/04/2019 12.32, Baurzhan Ismagulov wrote: >> On Thu, Apr 25, 2019 at 11:11:21AM +0200, Claudius Heine wrote: >>> I looked into the "fast" build now, and it cross-compiles >>> "multiconfig:rpi-stretch:isar-image-base". Now I tried that and the >>> build >>> fails even on the current 'next' so the issue seems to be there. >> >> How does the problem manifest itself? Please provide some relevant >> details >> (e.g., bitbake output, failure logs, etc.). > > Commit ID: 2396d4f44fe1f867ddae389b61cb7017cb2b908c > > --- local.conf --- > # cross > ISAR_CROSS_COMPILE = "1" > > # standard > CONF_VERSION = "1" > > MACHINE ??= "qemu" > DISTRO ??= "raspbian-stretch" > BBMULTICONFIG ?= "rpi-stretch" > --- end local.conf --- > > bitbake -k -c build multiconfig:rpi-stretch:isar-image-base > > --- error log --- > ERROR: mc:rpi-stretch:isar-bootstrap-host-1.0-r0 do_bootstrap: Function > failed: do_bootstrap (log file is located at > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/temp/log.do_bootstrap.27078) > > ERROR: Logfile of failure stored in: > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/temp/log.do_bootstrap.27078 > > Log data follows: > | DEBUG: Executing shell function do_bootstrap > | W: Target architecture is the same as host architecture; disabling > QEMU support > | I: Running command: debootstrap --arch amd64 --verbose > --variant=minbase --include=locales --components=main,contrib,non-free > --keyring > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/apt-keyring.gpg > stretch > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs > http://ftp.debian.org/debian Just some speculation here. I find it strange that a normal debian stretch bootstrap gets a '--keyring' parameter in that case. What is bootstrapped here is a amd64 rootfs and the keyring contains the one for raspbian. But I don't know why this causes an error for me here, but not on the CI. But only on the CI when I add my cleanup patches. Claudius > | I: Retrieving InRelease > | I: Retrieving Release > | I: Retrieving Release.gpg > | I: Checking Release signature > | E: Release signed by unknown key (key id EF0F382A1A7B6500) > | WARNING: > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/temp/run.do_bootstrap.27078:1 > exit 1 from 'sudo -E -s  <<'EOSUDO' > |         ( flock 9 > |         set -e > |         if [ ! -e > "/mnt/ssd/isar/upstream/build/tmp/deploy/bootstrap/debian-stretch-amd64" > ]; then > |             rm -rf > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs" > > | > |             if [ ${IS_HOST} ]; then > |                 qemu-debootstrap $debootstrap_args \ > |                                --components=main,contrib,non-free \ > |                                --keyring > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/apt-keyring.gpg > \ > |                                "stretch" \ > | > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs" > \ > |                                "http://ftp.debian.org/debian" > | > |             else > |                  "qemu-debootstrap" $debootstrap_args \ > |                                   --arch="armhf" \ > | --components=main,contrib,non-free,firmware \ > |                                   --keyring > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/apt-keyring.gpg > \ > |                                   "stretch" \ > | > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs" > \ > |                                   "http://archive.raspbian.org/raspbian" > |             fi > | > |             # Install apt config > |             mkdir -p > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/apt/preferences.d" > > |             install -v -m644 > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/apt-preferences" > \ > | > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/apt/preferences.d/bootstrap" > > |             mkdir -p > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/apt/sources.list.d" > > |             if [ "${ISAR_USE_CACHED_BASE_REPO}" = "1" ]; then > |                 sed -e "s#{BASE_DISTRO}#"raspbian"#g" \ > |                     -e "s#{BASE_DISTRO_CODENAME}#"stretch"#g" \ > |                 -i > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/base-apt-sources > > |                 mkdir -p > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/base-apt > > |                 sudo mount --bind > /mnt/ssd/isar/upstream/build/downloads/base-apt/apt > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/base-apt > > |                 install -v -m644 > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/base-apt-sources" > \ > | > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/apt/sources.list.d/base-apt.list" > > |             else > |                 install -v -m644 > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/apt-sources" > \ > | > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/apt/sources.list.d/bootstrap.list" > > |             fi > |             install -v -m644 > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/apt-sources-init" > \ > | > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/apt/sources-list" > > |             rm -f > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/apt/sources.list" > > |             mkdir -p > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/apt/apt.conf.d" > > |             install -v -m644 > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/isar-apt.conf" > \ > | > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/apt/apt.conf.d/50isar.conf" > > | > |             if [ "stretch" = "stretch" ] && [ "4" -lt "4" ]; then > |                 install -v -m644 > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/isar-apt-fallback.conf" > \ > | > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/apt/apt.conf.d/55isar-fallback.conf" > > |             fi > | > |             # Set locale > |             install -v -m644 > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/locale" > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/locale" > > | > |             sed -i '/en_US.UTF-8 UTF-8/s/^#//g' > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/etc/locale.gen" > > |             chroot > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs" > /usr/sbin/locale-gen > | > |             # setup chroot > |             install -v -m755 > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/chroot-setup.sh" > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/chroot-setup.sh" > > | > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/chroot-setup.sh" > "setup" > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs" > > | > |             # update APT > |             mount --rbind /dev > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/dev > > |             mount --make-rslave > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/dev > > |             mount -t proc none > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/proc > > |             mount --rbind /sys > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/sys > > |             mount --make-rslave > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/sys > > | > |             export DEBIAN_FRONTEND=noninteractive > |             chroot > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs" > /usr/bin/apt-get update -y > |             chroot > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs" > /usr/bin/apt-get dist-upgrade -y \ > |                                   -o Debug::pkgProblemResolver=yes > | > |             umount -l > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/dev" > > |             umount -l > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/proc" > > |             umount -l > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/sys" > > |             umount -l > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs/base-apt" > || true > | > |             # Finalize debootstrap by setting the link in deploy > |             ln -Tfsr > "/mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/rootfs" > "/mnt/ssd/isar/upstream/build/tmp/deploy/bootstrap/debian-stretch-amd64" > |         fi > |         ) > 9>'/mnt/ssd/isar/upstream/build/tmp/deploy/bootstrap/debian-stretch-amd64.lock' > > | EOSUDO > | ' > | ERROR: Function failed: do_bootstrap (log file is located at > /mnt/ssd/isar/upstream/build/tmp/work/raspbian-stretch-armhf/isar-bootstrap-host-debian-stretch-amd64/temp/log.do_bootstrap.27078) > > ERROR: Task > (multiconfig:rpi-stretch:/mnt/data/isar/layers/isar-master/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb:do_bootstrap) > failed with exit code '1' > --- end error log --- > > So pretty much the same error I currently deal with. > > Claudius > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de