-
Notifications
You must be signed in to change notification settings - Fork 41
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
"JavaScript exception: Error: spawn ENAMETOOLONG" during compilation #19
Comments
Same issue here. Can't build project with a ghcjs-dom dependency. This time with stack. |
This is probably because the command trying to be executed is too long because of the commandline arguments. On windows commandline arguments must be less than 2047 characters.
|
Could be the commandline length, but "ENAMETOOLONG" sounds more like the windows MAX_PATH restriction. ghcjs-dom has rather long module names, and they end up in the filepath. |
Was just trying to build reflex-dom-stack-demo, which depends on |
Same error here, windows 10, even trying to build in C: |
Has anyone got any tips for resolving this? |
If it's Windows file system and Haskell modules having really long names... On Wednesday, June 15, 2016, d0kt0r zer0 [email protected] wrote:
|
Can't really tell if you're joking... anyway, changing the name of the many hundreds of ghcjs-dom modules and then changing the names in all the downstream packages that require them is hardly feasible. I don't believe it's the windows file system that is at fault - looks maybe more like something to do with the size of the invocation of ghcjs when building ghcjs-dom? |
Windows paths have a 250 char limit last I heard. Find the long name / The gl / OpenGL libs had to shorten their module names / hierarchy to work On Wednesday, June 15, 2016, d0kt0r zer0 [email protected] wrote:
|
I've read Window's max path limit has been fixed in "Windows 10 Build 14352." Upgrading windows might be the fix. See: http://winaero.com/blog/how-to-enable-ntfs-long-paths-in-windows-10/ |
Tried the windows update, with no success. So I don't believe it to be the max character limit on the windows paths. But rather the total number characters used in the command line parameters when spawning some process becoming too many for windows to handle. (that 2047 characters that @karshan mentioned) Here we go: VirtualBox + Linux ... sigh |
A solution for Windows (untested at the moment):
Edit: Same error in "sh", Windows build tools do not solve the problem. |
Windows 10 with GHCJS installed as per the QuickStart instructions (https://github.com/ghcjs/ghcjs/blob/master/README.markdown#quick-start). Node v4.0.0
cabal install ghcjs-dom --ghcjs
fails with "JavaScript exception: Error: spawn ENAMETOOLONG".Build log here: https://gist.github.com/j-mueller/217c26434e91a812ec6e
The text was updated successfully, but these errors were encountered: