mmornati / docker-mock-rpmbuilder

Build RPMs using the Mock Project (for any platform)
GNU General Public License v2.0
62 stars 42 forks source link

Crossbuilding fails #25

Open waja opened 1 year ago

waja commented 1 year ago

Hi,

I tried to crossbuild for aarch64 on x86_64:

docker run --rm --privileged=true --volume=".:/rpmbuild" -w "/rpmbuild" \
 --volume="/output:/rpmbuild/output" -e MOUNT_POINT="/rpmbuild" \
 -e MOCK_CONFIG=fedora-rawhide-aarch64 -e SOURCES="monitoring-plugins-b784428.tar.gz" \
 -e SPEC_FILE=monitoring-plugins-git.spec  -e NETWORK="true" -e NO_CLEANUP="true" \
 ghcr.io/waja/mock-rpmbuilder:latest

https://github.com/waja/docker-mock-rpmbuilder is just a fork, but with CI pipelines to generate and upload images to GHCR.

There are several error: failed to exec scriptlet interpreter /bin/sh: Exec format error errors and finally the build fails with Error: call to /usr/sbin/ldconfig failed.nError: call to /usr/sbin/iconvconfig failed.nError: call to /usr/sbin/ldconfig failed.n.

The full output can be found in the mock-builder.log.

Thanks Jan

k0ste commented 1 year ago

In your log:

  Running scriptlet: elfutils-default-yama-scope-0.189-2.fc39.noarch     76/140
error: failed to exec scriptlet interpreter /bin/sh: Exec format error
warning: %post(elfutils-default-yama-scope-0.189-2.fc39.noarch) scriptlet failed, exit status 127

Error in POSTIN scriptlet in rpm package elfutils-default-yama-scope
  Running scriptlet: p11-kit-trust-0.24.1-6.fc38.aarch64                 79/140
error: failed to exec scriptlet interpreter /bin/sh: Exec format error
warning: %post(p11-kit-trust-0.24.1-6.fc38.aarch64) scriptlet failed, exit status 127

Error in POSTIN scriptlet in rpm package p11-kit-trust
  Running scriptlet: ca-certificates-2023.2.60-2.fc38.noarch             99/140
error: failed to exec scriptlet interpreter /bin/sh: Exec format error
error: %prein(ca-certificates-2023.2.60-2.fc38.noarch) scriptlet failed, exit status 127

Error in PREIN scriptlet in rpm package ca-certificates
  Installing       : rpm-sequoia-1.4.0-2.fc39.aarch64                   100/140
error: ca-certificates-2023.2.60-2.fc38.noarch: install failed
  Running scriptlet: tpm2-tss-4.0.1-3.fc38.aarch64                      132/140
error: failed to exec scriptlet interpreter /bin/sh: Exec format error
error: %prein(tpm2-tss-4.0.1-3.fc38.aarch64) scriptlet failed, exit status 127

Error in PREIN scriptlet in rpm package tpm2-tss
  Installing       : ima-evm-utils-1.4-7.fc38.aarch64                   133/140
error: tpm2-tss-4.0.1-3.fc38.aarch64: install failed
  Running scriptlet: dnf-4.15.0-1.fc39.noarch                           139/140
error: failed to exec scriptlet interpreter /bin/sh: Exec format error
warning: %post(dnf-4.15.0-1.fc39.noarch) scriptlet failed, exit status 127

Error in POSTIN scriptlet in rpm package dnf
  Running scriptlet: rpm-4.18.1-3.fc39.aarch64                          140/140
error: failed to exec scriptlet interpreter /bin/sh: Exec format error
error: %prein(rpm-4.18.1-3.fc39.aarch64) scriptlet failed, exit status 127

Error in PREIN scriptlet in rpm package rpm
  Running scriptlet: filesystem-3.18-4.fc39.aarch64                     140/140
error: rpm-4.18.1-3.fc39.aarch64: install failed

  Running scriptlet: rpm-4.18.1-3.fc39.aarch64                          140/140
error: failed to exec scriptlet interpreter /bin/sh: Exec format error
warning: %transfiletriggerin(glib2-2.76.2-1.fc39.aarch64) scriptlet failed, exit status 127

Error in <unknown> scriptlet in rpm package rpm

Overall

Failed:
  ca-certificates-2023.2.60-2.fc38.noarch       rpm-4.18.1-3.fc39.aarch64
  tpm2-tss-4.0.1-3.fc38.aarch64                Error: Transaction failed

You should investigate what exactly happened with this packages