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

network installs on Windows with cabal, but cannot be linked #161

Closed
S11001001 opened this issue Feb 20, 2015 · 4 comments
Closed

network installs on Windows with cabal, but cannot be linked #161

S11001001 opened this issue Feb 20, 2015 · 4 comments

Comments

@S11001001
Copy link

Reproduced with GHC 7.8.3 in Platform 2014.2.0.0, and GHC 7.8.4 Windows binary by @joshcough. Applies to various versions, including (reinstalling) the exact version included with Platform.

Basics:

Preprocessing library ghc784-windows-network-0.1.0.0...
[1 of 2] Compiling NetTest          ( src\NetTest.hs, dist\build\NetTest.o )
[2 of 2] Compiling NetTest2         ( src\NetTest2.hs, dist\build\NetTest2.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.5.0.0 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package containers-0.5.5.1 ... linking ... done.
Loading package pretty-1.1.1.1 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package bytestring-0.10.4.0 ... linking ... done.
Loading package network-2.6.0.2 ... linking ... 
<no location info>:
    ghc.exe: unable to load package `network-2.6.0.2'
ghc.exe: J:\scompall\src\ghc-7.8.4-windows-network\.cabal-sandbox\x86_64-windows-ghc-7.8.3\network-2.6.0.2\HSnetwork-2.6.0.2.o: unknown symbol `shutdownWinSock'

This is not like the various other network issues reported here. The network build completed successfully; it is just that the result can't be linked.

Basic reproduction explained in https://bitbucket.org/S11001001/ghc-7.8.4-windows-network/ ; originally found for ermine-language/ermine#17.

@ndmitchell
Copy link
Contributor

I've had this a bunch of times. I switched to MinGHC and the problems all went away: https://github.com/fpco/minghc

My best guess is it was due to calling conventions and name mangling being configured wrongly, but I never really tracked it down.

@snoyberg
Copy link

snoyberg commented May 6, 2015

We just spent quite a while debugging this at fpco/minghc#42. It appears that the fix for this was written in December, but never released:

2e40d5e

@tibbe This is a major issue for Windows, can we get a patch release for this onto Hackage ASAP?

@tibbe
Copy link
Member

tibbe commented May 7, 2015

Released as 2.6.1.0.

@snoyberg
Copy link

snoyberg commented May 7, 2015

Thank you!

On Thu, May 7, 2015, 10:22 AM Johan Tibell [email protected] wrote:

Released as 2.6.1.0.


Reply to this email directly or view it on GitHub
#161 (comment).

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

5 participants