sartura / replica

Replica.one is an easy to use build system designed to deliver both secure and flexible firmware images.
MIT License
26 stars 12 forks source link

ERROR: dev-util/shadowman-2::gentoo failed (unpack phase) #14

Closed Sheng2216 closed 3 years ago

Sheng2216 commented 3 years ago

We followed the instructions given, switched to the new branch, and then executed the make command to build a new image. The only thing we changed is the repository address listed in replica-gentoo/replica/targets/rpi-docker file, we changed from _setdef(__kernel_remote__',https://github.com/raspberrypi/linux.git')dnl_ to https://github.com.cnpmjs.org/raspberrypi/firmware')dnl to get better download speed (it's a GitHub mirror website close to our location, otherwise we are stuck at the clone stage for hours just to download all the files), but then we got this error:ERROR: dev-util/shadowman-2::gentoo failed (unpack phase), and here is the log

Additional logs:

sheng@sheng-VirtualBox:~/Documents/replica-gentoo/replica$ sudo make GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo http://mirrors.aliyun.com/gentoo/ https://mirrors.aliyun.com/gentoo/" J=6 TARGET_DISTRO=debian CTARGET=aarch64-unknown-linux-gnu package_rpi4
docker pull gentoo/stage3:20210923
20210923: Pulling from gentoo/stage3
Digest: sha256:2e524e9b36a2182bfc1bc37bf3f02b7df80195044a723ee4bc1d111266bff02b
Status: Image is up to date for gentoo/stage3:20210923
docker.io/gentoo/stage3:20210923
docker build . -f targets/rpi4.cache  --build-arg CTARGET="aarch64-unknown-linux-gnu" --build-arg BUILDKIT_INLINE_CACHE=1 --secret id=env,src=environment.cache --tag replica/rpi4:latest
[+] Building 86.4s (10/21)                                                                                                   
 => [internal] load build definition from rpi4.cache                                                                    0.1s
 => => transferring dockerfile: 5.55kB                                                                                  0.0s
 => [internal] load .dockerignore                                                                                       0.1s
 => => transferring context: 35B                                                                                        0.0s
 => resolve image config for docker.io/docker/dockerfile:1.2                                                           15.3s
 => CACHED docker-image://docker.io/docker/dockerfile:1.2@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912df1cf7d313c3e22  0.0s
 => [internal] load metadata for docker.io/gentoo/stage3:replica                                                        0.0s
 => CACHED [stage-0  1/15] FROM docker.io/gentoo/stage3:replica                                                         0.0s
 => [internal] load build context                                                                                      24.7s
 => => transferring context: 134.75MB                                                                                  24.1s
 => [stage-0  2/15] COPY ./repos/gentoo /var/db/repos/gentoo                                                           18.4s
 => [stage-0  3/15] COPY ./environment.sh /etc/profile.d/replica.sh                                                     0.2s
 => ERROR [stage-0  4/15] RUN --mount=type=secret,id=env,target=/run/environment --mount=type=cache,target=/var/cache  26.5s
------                                                                                                                       
 > [stage-0  4/15] RUN --mount=type=secret,id=env,target=/run/environment --mount=type=cache,target=/var/cache/distfiles --mount=type=cache,target=/var/cache/ccache     emerge -qv dev-util/ccache &&     mkdir -p /var/cache/ccache && chmod 2777 /var/cache/ccache &&     echo "max_size = 100.0G" >> /var/cache/ccache/ccache.conf &&     echo "umask = 002" >> /var/cache/ccache/ccache.conf &&     echo "compiler_check = %compiler% -v" >> /var/cache/ccache/ccache.conf &&     echo "cache_dir_levels = 3" >> /var/cache/ccache/ccache.conf &&     echo "CCACHE_DIR="/var/cache/ccache"" > /etc/env.d/10ccache &&     echo "PATH="/usr/lib/ccache/bin"" >> /etc/env.d/10ccache &&     echo "FEATURES="ccache"" >> /etc/env.d/10ccache &&     env-update:
#10 1.129 
#10 1.129 Performing Global Updates
#10 1.129 (Could take a couple of minutes if you have a lot of binary packages.)
#10 1.832 
#10 1.832 
#10 2.058 
#10 2.058  * IMPORTANT: 9 news items need reading for repository 'gentoo'.
#10 2.058  * Use eselect news read to view new items.
#10 2.058 
#10 22.03 >>> Verifying ebuild manifests
#10 22.05 >>> Jobs: 0 of 8 complete, 1 running                Load avg: 3.02, 1.35, 1.34
#10 22.05 >>> Emerging (1 of 8) dev-util/shadowman-2::gentoo
#10 22.05 >>> Jobs: 0 of 8 complete, 1 running                Load avg: 3.02, 1.35, 1.34
#10 22.06 >>> Jobs: 0 of 8 complete, 2 running                Load avg: 3.02, 1.35, 1.34
#10 22.06 >>> Emerging (2 of 8) app-text/asciidoc-9.0.5-r1::gentoo
#10 22.06 >>> Jobs: 0 of 8 complete, 2 running                Load avg: 3.02, 1.35, 1.34
#10 22.06 >>> Jobs: 0 of 8 complete, 3 running                Load avg: 3.02, 1.35, 1.34
#10 22.06 >>> Emerging (3 of 8) app-crypt/rhash-1.3.6-r1::gentoo
#10 22.07 >>> Jobs: 0 of 8 complete, 3 running                Load avg: 3.02, 1.35, 1.34
#10 22.07 >>> Jobs: 0 of 8 complete, 4 running                Load avg: 3.02, 1.35, 1.34
#10 22.07 >>> Emerging (4 of 8) dev-libs/jsoncpp-1.9.4::gentoo
#10 22.07 >>> Jobs: 0 of 8 complete, 4 running                Load avg: 3.02, 1.35, 1.34
#10 22.08 >>> Jobs: 0 of 8 complete, 5 running                Load avg: 3.02, 1.35, 1.34
#10 22.08 >>> Emerging (5 of 8) app-arch/libarchive-3.5.2::gentoo
#10 22.08 >>> Jobs: 0 of 8 complete, 5 running                Load avg: 3.02, 1.35, 1.34
#10 22.08 >>> Jobs: 0 of 8 complete, 6 running                Load avg: 3.02, 1.35, 1.34
#10 22.08 >>> Emerging (6 of 8) dev-libs/libuv-1.42.0::gentoo
#10 22.08 >>> Jobs: 0 of 8 complete, 6 running                Load avg: 3.02, 1.35, 1.34
#10 23.14 >>> Failed to emerge dev-util/shadowman-2, Log file:
#10 23.14 >>> Jobs: 0 of 8 complete, 6 running                Load avg: 3.02, 1.35, 1.34
#10 23.14 >>>  '/var/tmp/portage/dev-util/shadowman-2/temp/build.log'
#10 23.14 >>> Jobs: 0 of 8 complete, 6 running                Load avg: 3.02, 1.35, 1.34
#10 23.14 >>> Jobs: 0 of 8 complete, 6 running, 1 failed      Load avg: 3.02, 1.35, 1.34
#10 23.14 >>> Jobs: 0 of 8 complete, 5 running, 1 failed      Load avg: 3.02, 1.35, 1.34
#10 23.85 >>> Failed to emerge app-text/asciidoc-9.0.5-r1, Log file:
#10 23.85 >>> Jobs: 0 of 8 complete, 5 running, 1 failed      Load avg: 3.02, 1.35, 1.34
#10 23.85 >>>  '/var/tmp/portage/app-text/asciidoc-9.0.5-r1/temp/build.log'
#10 23.85 >>> Jobs: 0 of 8 complete, 5 running, 1 failed      Load avg: 3.02, 1.35, 1.34
#10 23.85 >>> Jobs: 0 of 8 complete, 5 running, 2 failed      Load avg: 3.02, 1.35, 1.34
#10 23.85 >>> Jobs: 0 of 8 complete, 4 running, 2 failed      Load avg: 3.02, 1.35, 1.34
#10 24.24 >>> Failed to emerge app-crypt/rhash-1.3.6-r1, Log file:
#10 24.24 >>> Jobs: 0 of 8 complete, 4 running, 2 failed      Load avg: 3.02, 1.35, 1.34
#10 24.24 >>>  '/var/tmp/portage/app-crypt/rhash-1.3.6-r1/temp/build.log'
#10 24.24 >>> Jobs: 0 of 8 complete, 4 running, 2 failed      Load avg: 3.02, 1.35, 1.34
#10 24.24 >>> Jobs: 0 of 8 complete, 4 running, 3 failed      Load avg: 3.02, 1.35, 1.34
#10 24.24 >>> Jobs: 0 of 8 complete, 3 running, 3 failed      Load avg: 3.02, 1.35, 1.34
#10 25.19 >>> Failed to emerge dev-libs/jsoncpp-1.9.4, Log file:
#10 25.19 >>> Jobs: 0 of 8 complete, 3 running, 3 failed      Load avg: 3.02, 1.35, 1.34
#10 25.19 >>>  '/var/tmp/portage/dev-libs/jsoncpp-1.9.4/temp/build.log'
#10 25.19 >>> Jobs: 0 of 8 complete, 3 running, 3 failed      Load avg: 3.02, 1.35, 1.34
#10 25.19 >>> Jobs: 0 of 8 complete, 3 running, 4 failed      Load avg: 3.02, 1.35, 1.34
#10 25.19 >>> Jobs: 0 of 8 complete, 2 running, 4 failed      Load avg: 3.02, 1.35, 1.34
#10 25.84 >>> Failed to emerge app-arch/libarchive-3.5.2, Log file:
#10 25.84 >>> Jobs: 0 of 8 complete, 2 running, 4 failed      Load avg: 3.10, 1.40, 1.36
#10 25.84 >>>  '/var/tmp/portage/app-arch/libarchive-3.5.2/temp/build.log'
#10 25.84 >>> Jobs: 0 of 8 complete, 2 running, 4 failed      Load avg: 3.10, 1.40, 1.36
#10 25.84 >>> Jobs: 0 of 8 complete, 2 running, 5 failed      Load avg: 3.10, 1.40, 1.36
#10 25.84 >>> Jobs: 0 of 8 complete, 1 running, 5 failed      Load avg: 3.10, 1.40, 1.36
#10 26.18 >>> Failed to emerge dev-libs/libuv-1.42.0, Log file:
#10 26.18 >>> Jobs: 0 of 8 complete, 1 running, 5 failed      Load avg: 3.10, 1.40, 1.36
#10 26.18 >>>  '/var/tmp/portage/dev-libs/libuv-1.42.0/temp/build.log'
#10 26.18 >>> Jobs: 0 of 8 complete, 1 running, 5 failed      Load avg: 3.10, 1.40, 1.36
#10 26.18 >>> Jobs: 0 of 8 complete, 1 running, 6 failed      Load avg: 3.10, 1.40, 1.36
#10 26.18 >>> Jobs: 0 of 8 complete, 6 failed                 Load avg: 3.10, 1.40, 1.36
#10 26.18 
#10 26.19  * Messages for package dev-util/shadowman-2:
#10 26.19  * ERROR: dev-util/shadowman-2::gentoo failed (unpack phase):
#10 26.19  *   unpack: failure unpacking shadowman-2.tar.gz
#10 26.19  * 
#10 26.19  * Call stack:
#10 26.19  *               ebuild.sh, line 127:  Called src_unpack
#10 26.19  *             environment, line 356:  Called default
#10 26.19  *      phase-functions.sh, line 858:  Called default_src_unpack
#10 26.19  *      phase-functions.sh, line 885:  Called __eapi0_src_unpack
#10 26.19  *        phase-helpers.sh, line 785:  Called unpack 'shadowman-2.tar.gz'
#10 26.19  *        phase-helpers.sh, line 424:  Called __unpack_tar 'gzip -d'
#10 26.19  *        phase-helpers.sh, line 366:  Called __assert_sigpipe_ok 'unpack: failure unpacking shadowman-2.tar.gz'
#10 26.19  *   isolated-functions.sh, line  41:  Called die
#10 26.19  * The specific snippet of code:
#10 26.19  *        [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
#10 26.19  * 
#10 26.19  * If you need support, post the output of `emerge --info '=dev-util/shadowman-2::gentoo'`,
#10 26.19  * the complete build log and the output of `emerge -pqv '=dev-util/shadowman-2::gentoo'`.
#10 26.19  * The complete build log is located at '/var/tmp/portage/dev-util/shadowman-2/temp/build.log'.
#10 26.19  * The ebuild environment file is located at '/var/tmp/portage/dev-util/shadowman-2/temp/environment'.
#10 26.19  * Working directory: '/var/tmp/portage/dev-util/shadowman-2/work'
#10 26.19  * S: '/var/tmp/portage/dev-util/shadowman-2/work/shadowman-2'
#10 26.19  * Messages for package app-text/asciidoc-9.0.5-r1:
#10 26.19  * ERROR: app-text/asciidoc-9.0.5-r1::gentoo failed (unpack phase):
#10 26.19  *   unpack: failure unpacking asciidoc-9.0.5.new.tar.gz
#10 26.19  * 
#10 26.19  * Call stack:
#10 26.19  *               ebuild.sh, line  127:  Called src_unpack
#10 26.19  *             environment, line 2669:  Called default
#10 26.19  *      phase-functions.sh, line  858:  Called default_src_unpack
#10 26.19  *      phase-functions.sh, line  885:  Called __eapi0_src_unpack
#10 26.19  *        phase-helpers.sh, line  785:  Called unpack 'asciidoc-9.0.5.new.tar.gz'
#10 26.19  *        phase-helpers.sh, line  424:  Called __unpack_tar 'gzip -d'
#10 26.19  *        phase-helpers.sh, line  366:  Called __assert_sigpipe_ok 'unpack: failure unpacking asciidoc-9.0.5.new.tar.gz'
#10 26.19  *   isolated-functions.sh, line   41:  Called die
#10 26.19  * The specific snippet of code:
#10 26.19  *        [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
#10 26.19  * 
#10 26.19  * If you need support, post the output of `emerge --info '=app-text/asciidoc-9.0.5-r1::gentoo'`,
#10 26.19  * the complete build log and the output of `emerge -pqv '=app-text/asciidoc-9.0.5-r1::gentoo'`.
#10 26.19  * The complete build log is located at '/var/tmp/portage/app-text/asciidoc-9.0.5-r1/temp/build.log'.
#10 26.19  * The ebuild environment file is located at '/var/tmp/portage/app-text/asciidoc-9.0.5-r1/temp/environment'.
#10 26.19  * Working directory: '/var/tmp/portage/app-text/asciidoc-9.0.5-r1/work'
#10 26.19  * S: '/var/tmp/portage/app-text/asciidoc-9.0.5-r1/work/asciidoc-9.0.5'
#10 26.19  * Messages for package app-crypt/rhash-1.3.6-r1:
#10 26.19  * ERROR: app-crypt/rhash-1.3.6-r1::gentoo failed (unpack phase):
#10 26.19  *   unpack: failure unpacking rhash-1.3.6-src.tar.gz
#10 26.19  * 
#10 26.19  * Call stack:
#10 26.19  *               ebuild.sh, line  127:  Called src_unpack
#10 26.19  *             environment, line 1478:  Called default
#10 26.19  *      phase-functions.sh, line  858:  Called default_src_unpack
#10 26.19  *      phase-functions.sh, line  885:  Called __eapi0_src_unpack
#10 26.19  *        phase-helpers.sh, line  785:  Called unpack 'rhash-1.3.6-src.tar.gz'
#10 26.19  *        phase-helpers.sh, line  424:  Called __unpack_tar 'gzip -d'
#10 26.19  *        phase-helpers.sh, line  366:  Called __assert_sigpipe_ok 'unpack: failure unpacking rhash-1.3.6-src.tar.gz'
#10 26.19  *   isolated-functions.sh, line   41:  Called die
#10 26.19  * The specific snippet of code:
#10 26.19  *        [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
#10 26.19  * 
#10 26.19  * If you need support, post the output of `emerge --info '=app-crypt/rhash-1.3.6-r1::gentoo'`,
#10 26.19  * the complete build log and the output of `emerge -pqv '=app-crypt/rhash-1.3.6-r1::gentoo'`.
#10 26.19  * The complete build log is located at '/var/tmp/portage/app-crypt/rhash-1.3.6-r1/temp/build.log'.
#10 26.19  * The ebuild environment file is located at '/var/tmp/portage/app-crypt/rhash-1.3.6-r1/temp/environment'.
#10 26.19  * Working directory: '/var/tmp/portage/app-crypt/rhash-1.3.6-r1/work'
#10 26.19  * S: '/var/tmp/portage/app-crypt/rhash-1.3.6-r1/work/RHash-1.3.6'
#10 26.19  * Messages for package dev-libs/jsoncpp-1.9.4:
#10 26.19  * ERROR: dev-libs/jsoncpp-1.9.4::gentoo failed (unpack phase):
#10 26.19  *   unpack: failure unpacking jsoncpp-1.9.4.tar.gz
#10 26.19  * 
#10 26.19  * Call stack:
#10 26.19  *               ebuild.sh, line  127:  Called src_unpack
#10 26.19  *             environment, line 2289:  Called default
#10 26.19  *      phase-functions.sh, line  858:  Called default_src_unpack
#10 26.19  *      phase-functions.sh, line  885:  Called __eapi0_src_unpack
#10 26.19  *        phase-helpers.sh, line  785:  Called unpack 'jsoncpp-1.9.4.tar.gz'
#10 26.19  *        phase-helpers.sh, line  424:  Called __unpack_tar 'gzip -d'
#10 26.19  *        phase-helpers.sh, line  366:  Called __assert_sigpipe_ok 'unpack: failure unpacking jsoncpp-1.9.4.tar.gz'
#10 26.19  *   isolated-functions.sh, line   41:  Called die
#10 26.19  * The specific snippet of code:
#10 26.19  *        [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
#10 26.19  * 
#10 26.19  * If you need support, post the output of `emerge --info '=dev-libs/jsoncpp-1.9.4::gentoo'`,
#10 26.19  * the complete build log and the output of `emerge -pqv '=dev-libs/jsoncpp-1.9.4::gentoo'`.
#10 26.19  * The complete build log is located at '/var/tmp/portage/dev-libs/jsoncpp-1.9.4/temp/build.log'.
#10 26.19  * The ebuild environment file is located at '/var/tmp/portage/dev-libs/jsoncpp-1.9.4/temp/environment'.
#10 26.19  * Working directory: '/var/tmp/portage/dev-libs/jsoncpp-1.9.4/work'
#10 26.19  * S: '/var/tmp/portage/dev-libs/jsoncpp-1.9.4/work/jsoncpp-1.9.4'
#10 26.19  * Messages for package app-arch/libarchive-3.5.2:
#10 26.19  * ERROR: app-arch/libarchive-3.5.2::gentoo failed (unpack phase):
#10 26.19  *   unpack: failure unpacking libarchive-3.5.2.tar.gz
#10 26.19  * 
#10 26.19  * Call stack:
#10 26.19  *               ebuild.sh, line  127:  Called src_unpack
#10 26.19  *             environment, line 1643:  Called default
#10 26.19  *      phase-functions.sh, line  858:  Called default_src_unpack
#10 26.19  *      phase-functions.sh, line  885:  Called __eapi0_src_unpack
#10 26.19  *        phase-helpers.sh, line  785:  Called unpack 'libarchive-3.5.2.tar.gz'
#10 26.19  *        phase-helpers.sh, line  424:  Called __unpack_tar 'gzip -d'
#10 26.19  *        phase-helpers.sh, line  366:  Called __assert_sigpipe_ok 'unpack: failure unpacking libarchive-3.5.2.tar.gz'
#10 26.19  *   isolated-functions.sh, line   41:  Called die
#10 26.19  * The specific snippet of code:
#10 26.19  *        [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
#10 26.19  * 
#10 26.19  * If you need support, post the output of `emerge --info '=app-arch/libarchive-3.5.2::gentoo'`,
#10 26.19  * the complete build log and the output of `emerge -pqv '=app-arch/libarchive-3.5.2::gentoo'`.
#10 26.19  * The complete build log is located at '/var/tmp/portage/app-arch/libarchive-3.5.2/temp/build.log'.
#10 26.19  * The ebuild environment file is located at '/var/tmp/portage/app-arch/libarchive-3.5.2/temp/environment'.
#10 26.19  * Working directory: '/var/tmp/portage/app-arch/libarchive-3.5.2/work'
#10 26.19  * S: '/var/tmp/portage/app-arch/libarchive-3.5.2/work/libarchive-3.5.2'
#10 26.19  * Messages for package dev-libs/libuv-1.42.0:
#10 26.19  * ERROR: dev-libs/libuv-1.42.0::gentoo failed (unpack phase):
#10 26.19  *   unpack: failure unpacking libuv-1.42.0.tar.gz
#10 26.19  * 
#10 26.19  * Call stack:
#10 26.19  *               ebuild.sh, line  127:  Called src_unpack
#10 26.19  *             environment, line 2017:  Called default
#10 26.19  *      phase-functions.sh, line  858:  Called default_src_unpack
#10 26.19  *      phase-functions.sh, line  885:  Called __eapi0_src_unpack
#10 26.19  *        phase-helpers.sh, line  785:  Called unpack 'libuv-1.42.0.tar.gz'
#10 26.19  *        phase-helpers.sh, line  424:  Called __unpack_tar 'gzip -d'
#10 26.19  *        phase-helpers.sh, line  366:  Called __assert_sigpipe_ok 'unpack: failure unpacking libuv-1.42.0.tar.gz'
#10 26.19  *   isolated-functions.sh, line   41:  Called die
#10 26.19  * The specific snippet of code:
#10 26.19  *        [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
#10 26.19  * 
#10 26.19  * If you need support, post the output of `emerge --info '=dev-libs/libuv-1.42.0::gentoo'`,
#10 26.19  * the complete build log and the output of `emerge -pqv '=dev-libs/libuv-1.42.0::gentoo'`.
#10 26.19  * The complete build log is located at '/var/tmp/portage/dev-libs/libuv-1.42.0/temp/build.log'.
#10 26.19  * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libuv-1.42.0/temp/environment'.
#10 26.19  * Working directory: '/var/tmp/portage/dev-libs/libuv-1.42.0/work'
#10 26.19  * S: '/var/tmp/portage/dev-libs/libuv-1.42.0/work/libuv-1.42.0'
#10 26.19 
#10 26.19 
#10 26.19 
#10 26.19 
#10 26.19 
#10 26.19 
#10 26.19 
#10 26.19 
#10 26.19 
#10 26.19 
#10 26.19 
#10 26.19 
#10 26.19  * 
#10 26.19  * The following 6 packages have failed to build, install, or execute
#10 26.19  * postinst:
#10 26.19  * 
#10 26.19  *  (dev-util/shadowman-2:0/0::gentoo, ebuild scheduled for merge), Log file:
#10 26.19  *   '/var/tmp/portage/dev-util/shadowman-2/temp/build.log'
#10 26.19  *  (app-text/asciidoc-9.0.5-r1:0/0::gentoo, ebuild scheduled for merge), Log file:
#10 26.19  *   '/var/tmp/portage/app-text/asciidoc-9.0.5-r1/temp/build.log'
#10 26.19  *  (app-crypt/rhash-1.3.6-r1:0/0::gentoo, ebuild scheduled for merge), Log file:
#10 26.19  *   '/var/tmp/portage/app-crypt/rhash-1.3.6-r1/temp/build.log'
#10 26.19  *  (dev-libs/jsoncpp-1.9.4:0/24::gentoo, ebuild scheduled for merge), Log file:
#10 26.19  *   '/var/tmp/portage/dev-libs/jsoncpp-1.9.4/temp/build.log'
#10 26.19  *  (app-arch/libarchive-3.5.2:0/13::gentoo, ebuild scheduled for merge), Log file:
#10 26.19  *   '/var/tmp/portage/app-arch/libarchive-3.5.2/temp/build.log'
#10 26.19  *  (dev-libs/libuv-1.42.0:0/1::gentoo, ebuild scheduled for merge), Log file:
#10 26.19  *   '/var/tmp/portage/dev-libs/libuv-1.42.0/temp/build.log'
#10 26.19  * 
------
executor failed running [/bin/bash -l -c emerge -qv dev-util/ccache &&     mkdir -p /var/cache/ccache && chmod 2777 /var/cache/ccache &&     echo "max_size = 100.0G" >> /var/cache/ccache/ccache.conf &&     echo "umask = 002" >> /var/cache/ccache/ccache.conf &&     echo "compiler_check = %compiler% -v" >> /var/cache/ccache/ccache.conf &&     echo "cache_dir_levels = 3" >> /var/cache/ccache/ccache.conf &&     echo "CCACHE_DIR=\"/var/cache/ccache\"" > /etc/env.d/10ccache &&     echo "PATH=\"/usr/lib/ccache/bin\"" >> /etc/env.d/10ccache &&     echo "FEATURES=\"ccache\"" >> /etc/env.d/10ccache &&     env-update]: exit code: 1
make: *** [Makefile:141: build_rpi4] Error 1
rm targets/rpi4.cache
jsmolic commented 3 years ago

Hi @Sheng-IoT, we recently had some changes in the master branch, can you try updating your local repository and building again?

Sheng2216 commented 3 years ago

thank you so much, so I can now build a Debian-like os with the master branch now? I don't need to switch to dev/rpi-debian branch anymore?

jsmolic commented 3 years ago

thank you so much, so I can now build a Debian-like os with the master branch now? I don't need to switch to dev/rpi-debian branch anymore?

Ah, sorry for misunderstanding, the Debian support for raspberry pi is still in the dev/rpi-debian branch because it's a work in progress so we don't want to merge it in master until it's fully functional. We had some bugfixes in master branch and I have also rebased dev/rpi-debian on top of master so the fixes are included in that branch well, so the build should work now.

Sheng2216 commented 3 years ago

Hi,I am using the most recent version of dev/rpi4-debootstrap branch to build the new image, but I still got an error:

`make DEBOOTSTRAP_INCLUDE=vim GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo" J=6 TARGET_DISTRO=debian CTARGET=aarch64-unknown-linux-gnu package_rpi4
`
`=> ERROR [stage-0 11/15] RUN --mount=type=secret,id=env,target=/run/environment --mount  25.8s
------                                                                                          
 > [stage-0 11/15] RUN --mount=type=secret,id=env,target=/run/environment --mount=type=cache,target=/var/cache/distfiles --mount=type=cache,target=/var/cache/ccache     mv /usr/aarch64-unknown-linux-gnu/boot          /usr/src/boot &&     mv /usr/aarch64-unknown-linux-gnu/lib/modules   /usr/src/modules &&     rm -rf                      /usr/aarch64-unknown-linux-gnu/* &&     debootstrap         --arch=${TPARCH}         --no-merged-usr         --cache-dir=/var/cache/distfiles         --include="gpg,dirmngr,debian-keyring,fancontrol,vim"         "stable" /usr/aarch64-unknown-linux-gnu "http://deb.debian.org/debian/":
#17 1.067 W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
#17 1.086 I: Retrieving InRelease 
#17 2.675 I: Retrieving Packages 
#17 6.782 I: Validating Packages 
#17 7.917 I: Resolving dependencies of required packages...
#17 11.58 I: Resolving dependencies of base packages...
#17 16.26 I: Checking component main on http://deb.debian.org/debian...
#17 17.17 I: Validating libacl1 2.2.53-10
#17 17.19 I: Validating adduser 3.118
#17 17.21 I: Validating libapparmor1 2.13.6-10
...
#17 24.43 I: Extracting libuuid1...
#17 24.44 I: Extracting mount...
#17 24.46 I: Extracting util-linux...
#17 24.57 I: Extracting libxxhash0...
#17 24.57 I: Extracting liblzma5...
#17 24.59 I: Extracting zlib1g...
#17 25.04 W: Failure trying to run: chroot "/usr/aarch64-unknown-linux-gnu" /sbin/ldconfig
#17 25.05 W: See /usr/aarch64-unknown-linux-gnu/debootstrap/debootstrap.log for details
------
executor failed running [/bin/bash -l -c mv ${SYSROOT}/boot          /usr/src/boot &&     mv ${SYSROOT}/lib/modules   /usr/src/modules &&     rm -rf                      ${SYSROOT}/* &&     debootstrap         --arch=${TPARCH}         --no-merged-usr         --cache-dir=/var/cache/distfiles         --include="gpg,dirmngr,debian-keyring,fancontrol,vim"         "stable" ${SYSROOT} "http://deb.debian.org/debian/"]: exit code: 1
make: *** [Makefile:141: build_rpi4] Error 1
rm targets/rpi4.cache
jsmolic commented 3 years ago

Did you set up the build environment prior to running the make command? This could appear if you don't run sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

Sheng2216 commented 3 years ago

yes, I tried to run the commend you mentioned before I run the make command, sometimes it works just fine, but I still got the same error messages from time to time, which is kinda annoying.

jsmolic commented 3 years ago
> #17 25.04 W: Failure trying to run: chroot "/usr/aarch64-unknown-linux-gnu" /sbin/ldconfig
> #17 25.05 W: See /usr/aarch64-unknown-linux-gnu/debootstrap/debootstrap.log for details
> ------

@Sheng-IoT Hi, is this still a recurring issue?

Sheng2216 commented 3 years ago

@jsmolic it seems that this issue is resolved for now, thank you

jsmolic commented 3 years ago

Thanks, I'll close the issue then.