lueschem / edi

Embedded development infrastructure.
https://www.get-edi.io
GNU Lesser General Public License v3.0
38 stars 12 forks source link

Cross Architecture Image Builds fail on Ubuntu Impish #73

Closed lueschem closed 2 years ago

lueschem commented 2 years ago

Issue

Currently cross architecture image builds (here amd64 --> arm64) fail on Ubuntu Impish:

foo@bar:~/edi-workspace/edi-cl$ sudo edi -v image create iot-gate-imx8-buster-arm64.yml
INFO:root:Load time dictionary:
edi_configuration_name: iot-gate-imx8-buster-arm64
edi_configure_remote_target: false
edi_create_distributable_image: true
edi_current_display: '0'

...

I: Extracting liblzma5...
I: Extracting zlib1g...
INFO:root:Running command: ['chroot', '/home/lueschem/edi-workspace/edi-cl/tmpogz3of8n/rootfs', '/debootstrap/debootstrap', '--second-stage']
/bin/sh: 0: Illegal option --
Error: Command '['chroot', '/home/lueschem/edi-workspace/edi-cl/tmpogz3of8n/rootfs', '/debootstrap/debootstrap', '--second-stage']' returned non-zero exit status 2.
For more information increase the log level.

Reason

The root cause seems to be this bug: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1947860

Workaround

Until the issue is fixed, the qemu-user-static package can be downloaded and installed manually from bullseye-backports: https://packages.debian.org/de/bullseye-backports/qemu-user-static

lueschem commented 2 years ago

Fixed with qemu-user-static=1:6.0+dfsg-2expubuntu1.1.