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

arm64 appimage fails to launch on Ubuntu Asahi on M1 Mac #5893

Open
1 task done
popey opened this issue Nov 9, 2023 · 1 comment
Open
1 task done

arm64 appimage fails to launch on Ubuntu Asahi on M1 Mac #5893

popey opened this issue Nov 9, 2023 · 1 comment

Comments

@popey
Copy link

popey commented Nov 9, 2023

Is there an existing issue for this?

Describe the bug

I am running Ubuntu Asahi 23.10 (Mantic) on an apple MacBook Air M1.

The arm64 build of gdevelop fails to launch.

Steps to reproduce

alan@asimo:~/Downloads$ wget -q https://github.com/4ian/GDevelop/releases/download/v5.3.180/GDevelop-5-5.3.180-arm64.AppImage
alan@asimo:~/Downloads$ chmod +x GDevelop-5-5.3.180-arm64.AppImage
alan@asimo:~/Downloads$ ./GDevelop-5-5.3.180-arm64.AppImage 
QSocketNotifier: Can only be used with threads started with QThread
[appimagelauncher-binfmt-bypass/lib] ERROR: child exited with code 11

GDevelop platform

Desktop

GDevelop version

5-5.3.180

Platform info

OS (e.g. Windows, Linux, macOS, Android, iOS)

Asahi Ubuntu Linux

OS Version (e.g. Windows 10, macOS 10.15)

23.10

Browser(For Web) (e.g. Chrome, Firefox, Safari)

Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)

Additional context

No response

@popey
Copy link
Author

popey commented Nov 10, 2023

Looks like this is the fact that Asahi Linux uses a 16K page size, and the binary was built with 4K pagesize (0x1000 in the output below).

alan@asimo:~/Downloads/squashfs-root$ readelf -l ./gdevelop
                                        
Elf file type is DYN (Position-Independent Executable file)
Entry point 0x1cba300                                                            
There are 12 program headers, starting at offset 64
                                        
Program Headers:                                                                 
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  PHDR           0x0000000000000040 0x0000000000000040 0x0000000000000040
                 0x00000000000002a0 0x00000000000002a0  R      0x8
  INTERP         0x00000000000002e0 0x00000000000002e0 0x00000000000002e0
                 0x000000000000001b 0x000000000000001b  R      0x1
      [Requesting program interpreter: /lib/ld-linux-aarch64.so.1]
  LOAD           0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000001cb92e4 0x0000000001cb92e4  R      0x1000
  LOAD           0x0000000001cb9300 0x0000000001cba300 0x0000000001cba300
                 0x0000000006179c20 0x0000000006179c20  R E    0x1000
  LOAD           0x0000000007e32f20 0x0000000007e34f20 0x0000000007e34f20
                 0x0000000000559f10 0x0000000000559f10  RW     0x1000
  LOAD           0x000000000838ce40 0x000000000838fe40 0x000000000838fe40
                 0x0000000000074e78 0x000000000018e560  RW     0x1000
  TLS            0x0000000007e32f20 0x0000000007e34f20 0x0000000007e34f20
                 0x0000000000000018 0x0000000000000120  R      0x8
  DYNAMIC        0x00000000083682b0 0x000000000836a2b0 0x000000000836a2b0
                 0x00000000000003e0 0x00000000000003e0  RW     0x8
  GNU_RELRO      0x0000000007e32f20 0x0000000007e34f20 0x0000000007e34f20
                 0x0000000000559f10 0x000000000055a0e0  R      0x1
  GNU_EH_FRAME   0x0000000001ca7990 0x0000000001ca7990 0x0000000001ca7990
                 0x00000000000034e4 0x00000000000034e4  R      0x4
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RW     0x0
  NOTE           0x00000000000002fc 0x00000000000002fc 0x00000000000002fc
                 0x0000000000000064 0x0000000000000064  R      0x4

More details here: https://github.com/AsahiLinux/docs/wiki/Broken-Software

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

No branches or pull requests

1 participant