Docker build fails
mosabua opened this issue · 10 comments
When trying to build the docker containers withe script core/docker/build.sh
on an ARM-based MacbookPro I get failures. I am using orbstack for docker.
Restricting the architecture with ./build.sh -a arm64
works fine.
Looking at the readme and the script source there is no further on requirements.
Here is a log of failure when running the command
./build.sh -a amd64
#17 14.25 Red Hat Universal Base Image 9 (RPMs) - BaseOS 3.5 MB/s | 3.6 kB 00:00
#17 14.54 Importing GPG key 0xFD431D51:
#17 14.54 Userid : "Red Hat, Inc. (release key 2) <security@redhat.com>"
#17 14.54 Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51
#17 14.54 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
#17 14.55 Key imported successfully
#17 14.55 Importing GPG key 0x5A6340B3:
#17 14.55 Userid : "Red Hat, Inc. (auxiliary key 3) <security@redhat.com>"
#17 14.55 Fingerprint: 7E46 2425 8C40 6535 D56D 6F13 5054 E4A4 5A63 40B3
#17 14.55 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
#17 14.56 Key imported successfully
#17 18.76 Running transaction check
#17 18.80 Transaction check succeeded.
#17 18.80 Running transaction test
#17 19.42 Transaction test succeeded.
#17 19.42 Running transaction
#17 19.85 Running scriptlet: filesystem-3.16-5.el9.x86_64 1/1
#17 20.16 Preparing : 1/1
#17 20.17 Installing : libgcc-11.5.0-2.el9.x86_64 1/66
#17 20.18 Running scriptlet: libgcc-11.5.0-2.el9.x86_64 1/66
#17 20.25 Installing : tzdata-2024b-2.el9.noarch 2/66
#17 20.26 Installing : redhat-release-9.5-0.6.el9.x86_64 3/66
#17 20.26 Installing : setup-2.13.7-10.el9.noarch 4/66
#17 20.26 Running scriptlet: setup-2.13.7-10.el9.noarch 4/66
#17 20.30 Installing : filesystem-3.16-5.el9.x86_64 5/66
#17 20.34 Installing : basesystem-11-13.el9.noarch 6/66
#17 20.34 Installing : publicsuffix-list-dafsa-20210518-3.el9.noarch 7/66
#17 20.35 Installing : pcre2-syntax-10.40-6.el9.noarch 8/66
#17 20.36 Installing : ncurses-base-6.2-10.20210508.el9.noarch 9/66
#17 20.36 Installing : glibc-minimal-langpack-2.34-125.el9_5.1.x86_64 10/66
#17 20.37 Installing : glibc-common-2.34-125.el9_5.1.x86_64 11/66
#17 20.37 Running scriptlet: glibc-2.34-125.el9_5.1.x86_64 12/66
#17 20.41 Installing : glibc-2.34-125.el9_5.1.x86_64 12/66
#17 20.41 Running scriptlet: glibc-2.34-125.el9_5.1.x86_64 12/66qemu: uncaught target signal 4 (Illegal instruction) - core dumped
#17 20.71 Fatal glibc error: CPU does not support x86-64-v2
#17 20.72
#17 20.72 Installing : ncurses-libs-6.2-10.20210508.el9.x86_64 13/66
#17 20.74 Installing : bash-5.1.8-9.el9.x86_64 14/66
#17 20.74 Running scriptlet: bash-5.1.8-9.el9.x86_64 14/66
#17 20.75 Installing : crypto-policies-20240828-2.git626aa59.el9_5.noarch 15/66
#17 20.75 Running scriptlet: crypto-policies-20240828-2.git626aa59.el9_5.noarch 15/66
#17 20.76 Installing : gmp-1:6.2.0-13.el9.x86_64 16/66
#17 20.76 Installing : libattr-2.5.1-3.el9.x86_64 17/66
#17 20.77 Installing : libacl-2.3.1-4.el9.x86_64 18/66
#17 20.77 Installing : libcom_err-1.46.5-5.el9.x86_64 19/66
#17 20.77 Installing : zlib-1.2.11-40.el9.x86_64 20/66
#17 20.78 Installing : libsepol-3.6-1.el9.x86_64 21/66
#17 20.78 Installing : libsigsegv-2.13-4.el9.x86_64 22/66
#17 20.79 Installing : libtasn1-4.16.0-8.el9_1.x86_64 23/66
#17 20.80 Installing : libunistring-0.9.10-15.el9.x86_64 24/66
#17 20.80 Installing : libidn2-2.3.0-7.el9.x86_64 25/66
#17 20.80 Installing : libxcrypt-4.4.18-3.el9.x86_64 26/66
#17 20.81 Installing : libpsl-0.21.1-5.el9.x86_64 27/66
#17 20.81 Installing : mpfr-4.1.0-7.el9.x86_64 28/66
#17 20.82 Installing : readline-8.1-4.el9.x86_64 29/66
#17 20.83 Installing : gawk-5.1.0-6.el9.x86_64 30/66
#17 20.83 Installing : alternatives-1.24-1.el9_5.1.x86_64 31/66
#17 20.84 Installing : bzip2-libs-1.0.8-8.el9.x86_64 32/66
#17 20.84 Installing : gdbm-libs-1:1.23-1.el9.x86_64 33/66
#17 20.84 Installing : keyutils-libs-1.6.3-1.el9.x86_64 34/66
#17 20.85 Installing : libbrotli-1.0.9-6.el9.x86_64 35/66
#17 20.85 Installing : libcap-2.48-9.el9_2.x86_64 36/66
#17 20.86 Installing : libcap-ng-0.8.2-7.el9.x86_64 37/66
#17 20.86 Installing : audit-libs-3.1.5-1.el9.x86_64 38/66
#17 20.86 Installing : libffi-3.4.2-8.el9.x86_64 39/66
#17 20.88 Installing : p11-kit-0.25.3-2.el9.x86_64 40/66
#17 20.88 Installing : p11-kit-trust-0.25.3-2.el9.x86_64 41/66
#17 20.88 Running scriptlet: p11-kit-trust-0.25.3-2.el9.x86_64 41/66
#17 21.04 Fatal glibc error: CPU does not support x86-64-v2
#17 21.04 warning: %post(p11-kit-trust-0.25.3-2.el9.x86_64) scriptlet failed, exit status 127
#17 21.04
#17 21.04 Error in POSTIN scriptlet in rpm package p11-kit-trust
#17 21.04 Installing : libnghttp2-1.43.0-6.el9.x86_64 42/66
#17 21.04 Installing : libverto-0.3.2-3.el9.x86_64 43/66
#17 21.05 Installing : pcre-8.44-4.el9.x86_64 44/66
#17 21.05 Installing : grep-3.6-5.el9.x86_64 45/66
#17 21.06 Installing : pcre2-10.40-6.el9.x86_64 46/66
#17 21.06 Installing : libselinux-3.6-1.el9.x86_64 47/66
#17 21.07 Installing : sed-4.8-9.el9.x86_64 48/66
#17 21.07 Installing : libsemanage-3.6-1.el9.x86_64 49/66
#17 21.09 Installing : shadow-utils-2:4.9-9.el9.x86_64 50/66
#17 21.09 Installing : libssh-config-0.10.4-13.el9.noarch 51/66
#17 21.11 Installing : coreutils-common-8.32-36.el9.x86_64 52/66
#17 21.12 Installing : openssl-fips-provider-so-3.0.7-6.el9_5.x86_64 53/66
#17 21.12 Installing : openssl-fips-provider-3.0.7-6.el9_5.x86_64 54/66
#17 21.15 Installing : openssl-libs-1:3.2.2-6.el9_5.x86_64 55/66
#17 21.19 Installing : coreutils-8.32-36.el9.x86_64 56/66
#17 21.19 Running scriptlet: ca-certificates-2024.2.69_v8.0.303-91.4.el9_4.noar 57/66
#17 21.34 Fatal glibc error: CPU does not support x86-64-v2
#17 21.34 error: %prein(ca-certificates-2024.2.69_v8.0.303-91.4.el9_4.noarch) scriptlet failed, exit status 127
#17 21.34
#17 21.34 Error in PREIN scriptlet in rpm package ca-certificates
#17 21.36 Installing : krb5-libs-1.21.1-4.el9_5.x86_64 58/66
#17 21.36 error: ca-certificates-2024.2.69_v8.0.303-91.4.el9_4.noarch: install failed
#17 21.36
#17 21.37 Installing : cyrus-sasl-lib-2.1.27-21.el9.x86_64 59/66
#17 21.37 Installing : libssh-0.10.4-13.el9.x86_64 60/66
#17 21.38 Installing : libevent-2.1.12-8.el9_4.x86_64 61/66
#17 21.39 Installing : openldap-2.6.6-3.el9.x86_64 62/66
#17 21.40 Installing : libcurl-7.76.1-31.el9.x86_64 63/66
#17 21.40 Installing : curl-minimal-7.76.1-31.el9.x86_64 64/66
#17 21.41 Installing : tar-2:1.34-7.el9.x86_64 65/66
#17 21.42 Installing : less-590-5.el9.x86_64 66/66
#17 21.43 Running scriptlet: filesystem-3.16-5.el9.x86_64 66/66
#17 21.58 Fatal glibc error: CPU does not support x86-64-v2
#17 21.58 warning: %posttrans(filesystem-3.16-5.el9.x86_64) scriptlet failed, exit status 127
#17 21.58
#17 21.58 Error in POSTTRANS scriptlet in rpm package filesystem
#17 21.59 Running scriptlet: less-590-5.el9.x86_64 66/66
#17 21.74 Fatal glibc error: CPU does not support x86-64-v2
#17 21.74 warning: %transfiletriggerin(glibc-common-2.34-125.el9_5.1.x86_64) scriptlet failed, exit status 127
#17 21.74
#17 21.74 Error in <unknown> scriptlet in rpm package less
#17 21.92 Verifying : alternatives-1.24-1.el9_5.1.x86_64 1/66
#17 21.92 Verifying : audit-libs-3.1.5-1.el9.x86_64 2/66
#17 21.92 Verifying : basesystem-11-13.el9.noarch 3/66
#17 21.92 Verifying : bash-5.1.8-9.el9.x86_64 4/66
#17 21.92 Verifying : bzip2-libs-1.0.8-8.el9.x86_64 5/66
#17 21.92 Verifying : ca-certificates-2024.2.69_v8.0.303-91.4.el9_4.noar 6/66
#17 21.92 Verifying : coreutils-8.32-36.el9.x86_64 7/66
#17 21.92 Verifying : coreutils-common-8.32-36.el9.x86_64 8/66
#17 21.92 Verifying : crypto-policies-20240828-2.git626aa59.el9_5.noarch 9/66
#17 21.92 Verifying : curl-minimal-7.76.1-31.el9.x86_64 10/66
#17 21.92 Verifying : cyrus-sasl-lib-2.1.27-21.el9.x86_64 11/66
#17 21.92 Verifying : filesystem-3.16-5.el9.x86_64 12/66
#17 21.92 Verifying : gawk-5.1.0-6.el9.x86_64 13/66
#17 21.92 Verifying : gdbm-libs-1:1.23-1.el9.x86_64 14/66
#17 21.92 Verifying : glibc-2.34-125.el9_5.1.x86_64 15/66
#17 21.92 Verifying : glibc-common-2.34-125.el9_5.1.x86_64 16/66
#17 21.92 Verifying : glibc-minimal-langpack-2.34-125.el9_5.1.x86_64 17/66
#17 21.92 Verifying : gmp-1:6.2.0-13.el9.x86_64 18/66
#17 21.92 Verifying : grep-3.6-5.el9.x86_64 19/66
#17 21.92 Verifying : keyutils-libs-1.6.3-1.el9.x86_64 20/66
#17 21.92 Verifying : krb5-libs-1.21.1-4.el9_5.x86_64 21/66
#17 21.92 Verifying : less-590-5.el9.x86_64 22/66
#17 21.92 Verifying : libacl-2.3.1-4.el9.x86_64 23/66
#17 21.92 Verifying : libattr-2.5.1-3.el9.x86_64 24/66
#17 21.92 Verifying : libbrotli-1.0.9-6.el9.x86_64 25/66
#17 21.92 Verifying : libcap-2.48-9.el9_2.x86_64 26/66
#17 21.92 Verifying : libcap-ng-0.8.2-7.el9.x86_64 27/66
#17 21.92 Verifying : libcom_err-1.46.5-5.el9.x86_64 28/66
#17 21.92 Verifying : libcurl-7.76.1-31.el9.x86_64 29/66
#17 21.92 Verifying : libevent-2.1.12-8.el9_4.x86_64 30/66
#17 21.92 Verifying : libffi-3.4.2-8.el9.x86_64 31/66
#17 21.92 Verifying : libgcc-11.5.0-2.el9.x86_64 32/66
#17 21.92 Verifying : libidn2-2.3.0-7.el9.x86_64 33/66
#17 21.92 Verifying : libnghttp2-1.43.0-6.el9.x86_64 34/66
#17 21.92 Verifying : libpsl-0.21.1-5.el9.x86_64 35/66
#17 21.92 Verifying : libselinux-3.6-1.el9.x86_64 36/66
#17 21.92 Verifying : libsemanage-3.6-1.el9.x86_64 37/66
#17 21.92 Verifying : libsepol-3.6-1.el9.x86_64 38/66
#17 21.92 Verifying : libsigsegv-2.13-4.el9.x86_64 39/66
#17 21.92 Verifying : libssh-0.10.4-13.el9.x86_64 40/66
#17 21.92 Verifying : libssh-config-0.10.4-13.el9.noarch 41/66
#17 21.92 Verifying : libtasn1-4.16.0-8.el9_1.x86_64 42/66
#17 21.92 Verifying : libunistring-0.9.10-15.el9.x86_64 43/66
#17 21.92 Verifying : libverto-0.3.2-3.el9.x86_64 44/66
#17 21.92 Verifying : libxcrypt-4.4.18-3.el9.x86_64 45/66
#17 21.92 Verifying : mpfr-4.1.0-7.el9.x86_64 46/66
#17 21.92 Verifying : ncurses-base-6.2-10.20210508.el9.noarch 47/66
#17 21.92 Verifying : ncurses-libs-6.2-10.20210508.el9.x86_64 48/66
#17 21.92 Verifying : openldap-2.6.6-3.el9.x86_64 49/66
#17 21.92 Verifying : openssl-fips-provider-3.0.7-6.el9_5.x86_64 50/66
#17 21.92 Verifying : openssl-fips-provider-so-3.0.7-6.el9_5.x86_64 51/66
#17 21.92 Verifying : openssl-libs-1:3.2.2-6.el9_5.x86_64 52/66
#17 21.92 Verifying : p11-kit-0.25.3-2.el9.x86_64 53/66
#17 21.92 Verifying : p11-kit-trust-0.25.3-2.el9.x86_64 54/66
#17 21.92 Verifying : pcre-8.44-4.el9.x86_64 55/66
#17 21.92 Verifying : pcre2-10.40-6.el9.x86_64 56/66
#17 21.92 Verifying : pcre2-syntax-10.40-6.el9.noarch 57/66
#17 21.92 Verifying : publicsuffix-list-dafsa-20210518-3.el9.noarch 58/66
#17 21.92 Verifying : readline-8.1-4.el9.x86_64 59/66
#17 21.92 Verifying : redhat-release-9.5-0.6.el9.x86_64 60/66
#17 21.92 Verifying : sed-4.8-9.el9.x86_64 61/66
#17 21.92 Verifying : setup-2.13.7-10.el9.noarch 62/66
#17 21.92 Verifying : shadow-utils-2:4.9-9.el9.x86_64 63/66
#17 21.92 Verifying : tar-2:1.34-7.el9.x86_64 64/66
#17 21.92 Verifying : tzdata-2024b-2.el9.noarch 65/66
#17 21.92 Verifying : zlib-1.2.11-40.el9.x86_64 66/66
#17 22.01 Installed products updated.
#17 22.05
#17 22.05 Installed:
#17 22.05 alternatives-1.24-1.el9_5.1.x86_64
#17 22.05 audit-libs-3.1.5-1.el9.x86_64
#17 22.05 basesystem-11-13.el9.noarch
#17 22.05 bash-5.1.8-9.el9.x86_64
#17 22.05 bzip2-libs-1.0.8-8.el9.x86_64
#17 22.05 coreutils-8.32-36.el9.x86_64
#17 22.05 coreutils-common-8.32-36.el9.x86_64
#17 22.05 crypto-policies-20240828-2.git626aa59.el9_5.noarch
#17 22.05 curl-minimal-7.76.1-31.el9.x86_64
#17 22.05 cyrus-sasl-lib-2.1.27-21.el9.x86_64
#17 22.05 filesystem-3.16-5.el9.x86_64
#17 22.05 gawk-5.1.0-6.el9.x86_64
#17 22.05 gdbm-libs-1:1.23-1.el9.x86_64
#17 22.05 glibc-2.34-125.el9_5.1.x86_64
#17 22.05 glibc-common-2.34-125.el9_5.1.x86_64
#17 22.05 glibc-minimal-langpack-2.34-125.el9_5.1.x86_64
#17 22.05 gmp-1:6.2.0-13.el9.x86_64
#17 22.05 grep-3.6-5.el9.x86_64
#17 22.05 keyutils-libs-1.6.3-1.el9.x86_64
#17 22.05 krb5-libs-1.21.1-4.el9_5.x86_64
#17 22.05 less-590-5.el9.x86_64
#17 22.05 libacl-2.3.1-4.el9.x86_64
#17 22.05 libattr-2.5.1-3.el9.x86_64
#17 22.05 libbrotli-1.0.9-6.el9.x86_64
#17 22.05 libcap-2.48-9.el9_2.x86_64
#17 22.05 libcap-ng-0.8.2-7.el9.x86_64
#17 22.05 libcom_err-1.46.5-5.el9.x86_64
#17 22.05 libcurl-7.76.1-31.el9.x86_64
#17 22.05 libevent-2.1.12-8.el9_4.x86_64
#17 22.05 libffi-3.4.2-8.el9.x86_64
#17 22.05 libgcc-11.5.0-2.el9.x86_64
#17 22.05 libidn2-2.3.0-7.el9.x86_64
#17 22.05 libnghttp2-1.43.0-6.el9.x86_64
#17 22.05 libpsl-0.21.1-5.el9.x86_64
#17 22.05 libselinux-3.6-1.el9.x86_64
#17 22.05 libsemanage-3.6-1.el9.x86_64
#17 22.05 libsepol-3.6-1.el9.x86_64
#17 22.05 libsigsegv-2.13-4.el9.x86_64
#17 22.05 libssh-0.10.4-13.el9.x86_64
#17 22.05 libssh-config-0.10.4-13.el9.noarch
#17 22.05 libtasn1-4.16.0-8.el9_1.x86_64
#17 22.05 libunistring-0.9.10-15.el9.x86_64
#17 22.05 libverto-0.3.2-3.el9.x86_64
#17 22.05 libxcrypt-4.4.18-3.el9.x86_64
#17 22.05 mpfr-4.1.0-7.el9.x86_64
#17 22.05 ncurses-base-6.2-10.20210508.el9.noarch
#17 22.05 ncurses-libs-6.2-10.20210508.el9.x86_64
#17 22.05 openldap-2.6.6-3.el9.x86_64
#17 22.05 openssl-fips-provider-3.0.7-6.el9_5.x86_64
#17 22.05 openssl-fips-provider-so-3.0.7-6.el9_5.x86_64
#17 22.05 openssl-libs-1:3.2.2-6.el9_5.x86_64
#17 22.05 p11-kit-0.25.3-2.el9.x86_64
#17 22.05 p11-kit-trust-0.25.3-2.el9.x86_64
#17 22.05 pcre-8.44-4.el9.x86_64
#17 22.05 pcre2-10.40-6.el9.x86_64
#17 22.05 pcre2-syntax-10.40-6.el9.noarch
#17 22.05 publicsuffix-list-dafsa-20210518-3.el9.noarch
#17 22.05 readline-8.1-4.el9.x86_64
#17 22.05 redhat-release-9.5-0.6.el9.x86_64
#17 22.05 sed-4.8-9.el9.x86_64
#17 22.05 setup-2.13.7-10.el9.noarch
#17 22.05 shadow-utils-2:4.9-9.el9.x86_64
#17 22.05 tar-2:1.34-7.el9.x86_64
#17 22.05 tzdata-2024b-2.el9.noarch
#17 22.05 zlib-1.2.11-40.el9.x86_64
#17 22.05 Failed:
#17 22.05 ca-certificates-2024.2.69_v8.0.303-91.4.el9_4.noarch
#17 22.05
#17 22.05 Error: Transaction failed
#17 ERROR: process "/bin/sh -c set -xeuo pipefail && mkdir -p /tmp/overlay/usr/libexec/ && touch /tmp/overlay/usr/libexec/grepconf.sh && chmod +x /tmp/overlay/usr/libexec/grepconf.sh && yum update -y && yum install --installroot /tmp/overlay --setopt install_weak_deps=false --nodocs -y less curl-minimal grep `# required by health-check` zlib `#required by java` shadow-utils `# required by useradd` tar `# required to support kubectl cp` && rm -rf /tmp/overlay/var/cache/*" did not complete successfully: exit code: 1
------
> [packages 2/2] RUN set -xeuo pipefail && mkdir -p /tmp/overlay/usr/libexec/ && touch /tmp/overlay/usr/libexec/grepconf.sh && chmod +x /tmp/overlay/usr/libexec/grepconf.sh && yum update -y && yum install --installroot /tmp/overlay --setopt install_weak_deps=false --nodocs -y less curl-minimal grep `# required by health-check` zlib `#required by java` shadow-utils `# required by useradd` tar `# required to support kubectl cp` && rm -rf /tmp/overlay/var/cache/*:
22.05 sed-4.8-9.el9.x86_64
22.05 setup-2.13.7-10.el9.noarch
22.05 shadow-utils-2:4.9-9.el9.x86_64
22.05 tar-2:1.34-7.el9.x86_64
22.05 tzdata-2024b-2.el9.noarch
22.05 zlib-1.2.11-40.el9.x86_64
22.05 Failed:
22.05 ca-certificates-2024.2.69_v8.0.303-91.4.el9_4.noarch
22.05
22.05 Error: Transaction failed
------
Dockerfile:32
--------------------
31 |
32 | >>> RUN \
33 | >>> set -xeuo pipefail && \
34 | >>> mkdir -p /tmp/overlay/usr/libexec/ && \
35 | >>> touch /tmp/overlay/usr/libexec/grepconf.sh && \
36 | >>> chmod +x /tmp/overlay/usr/libexec/grepconf.sh && \
37 | >>> yum update -y && \
38 | >>> yum install --installroot /tmp/overlay --setopt install_weak_deps=false --nodocs -y \
39 | >>> less \
40 | >>> curl-minimal grep `# required by health-check` \
41 | >>> zlib `#required by java` \
42 | >>> shadow-utils `# required by useradd` \
43 | >>> tar `# required to support kubectl cp` && \
44 | >>> rm -rf /tmp/overlay/var/cache/*
45 |
--------------------
ERROR: failed to solve: process "/bin/sh -c set -xeuo pipefail && mkdir -p /tmp/overlay/usr/libexec/ && touch /tmp/overlay/usr/libexec/grepconf.sh && chmod +x /tmp/overlay/usr/libexec/grepconf.sh && yum update -y && yum install --installroot /tmp/overlay --setopt install_weak_deps=false --nodocs -y less curl-minimal grep `# required by health-check` zlib `#required by java` shadow-utils `# required by useradd` tar `# required to support kubectl cp` && rm -rf /tmp/overlay/var/cache/*" did not complete successfully: exit code: 1
Weirdly enough the equivalent script in Trino Gateway works for me and I can build all three architecture containers.
Maybe we should use microdnf in the builder/packages phase .. if that worked before .. but not on the output as we did ..
@mosabua it's about packages, not an installation method. Seems like some glibc incompatibility. Worked for me when I was doing that, stopped working now so I guess this is due to some package update in the meantime.
@hashhar mentioned on slack that it might be this orbstack bug - orbstack/orbstack#1457