-
Notifications
You must be signed in to change notification settings - Fork 841
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
stack build network
on Windows via Cygwin SSH fails where cabal install network
succeeds
#1714
Comments
It'd probably help to include how
|
Found out a workaround for now by gleaning the output of
After this, the So, it looks like all I'd need for this ticket is a way to pass extra arguments to the |
Yeah, that's tracked by #1438 PRs welcome! It should be a pretty easy change. Seems there's a fair amount of demand for this, and I wanted it myself recently (for Thanks for the level of detail in this report! Closing it out as a duplicate, since it's covered by the issue linked above. |
possibly related (same error, but on linux-i386): http://stackoverflow.com/questions/37354416/stack-cannot-build-network-wheres-config-log |
I have a similar problem. Cabal from Haskell Platform 8.0.1 installs network fine, while stack fails:
My global cabal config has these fields:
Does stack have similar config options? |
Came here via the referenced ticket. I tried to find some way to work around this elsewhere, but it looks like the "right" place to fix this is definitely by adding an option to stack. I'd suggest one extra feature if you're at it. Given that stack obviously can find the system ghc, it would be nice if it could check if there are mingw and msys directories "up and over" from it so that it could autodiscover the appropriate directories when using the system ghc as they'll likely always be in the same relative structure. This seems preferable and relatively self-contained as an option. |
I'm having this issue too on a new install. Can't get stack install network to run---claims the C compiler cannot create executables, but it's right there in mingw\bin\gcc.exe Was interested in using @acfoltzer 's fix. |
I also have this issue but I'm certain it's this: https://neilmitchell.blogspot.cz/2016/12/installing-haskell-network-library-on.html and the fix is this: haskell/cabal@3c1b619 |
@liskin @mittenchops the latest stack binary, if you upgrade, should have #2552 merged in which should fix this. If that doesn't work, let me know and I could provide a few other suggestions. |
Oh -- sorry I misread and didn't follow the link. sloppy on my part! Indeed that fixed a different issue (the original reported on this thread), not the short path name regression. I suppose a stack built against the very latest release of the Cabal library (which has that patch you link) may fix this. Either way, glad you found a workaround. |
Yeah, I'm sorry for being slightly offtopic. I hoped I might help @mittenchops as I assumed everything except the shortpath thing would be fixed by now. :-) |
I worked it around by adding |
So, right out of the gate, I know that Cygwin is not an officially supported build environment for
network
. However, what we do on some of our CI servers is use Cygwin only for the ssh support, and then make sure that the msys binaries come before Cygwin's in the PATH.On a Windows 10 machine with MinGHC 7.10.2 installed, I can put MinGHC's msys binaries in the path:
With the path configured thusly, the following Just Works:
However, I cannot seem to find an invocation of
stack
that works in this same environment. My first thought is thatstack build
needs a way to pass alongrunhaskell Setup.hs configure
options, but maybe there's something else going on with paths?The text was updated successfully, but these errors were encountered: