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

Doesn't work on WSL #21

Open
sargunv opened this issue Aug 5, 2016 · 7 comments
Open

Doesn't work on WSL #21

sargunv opened this issue Aug 5, 2016 · 7 comments

Comments

@sargunv
Copy link

sargunv commented Aug 5, 2016

Windows Subsystem for Linux should be compatible with unmodified Linux executables, but Chips doesn't work:

Failed to execute process '/home/sargun/.local/bin/chips'. Reason:
exec: Exec format error
The file '/home/sargun/.local/bin/chips' is marked as an executable but could not be run by the operating system.

Additionally, install from source doesn't work due to this WSL bug: microsoft/WSL#307

@xtendo-org
Copy link
Owner

I guess this happens with all Linux x64 binaries compiled with a recent version of GHC.

For now I don't own a Windows machine, but @simnalamburt any chance you can try WSL?

@simnalamburt
Copy link
Collaborator

I do have a Windows 10 machine to test it but I'm afraid that I don't have enough spare time to debug. 😢

Maybe I'll be able to try it at upcoming next weekend; May 13rd.

@simnalamburt
Copy link
Collaborator

I just made some WSL environment, and I just found out that current WSL implementation cannot even run the stack binary properly.

sudo apt-get update && sudo apt-get install stack -y
stack
# timer_create: Function not implemented

image

Reference

@simnalamburt
Copy link
Collaborator

There's no possible way to debug it if I cannot even compile it. This is not a issue with Chips so please file the issue to the BashOnWindows issue tracker.

@kinoru Closing?

@sargunv
Copy link
Author

sargunv commented Aug 16, 2016

It's already been reported there, I mentioned that in the OP. Regardless, I think it should stay open here until it's resolved. Your choice though.

@xtendo-org
Copy link
Owner

@sargunster It seems your description in the OP is correct. Thanks.

@simnalamburt Thank you for confirming the problem. By the way, I have a feeling that, even if WSL shipped with a complete set of Linux syscalls, somehow Chips would still not work.

I do not strongly object closing this issue, but my personal preference is to leave it open, as newcomers would normally check the list of open issues before they file a new one.

Oh, I wish I could be as cool as yyuu.

@simnalamburt
Copy link
Collaborator

I recently started to use WSL, so I'm trying to resolve this issue now. Looks like WSL now does support the haskell, but I still receive this error message.

Failed to execute process './chips'. Reason:
exec: Exec format error
The file './chips' is marked as an executable but could not be run by the operating system.

I suspect the UPX, but not sure. I'll comment if I get some updates.

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

3 participants