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

Simple Haskell script causes "ghc: failed to create OS thread: Cannot allocate memory" #27

Open
discorddioxin opened this issue Feb 10, 2021 · 4 comments · Fixed by #32
Labels

Comments

@discorddioxin
Copy link

wandbox -l Haskell run C:/Users/MyAccount/Desktop/haskell.hs

Running the command command causes the following error

ghc: failed to create OS thread: Cannot allocate memory

Works fine for Java files located in the same directory.

@github-actions
Copy link

Hey, thanks for contributing to this by raising an issue

@srz-zumix
Copy link
Owner

This issue is on the Wandbox side.
https://wandbox.org/permlink/3LRGXCELv2xAv5W3

Perhaps the Head environment is corrupted.
Others are OK, so you can use it by specifying the version.
e.g.

wandbox -l Haskell -c ghc-8.4.2 run C:/Users/MyAccount/Desktop/haskell.hs

I made a pull request, so please check that.
melpon/wandbox-builder#76

@srz-zumix
Copy link
Owner

@srz-zumix
Copy link
Owner

ghc-head is updated, but failed.

collect2: fatal error: ld terminated with signal 25 [File size limit exceeded], core dumped
compilation terminated.
`cc' failed in phase `Linker'. (Exit code: 1)

ghc output file is tool large, required -dynamic option.
https://wandbox.org/permlink/ZmVcCY5mdasada3N

@srz-zumix srz-zumix reopened this Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants