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

Can't run Wasp on Termux (Linux Terminal emulator for Android) #1100

Open
sparkle666 opened this issue Apr 4, 2023 · 12 comments
Open

Can't run Wasp on Termux (Linux Terminal emulator for Android) #1100

sparkle666 opened this issue Apr 4, 2023 · 12 comments
Labels
help wanted Extra attention is needed

Comments

@sparkle666
Copy link

Describe the bug
Wasp says: cannot execute binary file: Exec format error when trying to install on termux.

To Reproduce
Steps to reproduce the behavior:

  1. Install wasp
  2. run: wasp new WaspApp

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

IMG_20230404_134226

Smartphone (please complete the following information):

  • Device: Redmi 9T
  • OS: Andriod

Any work around for this?

@infomiho
Copy link
Contributor

infomiho commented Apr 4, 2023

Could you please run uname -a?

@sparkle666
Copy link
Author

Could you please run uname -a?

Where should I add this? On the "wasp new Waspapp" command?

@infomiho
Copy link
Contributor

infomiho commented Apr 4, 2023

Run it in your terminal as a command. It will give you info about the CPU arch.

@sparkle666
Copy link
Author

Run it in your terminal as a command. It will give you info about the CPU arch.

I got the below:
Linux localhost 4.19.113-perf-g4866acac8040 #1 SMP PREEMPT Sat Jul 30 15:16:22 CST 2022 aarch64 Android

@Martinsos
Copy link
Member

@sparkle666 for now we are building Wasp for Ubuntu (which works for most Linux distributions) and for MacOS -> but we don't build it for Android! I have to admit we haven't expected anybody to use it on Android -> what is your use case for using it on Android, why do you want to do that?

One way to go around, in theory, is to build the Wasp on your own -> you can check https://github.com/wasp-lang/wasp/tree/main/waspc for instructions on how to do that. But for that you will need to set up Haskell development stuff on your Android which might also be tricky.

@infomiho
Copy link
Contributor

infomiho commented Apr 5, 2023

Github Actions currently don't support aarch64, we depend on Github adding support for that actions/runner-images#5631

@Martinsos Martinsos added the wontfix This will not be worked on label Apr 5, 2023
@Martinsos Martinsos changed the title Can't run Wasp on Termux Can't run Wasp on Termux (Linux Terminal emulator for Android) Apr 5, 2023
@Martinsos
Copy link
Member

Martinsos commented Apr 5, 2023

Ok, labeling this one as won't fix for now but we can let it stick around for a while.

@Martinsos
Copy link
Member

Closing since we can't dedicate resources to this for now + it is a very niche use case. If it becomes more of a priority we can reopen!

@finagolfin
Copy link

Hey, just stumbled on this issue, I am a Termux package maintainer. Building the wasp compiler for Termux doesn't require an AArch64 github action image, we currently cross-compile all Termux packages from Ubuntu x86_64 github action images, including ghc and several Haskell packages.

I encourage you to take a look at our build scripts and maybe you can submit a Termux package, which users like @sparkle666 would like to use. With more than 10 million downloads of the Termux app on the Play Store, you may pick up some more users this way.

@sparkle666
Copy link
Author

Hey, just stumbled on this issue, I am a Termux package maintainer. Building the wasp compiler for Termux doesn't require an AArch64 github action image, we currently cross-compile all Termux packages from Ubuntu x86_64 github action images, including ghc and several Haskell packages.

I encourage you to take a look at our build scripts and maybe you can submit a Termux package, which users like @sparkle666 would like to use. With more than 10 million downloads of the Termux app on the Play Store, you may pick up some more users this way.

Greetings, what language do I need to learn to build a termux package like that allows running wasp on termux?

@finagolfin
Copy link

The Termux package build is just a bunch of bash scripts, but since this compiler is written in Haskell, probably best if one of the wasp devs looks at cross-compiling it for Android.

@Martinsos
Copy link
Member

Martinsos commented May 26, 2023

Thanks for info @finagolfin ! This is still quite out of our reach at the moment, due to a ton of other stuff we are working on, but I will reopen issue in case somebody wants to jump in and take a stab at it.

@Martinsos Martinsos reopened this May 26, 2023
@Martinsos Martinsos added help wanted Extra attention is needed and removed wontfix This will not be worked on labels May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants