Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non amd64 build #39

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

freyes
Copy link
Member

@freyes freyes commented Nov 23, 2023

No description provided.

@freyes
Copy link
Member Author

freyes commented Nov 23, 2023

The snap produced with this patch builds correctly on aarch64, although when running qemu-img it segfaults:

$ octavia-diskimage-retrofit jammy-server-cloudimg-arm64.img octavia.img
/snap/octavia-diskimage-retrofit/x7/bin/retrofit.sh: line 81: 395388 Illegal instruction     (core dumped) qemu-img convert -O raw $INPUT_IMAGE $TEMP_IMAGE_FILE

Looking at ldd's output seems to have correctly linked:

$ ldd /snap/octavia-diskimage-retrofit/current/usr/bin/qemu-img
        linux-vdso.so.1 (0x0000ffff97277000)
        liburing.so.2 => /snap/octavia-diskimage-retrofit/current/usr/lib/aarch64-linux-gnu/liburing.so.2 (0x0000ffff96770000)
        libglib-2.0.so.0 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libglib-2.0.so.0 (0x0000ffff96620000)
        libgmodule-2.0.so.0 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libgmodule-2.0.so.0 (0x0000ffff96600000)
        libgnutls.so.30 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libgnutls.so.30 (0x0000ffff96400000)
        libm.so.6 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libm.so.6 (0x0000ffff96360000)
        libzstd.so.1 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libzstd.so.1 (0x0000ffff96290000)
        libz.so.1 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libz.so.1 (0x0000ffff96260000)
        libaio.so.1 => /snap/octavia-diskimage-retrofit/current/usr/lib/aarch64-linux-gnu/libaio.so.1 (0x0000ffff96240000)
        libc.so.6 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libc.so.6 (0x0000ffff96090000)
        /lib/ld-linux-aarch64.so.1 (0x0000ffff9723a000)
        libpcre.so.3 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libpcre.so.3 (0x0000ffff96010000)
        libp11-kit.so.0 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libp11-kit.so.0 (0x0000ffff95ec0000)
        libidn2.so.0 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libidn2.so.0 (0x0000ffff95e90000)
        libunistring.so.2 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libunistring.so.2 (0x0000ffff95cd0000)
        libtasn1.so.6 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libtasn1.so.6 (0x0000ffff95ca0000)
        libnettle.so.8 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libnettle.so.8 (0x0000ffff95c40000)
        libhogweed.so.6 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libhogweed.so.6 (0x0000ffff95be0000)
        libgmp.so.10 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libgmp.so.10 (0x0000ffff95b50000)
        libffi.so.8 => /snap/core22/current/usr/lib/aarch64-linux-gnu/libffi.so.8 (0x0000ffff95b30000)

@freyes freyes requested a review from coreycb November 23, 2023 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant