srz-zumix / wandbox-api

Wandbox API for Python, and wrapper CLI commands
MIT License
11 stars 2 forks source link

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

Open discorddioxin opened 3 years ago

discorddioxin commented 3 years ago
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[bot] commented 3 years ago

Hey, thanks for contributing to this by raising an issue

srz-zumix commented 3 years ago

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. https://github.com/melpon/wandbox-builder/pull/76

srz-zumix commented 3 years ago

https://github.com/melpon/wandbox/blob/master/cattleshed/cattleshed.conf.in#L38

srz-zumix commented 3 years ago

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