Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918903 - app-containers/buildah-1.33.1 - build failure on arm64
Summary: app-containers/buildah-1.33.1 - build failure on arm64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-11-30 15:26 UTC by Leonid Kopylov
Modified: 2023-12-05 05:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,115.62 KB, text/plain)
2023-11-30 15:27 UTC, Leonid Kopylov
Details
build.log.xz (build.log.xz,115.23 KB, application/x-xz)
2023-12-01 09:54 UTC, Leonid Kopylov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2023-11-30 15:26:28 UTC
# emerge -pqv '=app-containers/buildah-1.33.1::gentoo'
[ebuild  N    ] app-containers/buildah-1.33.1  USE="btrfs doc seccomp systemd -apparmor -test"

# emerge --info '=app-containers/buildah-1.33.1::gentoo'
Portage 3.0.55 (python 3.12.0-final-0, default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr, gcc-13, glibc-2.38-r7, 6.6.3-gentoo-arm64 aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.3-gentoo-arm64-aarch64-with-glibc2.38
KiB Mem:    32817360 total,  15107568 free
KiB Swap:    8388604 total,   8371452 free
Timestamp of repository gentoo: Thu, 30 Nov 2023 11:00:01 +0000
Head commit of repository gentoo: 61a35184b24adb0b422a7e9c53840fe21fa84b27
Timestamp of repository EmilienMottet: Mon, 27 Nov 2023 11:17:06 +0000
Head commit of repository EmilienMottet: 488b2f8eb103d862e5917dbd7453a4d64a11640f

Timestamp of repository HomeAssistantRepository: Fri, 24 Nov 2023 19:01:54 +0000
Head commit of repository HomeAssistantRepository: c9bf0ad5b90915cc2a7ac82c6d885082f0080116

Timestamp of repository darkelf: Mon, 13 Nov 2023 22:45:37 +0000
Head commit of repository darkelf: 0bd04c60084ab7425ec0beade82258725f8e32cc

Timestamp of repository guru: Thu, 30 Nov 2023 10:46:51 +0000
Head commit of repository guru: 75dc77190799b5c473765254f5721e603852b879

Timestamp of repository inode64-overlay: Wed, 29 Nov 2023 12:16:49 +0000
Head commit of repository inode64-overlay: d9d25dfabceb72345b5824f3c2912970eb95a5bd

Timestamp of repository kde: Wed, 29 Nov 2023 20:33:55 +0000
Head commit of repository kde: aacc71fdeb6fa7d8a4ab1a22a59053722c9884ec

Timestamp of repository pentoo: Thu, 30 Nov 2023 05:31:41 +0000
Head commit of repository pentoo: 9630c38786aa7f65fa80f0a6f47453a3823dd1f6

sh bash 5.2_p21
ld GNU ld (Gentoo 2.41 p2) 2.41.0
ccache version 4.8.3 [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p21::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.6::gentoo, 3.12.0_p1::gentoo
dev-lang/rust:             1.73.0::gentoo
dev-lang/rust-bin:         1.73.0::gentoo
dev-util/ccache:           4.8.3::gentoo
dev-util/cmake:            3.27.9::gentoo
dev-util/meson:            1.3.0::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.7::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230825::gentoo, 13.2.1_p20231014::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            14.0.6-r4::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

EmilienMottet
    location: /var/db/repos/EmilienMottet
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/EmilienMottet.git
    masters: gentoo
    volatile: False

HomeAssistantRepository
    location: /var/db/repos/HomeAssistantRepository
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/HomeAssistantRepository.git
    masters: gentoo
    volatile: False

darkelf
    location: /var/db/repos/darkelf
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/darkelf.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

inode64-overlay
    location: /var/db/repos/inode64-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/inode64-overlay.git
    masters: gentoo
    volatile: False

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    volatile: False

pentoo
    location: /var/db/repos/pentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pentoo.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/arm64/binpackages/17.0/arm64

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="* -@EULA geekbench Microsoft-vscode TeamViewer Vivaldi"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /opt/zookeeper-bin/conf /usr/lib64/libreoffice/program/sofficerc /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.1/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/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="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j6"
PKGDIR="/var/cache/binpkgs"
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 accessibility acl acpi alsa arm64 audit bash-completion berkdb bidi bluetooth branding brotli btrfs bzip2 cairo cdda cdr cli colord crypt cryptsetup cups curl dbus designer device-mapper doc dri dts dvdr eds emacs encode evdev evo examples exif experimental ffmpeg flac fortran fuse gamepad gdbm gif git gmp gnome gnome-keyring gnome-online-accounts gnome-shell gnutls go gpg gpm gstreamer gtk gtk-doc gui hscolour html http iconv icu idn introspection iodbc ipv6 jack java jemalloc joystick jpeg json kde kerberos keyring lcms ldap libnotify libtirpc lua lvm lz4 lzma lzo mad man mbedtls mng mongodb mp3 mp4 mpeg multimedia mysql nas nautilus ncurses netlink network networkmanager nfs nls nptl nss odbc offensive ogg opengl openmp openssl pam pango pcap pcre pdf perl pkcs11 plasma plugins png policykit postgres ppds pulseaudio python qml qt5 readline redis samba sasl screencast sdl seccomp semantic-desktop snmp sound source speech spell sqlite ssl startup-notification svg symlink sysprof systemd tcl telemetry test-rust threads tiff tk tools tracker truetype udev udisks unicode upower usb utils v4l vala vim-syntax vnc vorbis vulkan wayland webengine webkit webp wxwidgets x264 xattr xcb xft xinerama xml xv xvid yaml zeroconf zip zlib zsh-completion zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words stage" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v8" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat 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, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Leonid Kopylov 2023-11-30 15:27:01 UTC
Created attachment 875955 [details]
build.log.xz
Comment 2 Alfred Wingate 2023-11-30 15:39:30 UTC
make -j6 
rm -f internal/mkcw/embed/entrypoint.gz
make -C tests/tools
gzip -k internal/mkcw/embed/entrypoint
gzip: internal/mkcw/embed/entrypoint: No such file or directory
make: *** [Makefile:86: internal/mkcw/embed/entrypoint.gz] Error 1
make: *** Waiting for unfinished jobs....
Comment 3 Alfred Wingate 2023-11-30 16:01:24 UTC
It appears its amd64 only.

https://github.com/containers/buildah/blob/v1.33.1/Makefile#L75..L86

ifneq ($(shell as --version | grep x86_64),)
internal/mkcw/embed/entrypoint: internal/mkcw/embed/entrypoint.s
	$(AS) -o $(patsubst %.s,%.o,$^) $^
	$(LD) -o $@ $(patsubst %.s,%.o,$^)
	strip $@
else
.PHONY: internal/mkcw/embed/entrypoint
endif

internal/mkcw/embed/entrypoint.gz: internal/mkcw/embed/entrypoint
	$(RM) $@
	gzip -k $^


Added in (since 1.32.0):
https://github.com/containers/buildah/commit/e89fac6c9bf8d0b1071769439ab69a65bffbc72a

Gave arch prefix in:
https://github.com/containers/buildah/commit/3b795dd4bca9b757d4f6bbaa63f6816799b6cd28
> in case we find ourselves needing to support other architectures in the same area in the future.
Comment 4 Rahil Bhimjiani 2023-12-01 03:13:40 UTC
Could you test if same bug happens in 9999* live?
Comment 5 Leonid Kopylov 2023-12-01 09:22:38 UTC
(In reply to Rahil Bhimjiani from comment #4)
> Could you test if same bug happens in 9999* live?

this version is not keyworded for arm64 - but it builds: 

# emerge app-containers/buildah -pvq
[ebuild   R   ] app-containers/buildah-9999  USE="btrfs doc seccomp systemd -apparmor -test"
Comment 6 Rahil Bhimjiani 2023-12-01 09:32:05 UTC
perfect. Then I think 1.33.2 (see the PR) should fix it. Please confirm after test
Comment 7 Leonid Kopylov 2023-12-01 09:36:12 UTC
(In reply to Rahil Bhimjiani from comment #6)
> perfect. Then I think 1.33.2 (see the PR) should fix it. Please confirm
> after test

i don't see this version in tree
Comment 8 Rahil Bhimjiani 2023-12-01 09:49:20 UTC
Apply this patch in your overlay and then emerge -1 =buildah-1.33.2 https://patch-diff.githubusercontent.com/raw/gentoo/gentoo/pull/34073.patch
Comment 9 Leonid Kopylov 2023-12-01 09:54:55 UTC
Created attachment 876164 [details]
build.log.xz
Comment 10 Leonid Kopylov 2023-12-01 09:55:10 UTC
it failed
Comment 11 Rahil Bhimjiani 2023-12-01 12:03:26 UTC
please re-apply the patch and report back
Comment 12 Leonid Kopylov 2023-12-01 12:08:59 UTC
(In reply to Rahil Bhimjiani from comment #11)
> please re-apply the patch and report back

# emerge app-containers/buildah -pvq
[ebuild   R   ] app-containers/buildah-1.33.2  USE="btrfs doc seccomp systemd -apparmor -test"

now success!
Comment 13 Rahil Bhimjiani 2023-12-01 12:16:08 UTC
yay!! Now comes the hard part - the wait for zac medico to merge
Comment 14 Larry the Git Cow gentoo-dev 2023-12-05 05:24:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32b9e7fdea62206bf53a30c36284dae17e74e716

commit 32b9e7fdea62206bf53a30c36284dae17e74e716
Author:     Rahil Bhimjiani <me@rahil.website>
AuthorDate: 2023-12-01 03:27:53 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2023-12-05 05:24:11 +0000

    app-containers/buildah: add 1.33.2 which fixes arm64 build
    
    Closes: https://bugs.gentoo.org/918903
    Signed-off-by: Rahil Bhimjiani <me@rahil.website>
    Closes: https://github.com/gentoo/gentoo/pull/34073
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-containers/buildah/Manifest                    |   1 +
 app-containers/buildah/buildah-1.33.1.ebuild       |   3 +
 app-containers/buildah/buildah-1.33.2.ebuild       | 128 +++++++++++++++++++++
 app-containers/buildah/buildah-9999.ebuild         |   1 +
 .../buildah/files/fix-non-amd64-build-1.33.2.patch |  44 +++++++
 5 files changed, 177 insertions(+)