Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

[SOLVED] Update app-containers/containerd failed

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
Author
Message
misterxx
Guru
Guru
User avatar
Posts: 531
Joined: Sun Apr 18, 2004 7:47 am

[SOLVED] Update app-containers/containerd failed

  • Quote

Post by misterxx » Tue Jan 21, 2025 4:39 pm

Hello community!

When running emerge world, the package containerd should be updated to version 2.0.2. Unfortunately, the emerge terminates with a compilation problem.

The same result occurs with the emerge of containerd-2.0.1.

Does anyone have any ideas what i could try?

Code: Select all

matrixstorage ~ # emerge --info
Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/arm/23.0/split-usr/armv7a_hf/desktop, gcc-13, glibc-2.40-r5, 5.4.274-arm+ armv7l)
=================================================================
System uname: Linux-5.4.274-arm+-armv7l-ARMv7_Processor_rev_3_-v7l-with-glibc2.40
KiB Mem:     2039164 total,    298952 free
KiB Swap:    4189180 total,   3863184 free
Timestamp of repository gentoo: Tue, 21 Jan 2025 07:30:00 +0000
Head commit of repository gentoo: cfb95c8a5baee15642cbe26a4eca3bdc28e7ac0d
sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.10.15_p2::gentoo, 3.11.10_p1::gentoo, 3.12.7_p1::gentoo, 3.13.0::gentoo
dev-lang/rust:             1.81.0-r100::gentoo
dev-lang/rust-bin:         1.81.0-r100::gentoo
llvm-core/llvm:            15.0.7-r3::gentoo, 18.1.8-r1::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.42-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20241025::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts: 

portage-ols
    location: /var/db/repos/portage-ols
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="de en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl airplay alsa apache2 arm bluetooth bluray branding bzip2 cairo caps cdda cdr cec crypt css cups curl dbus dri dts dvd dvdr elogind encode exif flac fpm ftp gd gdbm gif gpm gtk gui iconv icu ipv6 java jce jpeg lcms libnotify mad mng mp3 mp4 mpeg ncurses nls nsplugin ogg opengl openmp pam pango pcre pdf pdo php phython png policykit postgres ppds qml qt5 qt6 readline sdl seccomp server sound spell split-usr sqlite ssl startup-notification svg test-rust threads tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xmlreader xmlwriter xv xvid zip zlib" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="de de-DE en en-GB ru" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="exynos fbdev dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

Code: Select all

mkdir -p $WORK/b001/exe/
cd .
GOROOT='/usr/lib/go' /usr/lib/go/pkg/tool/linux_arm/link -o $WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -installsuffix shared -X=runtime.godebugDefault=asynctimerchan=1,gotypesalias=0,httpservecontentkeepheaders=1,tls3des=1,tlskyber=0,x509keypairleaf=0,x509negativeserial=1 -buildmode=pie -buildid=ke85icGl1nlO03ExFr99/E5aWQ1aPCzQTYGg4_7s2/B6hO59oVvjypsXV01vZF/ke85icGl1nlO03ExFr99 -X github.com/containerd/containerd/v2/version.Version=v2.0.1 -X github.com/containerd/containerd/v2/version.Revision=88aa2f531d6c2922003cc7929e51daf1c14caa0a -X github.com/containerd/containerd/v2/version.Package=github.com/containerd/containerd/v2 -extld=armv7a-unknown-linux-gnueabihf-gcc $WORK/b001/_pkg_.a
/usr/lib/go/pkg/tool/linux_arm/buildid -w $WORK/b001/exe/a.out # internal
mkdir -p bin/
cp $WORK/b001/exe/a.out bin/containerd
rm -rf $WORK/b001/
 * ERROR: app-containers/containerd-2.0.1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-containers/containerd-2.0.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-containers/containerd-2.0.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-containers/containerd-2.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-containers/containerd-2.0.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-containers/containerd-2.0.1/work/containerd-2.0.1'
 * S: '/var/tmp/portage/app-containers/containerd-2.0.1/work/containerd-2.0.1'
Does anyone have any ideas what i could try? Thanks in advance!
Last edited by misterxx on Thu Feb 27, 2025 3:22 pm, edited 1 time in total.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2183
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Tue Jan 21, 2025 5:17 pm

Your error post incomplete. There is nothing in that post that we can tell what happen.

If you follow the output from emerge failure at bottom, it tell you post the entire build.log and others.

You can try app-text/wgetpaste for large log/text
Top
powerN00b
n00b
n00b
User avatar
Posts: 26
Joined: Thu Jul 11, 2024 11:36 am

  • Quote

Post by powerN00b » Thu Feb 13, 2025 2:18 am

misterxx, can you apply this patch https://924632.bugs.gentoo.org/attachment.cgi?id=906575 from https://bugs.gentoo.org/924632 ?
Top
misterxx
Guru
Guru
User avatar
Posts: 531
Joined: Sun Apr 18, 2004 7:47 am

  • Quote

Post by misterxx » Tue Feb 18, 2025 2:08 pm

powerN00b,

this patch worked for me compiling containerd-1.7.22. But does not help containers 2.0.1 and also for 2.0.2
Top
misterxx
Guru
Guru
User avatar
Posts: 531
Joined: Sun Apr 18, 2004 7:47 am

  • Quote

Post by misterxx » Tue Feb 18, 2025 3:57 pm

Does anyone have any ideas what I could try to solve this problem?

Rebuilding @golang-rebuild has not helped either.

The containerd always fails in the compile phase in the same way, see above.

@pingtoo: In the build.log I find no indication of the cause of the problem except for the message above.
Top
Hu
Administrator
Administrator
Posts: 24395
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Feb 18, 2025 4:05 pm

I suggest you follow pingtoo's original request, and do as Portage instructed:

Code: Select all

 * If you need support, post the output of `emerge --info '=app-containers/containerd-2.0.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-containers/containerd-2.0.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-containers/containerd-2.0.1/temp/build.log'. 
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2183
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Tue Feb 18, 2025 5:05 pm

misterxx wrote:Does anyone have any ideas what I could try to solve this problem?

Rebuilding @golang-rebuild has not helped either.

The containerd always fails in the compile phase in the same way, see above.

@pingtoo: In the build.log I find no indication of the cause of the problem except for the message above.
Well, if you did not spot indication then I guess I cannot do much either since I did not even get to see it :oops:

It is said in from powerN00b post that there is known issue for using go 1.22.0 for certain ARCH with -buildmode=pie will need CGO_ENABLED=1.

Did you try to do anything for example downgrade go version or modify ebuild to try out if that is the case?
Top
powerN00b
n00b
n00b
User avatar
Posts: 26
Joined: Thu Jul 11, 2024 11:36 am

  • Quote

Post by powerN00b » Wed Feb 19, 2025 1:06 am

pingtoo wrote: Did you try to do anything for example downgrade go version or modify ebuild to try out if that is the case?
https://bugs.gentoo.org/924632#c31
Top
misterxx
Guru
Guru
User avatar
Posts: 531
Joined: Sun Apr 18, 2004 7:47 am

  • Quote

Post by misterxx » Wed Feb 26, 2025 9:45 am

Hi community,

thanks for your suggestions!

I have changed ebuild as suggested by powerN00b. unfortunately containerd-2.0.2 cannot be built with it either.

Code: Select all

>>> Emerging (1 of 1) app-containers/containerd-2.0.2::gentoo
 * containerd-2.0.2.tar.gz BLAKE2B SHA512 size ;-) ...                                                           [ ok ]
>>> Unpacking source...
>>> Unpacking containerd-2.0.2.tar.gz to /var/tmp/portage/app-containers/containerd-2.0.2/work
>>> Source unpacked in /var/tmp/portage/app-containers/containerd-2.0.2/work
>>> Preparing source in /var/tmp/portage/app-containers/containerd-2.0.2/work/containerd-2.0.2 ...
 * Force CGO_ENABLED=1 for arm, see bug #924632
 * ERROR: app-containers/containerd-2.0.2::gentoo failed (prepare phase):
 *   eapply_user (or default) must be called in src_prepare()!
 * 
 * Call stack:
 *            ebuild.sh, line  784:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 1074:  Called __dyn_prepare
 *   phase-functions.sh, line  411:  Called die
 * The specific snippet of code:
 *   		die "eapply_user (or default) must be called in src_prepare()!"
 * 
 * If you need support, post the output of `emerge --info '=app-containers/containerd-2.0.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-containers/containerd-2.0.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-containers/containerd-2.0.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-containers/containerd-2.0.2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-containers/containerd-2.0.2/work/containerd-2.0.2'
 * S: '/var/tmp/portage/app-containers/containerd-2.0.2/work/containerd-2.0.2'
Top
misterxx
Guru
Guru
User avatar
Posts: 531
Joined: Sun Apr 18, 2004 7:47 am

  • Quote

Post by misterxx » Thu Feb 27, 2025 3:14 pm

Hello community

I have been looking into the problem more intensively today. I compared the patch content, which worked for me for containerd-1.7.22, with the Makefile of containerd-2.0.2. I found out that after a small modification the compilation of containerd-2.0.2 could also be completed successfully.

Thanks again to all involved for their suggestions before.

Used patch:

Code: Select all

--- /Makefile   2025-02-27 09:55:29.817958556 +0200
+++ Makefile   2025-02-27 09:55:39.072092347 +0200
@@ -33,7 +33,7 @@
 VERSION ?= $(shell git describe --match 'v[0-9]*' --dirty='.m' --always)
 REVISION=$(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi)
 PACKAGE=github.com/containerd/containerd/v2
-SHIM_CGO_ENABLED ?= 0
+SHIM_CGO_ENABLED ?= 1
 
 ifneq "$(strip $(shell command -v $(GO) 2>/dev/null))" ""
    GOOS ?= $(shell $(GO) env GOOS)
Top
Post Reply
  • Print view

10 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic