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

appimagetool considering a shell script as a different architecture #1163

Closed
cristianrz opened this issue Dec 20, 2021 · 3 comments
Closed

Comments

@cristianrz
Copy link

So I was trying to build an appimage for aarm64 (using Debian on a VM inside Mac M1) and this happened:

debian@debian:~/dockie$ ARCH=aarch64 ./appimagetool-aarch64.AppImage -v AppDir 
appimagetool, continuous build (commit a2d9cfc), build <local dev build> built on 2021-11-10 17:45:57 UTC
WARNING: appstreamcli command is missing, please install it if you want to use AppStream metadata
Desktop file: /home/debian/dockie/AppDir/dockie.desktop
Name: dockie
Icon: dockie
Exec: dockie
Comment entry not found in desktop file
Comment: (null)
Type: Application
Categories: Development;
/home/debian/dockie/AppDir/usr/bin/graboid used for determining architecture aarch64
/home/debian/dockie/AppDir/usr/bin/proot used for determining architecture aarch64
/home/debian/dockie/AppDir/AppRun used for determining architecture armhf
More than one architectures were found of the AppDir source directory "AppDir"
A valid architecture with the ARCH environmental variable should be provided
e.g. ARCH=x86_64 appimagetool ...
debian@debian:~/dockie$ file AppDir/usr/bin/graboid AppDir/AppRun 
AppDir/usr/bin/graboid: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, Go BuildID=0hBGcJft_XngBwEomgEP/Tgva4mrJXsxfaTAjDikq/DCcYhILPVrat2ooRlxX7/snYc6Ie_YCcsfCZ43w3S, not stripped
AppDir/AppRun:          POSIX shell script, ASCII text executable
debian@debian:~/dockie$ uname -m
aarch64

so my system is aarch64, my binaries are all aarch64 but I can't build my AppImage because it considers that my bash script has a different architecture, is this a bug or am I doing something wrong?

@cristianrz cristianrz changed the title appimagetool considering a bash script as a different architecture appimagetool considering a shell script as a different architecture Dec 20, 2021
@iamsergio
Copy link

It's ARCH=arm_aarch64 for some reason

probonopd added a commit to AppImage/appimagetool that referenced this issue May 25, 2024
@probonopd
Copy link
Member

Good point. We should fix this in the new appimagetool version maintained over at https://github.com/AppImage/appimagetool/. Created a pull request there.

TheAssassin pushed a commit to AppImage/appimagetool that referenced this issue Aug 5, 2024
probonopd added a commit to AppImage/appimagetool that referenced this issue Aug 5, 2024
@adrianinsaval
Copy link

for anyone stumbling upon this use the release from https://github.com/AppImage/appimagetool/releases/tag/continuous instead as it was is fixed there, see AppImage/appimagetool#54

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

4 participants