Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Update app-containers/containerd failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 518

PostPosted: Tue Jan 21, 2025 4:39 pm    Post subject: Update app-containers/containerd failed Reply with quote

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:
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:
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!
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1506
Location: Richmond Hill, Canada

PostPosted: Tue Jan 21, 2025 5:17 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
powerN00b
n00b
n00b


Joined: 11 Jul 2024
Posts: 7

PostPosted: Thu Feb 13, 2025 2:18 am    Post subject: Reply with quote

misterxx, can you apply this patch https://924632.bugs.gentoo.org/attachment.cgi?id=906575 from https://bugs.gentoo.org/924632 ?
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 518

PostPosted: Tue Feb 18, 2025 2:08 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 518

PostPosted: Tue Feb 18, 2025 3:57 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23121

PostPosted: Tue Feb 18, 2025 4:05 pm    Post subject: Reply with quote

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

 * 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'.
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1506
Location: Richmond Hill, Canada

PostPosted: Tue Feb 18, 2025 5:05 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum