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

Couldn't download 'boost_1_76_0.tar.bz2'. Fetch failed for 'sys-kernel/genkernel-4.2.6-r1' #26

Closed Sheng2216 closed 2 years ago

Sheng2216 commented 2 years ago

Distribution: Debian 11 RAM: 16GB Issue description: using the multistrap packing solution to build, but failed when downloading 'boost_1_76_0.tar.bz2'. So this issue is caused by the unstable internet environment, right? Is it possible to change it to some mirror address? I already modified the source address in multistrap.conf(as shown below)


[General]
cleanup=true
noauth=true
setupscript=/usr/share/multistrap/chroot.sh
bootstrap=Debian Foreign
aptsources=Debian

[Debian] packages=firmware-brcm80211 ca-certificates curl gnupg lsb-release iw packages=python3 python3-pip ntp ntpdate iperf systemd

The following packages are marked as important by aptitude and are not included by default**

packages=adduser apt-utils cpio cron debconf-i18n dmidecode debian-archive-keyring dmidecode packages=fdisk gpgv ifupdown init iproute2 iputils-ping isc-dhcp-client isc-dhcp-common kmod packages=less libreadline8 logrotate nano netbase nftables procps readline-common rsyslog packages=sensible-utils systemd systemd-sysv tasksel-data udev vim-common vim-tiny whiptail source=https://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian

source=http://deb.debian.org/debian/

keyring=debian-archive-keyring suite=stable omitdebsrc=false components=main contrib non-free

[Foreign] packages=docker-ce docker-ce-cli containerd.io source=https://download.docker.com/linux/debian suite=bullseye omitdebsrc=false components=stable

##########################################################################################

build command: make J=8 TARGET_DISTRO=debian DEBOOTSTRAP_INCLUDE=1 CTARGET=aarch64-unknown-linux-gnu package_rpi4 here is part of the error message:

12 5555.4 >>> Installing (55 of 69) dev-util/strace-5.12-r1::gentoo

12 5555.4 >>> Jobs: 61 of 69 complete, 1 failed Load avg: 5.23, 7.13, 7.45

12 5557.7 >>> Jobs: 62 of 69 complete, 1 failed Load avg: 4.97, 7.04, 7.42

12 5557.7

12 5557.7 * genkernel-4.2.6.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]

12 5557.7 * bcache-tools-1.0.8_p20141204.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ]

12 5557.7 >>> Downloading 'https://dl.bintray.com/boostorg/release/1.76.0/source/boost_1_76_0.tar.bz2'

12 5557.7 --2021-12-09 12:55:10-- https://dl.bintray.com/boostorg/release/1.76.0/source/boost_1_76_0.tar.bz2

12 5557.7 Resolving dl.bintray.com... 52.39.229.247, 54.70.2.80

12 5557.7 Connecting to dl.bintray.com|52.39.229.247|:443... connected.

12 5557.7 HTTP request sent, awaiting response... 502 Bad Gateway

12 5557.7 2021-12-09 12:55:11 ERROR 502: Bad Gateway.

12 5557.7

12 5557.7 !!! Couldn't download 'boost_1_76_0.tar.bz2'. Aborting.

12 5557.7 * Fetch failed for 'sys-kernel/genkernel-4.2.6-r1', Log file:

12 5557.7 * '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r1/temp/build.log'

12 5557.7 * Messages for package sys-kernel/linux-firmware-20211027:

12 5557.7 * Your configuration for sys-kernel/linux-firmware-20211027 has been saved in

12 5557.7 * "/etc/portage/savedconfig/sys-kernel/linux-firmware-20211027" for your editing pleasure.

12 5557.7 * You can edit these files by hand and remerge this package with

12 5557.7 * USE=savedconfig to customise the configuration.

12 5557.7 * You can rename this file/directory to one of the following for

12 5557.7 * its configuration to apply to multiple versions:

12 5557.7 * ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/

12 5557.7 * [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]

12 5557.7 * If you are only interested in particular firmware files, edit the saved

12 5557.7 * configfile and remove those that you do not want.

12 5557.7 * Messages for package dev-libs/boost-1.77.0-r4:

12 5557.7 Boost.Regex is extremely* ABI sensitive. If you get errors such as

12 5557.7 *

12 5557.7 * undefined reference to `boost::re_detail_107700::cpp_regex_traits_implementation

12 5557.7 ::transform_primary[abi:cxx11](char const, char const*) const'

12 5557.7 *

12 5557.7 * Then you need to recompile Boost and all its reverse dependencies

12 5557.7 using the same toolchain. In general, every* change of the C++ toolchain

12 5557.7 * requires a complete rebuild of the Boost-dependent ecosystem.

12 5557.7 *

12 5557.7 * See for instance https://bugs.gentoo.org/638138

12 5557.7 * Messages for package sys-libs/pam-1.5.1_p20210622-r1:

12 5557.7 * Some software with pre-loaded PAM libraries might experience

12 5557.7 * warnings or failures related to missing symbols and/or versions

12 5557.7 * after any update. While unfortunate this is a limit of the

12 5557.7 * implementation of PAM and the software, and it requires you to

12 5557.7 * restart the software manually after the update.

12 5557.7 *

12 5557.7 * You can get a list of such software running a command like

12 5557.7 lsof / | egrep -i 'del.libpam.so'

12 5557.7 *

12 5557.7 * Alternatively, simply reboot your system.

12 5557.7 * Messages for package sys-devel/llvm-13.0.0:

12 5557.7 * You can find additional opt-viewer utility scripts in:

12 5557.7 * /usr/lib/llvm/13/share/opt-viewer

12 5557.7 * To use these scripts, you will need Python along with the following

12 5557.7 * packages:

12 5557.7 * dev-python/pygments (for opt-viewer)

12 5557.7 * dev-python/pyyaml (for all of them)

12 5557.7 * Messages for package sys-devel/clang-13.0.0:

12 5557.7 * !!! Installing x86_64-multilib-linux-gnu symlinks...

12 5557.7 * !!! Installing x86_64-multilib-linux-gnu symlinks...

12 5557.7 * !!! Installing x86_64-multilib-linux-gnu symlinks...

12 5557.7 * !!! Installing x86_64-multilib-linux-gnu symlinks...

12 5557.7 * !!! Installing aarch64-unknown-linux-gnu symlinks...

12 5557.7 * !!! Installing aarch64-unknown-linux-gnu symlinks...

12 5557.7 * !!! Installing aarch64-unknown-linux-gnu symlinks...

12 5557.7 * !!! Installing aarch64-unknown-linux-gnu symlinks...

12 5557.7 * !!! Installing armv7a-unknown-linux-gnueabihf symlinks...

12 5557.7 * !!! Installing armv7a-unknown-linux-gnueabihf symlinks...

12 5557.7 * !!! Installing armv7a-unknown-linux-gnueabihf symlinks...

12 5557.7 * !!! Installing armv7a-unknown-linux-gnueabihf symlinks...

12 5557.7 * You can find additional utility scripts in:

12 5557.7 * /usr/lib/llvm/13/share/clang

12 5557.7 * Some of them are vim integration scripts (with instructions inside).

12 5557.7 * The run-clang-tidy.py script requires the following additional package:

12 5557.7 * dev-python/pyyaml

12 5557.7 * Messages for package sys-kernel/genkernel-4.2.6-r1:

12 5557.7 * Fetch failed for 'sys-kernel/genkernel-4.2.6-r1', Log file:

12 5557.7 * '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r1/temp/build.log'

12 5557.7 * Messages for package dev-util/debootstrap-1.0.123:

12 5557.7 * To check Release files from Debian or Ubuntu, please install

12 5557.7 * app-crypt/debian-archive-keyring or

12 5557.7 * app-crypt/ubuntu-keyring as required

12 5557.7 * Messages for package app-portage/gentoolkit-0.5.1-r1:

12 5557.7 *

12 5557.7 * For further information on gentoolkit, please read the gentoolkit

12 5557.7 * guide: https://wiki.gentoo.org/wiki/Gentoolkit

12 5557.7 *

12 5557.7 * Another alternative to equery is app-portage/portage-utils

12 5557.7 *

12 5557.7 * Additional tools that may be of interest:

12 5557.7 *

12 5557.7 * app-admin/eclean-kernel

12 5557.7 * app-portage/diffmask

12 5557.7 * app-portage/flaggie

12 5557.7 * app-portage/portpeek

12 5557.7 * app-portage/smart-live-rebuild

12 5557.7 * Messages for package dev-vcs/git-2.32.0-r1:

12 5557.7 * Please read /usr/share/bash-completion/completions/git for Git bash command

12 5557.7 * completion.

12 5557.7 * Please read /usr/share/git/git-prompt.sh for Git bash prompt

12 5557.7 * Note that the prompt bash code is now in that separate script

12 5557.7 * These additional scripts need some dependencies:

12 5557.7 * git-quiltimport : dev-util/quilt

12 5557.7 * git-instaweb : || ( www-servers/lighttpd www-servers/apache www-servers/nginx )

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7

12 5557.7 * Regenerating GNU info directory index...

12 5559.2 * Processed 94 info files.

12 5559.2

12 5559.2 * IMPORTANT: 13 news items need reading for repository 'gentoo'.

12 5559.2 * Use eselect news read to view new items.

12 5559.2

executor failed running [/bin/bash -l -c mkdir -p /etc/portage/repos.conf && set_repository_conf / host 10 && set_portage_profile / host default && emerge -vt --keep-going=n --deep --noreplace --changed-use @system]: exit code: 1 make: *** [Makefile:138: build_rpi4] Error 1 rm targets/rpi4.cache root@debian:/home/rak/workspace/replica#

jpetrina commented 2 years ago

Hi, thanks for reporting this issue, can you confirm that the submodule sources have been updated in your local Git repository using:

~ $ git submodule update --init --recursive
Submodule path 'repos/gentoo': checked out 'ee70b0c61d10cf9413fde3689da268ca7dd9c33c'
Submodule path 'repos/musl': checked out '32f8782a939e179dbba86f3591e0dec0ed3279b4'
Submodule path 'repos/replica': checked out '174e15625157c4a1b1a00f9ba3e243d0114d8cff'
Sheng2216 commented 2 years ago

Hi, thanks for reporting this issue, can you confirm that the submodule sources have been updated in your local Git repository using:

~ $ git submodule update --init --recursive
Submodule path 'repos/gentoo': checked out 'ee70b0c61d10cf9413fde3689da268ca7dd9c33c'
Submodule path 'repos/musl': checked out '32f8782a939e179dbba86f3591e0dec0ed3279b4'
Submodule path 'repos/replica': checked out '174e15625157c4a1b1a00f9ba3e243d0114d8cff'

the output shows only one submodule path (as shown below)

root@debian:/home/workspace/replica# git submodule update --init --recursive Submodule path 'repos/replica': checked out '33e1c1764b412cbc15724f972a3367d40db5a4e8'

I will try to clone with "git clone --recursive" again

jsmolic commented 2 years ago

@Sheng-IoT Thanks, we are aware of the issue in the upstream genkernel package which contains unreliable URL for boost. I've added a local version which will resolve the issues until the package has been updated in the upstream Gentoo repository.