Panic loading network on windows (GHC 7.6.1)

Hello, I've installed Cabal and cabal-install 1.16 (which required network) on a new GHC 7.6.1 install and everything went well, except now when building a package requiring network I get: Loading package network-2.4.0.1 ... ghc.exe: Unknown PEi386 section name `.idata $4' (while processing: c:/ghc/ghc-7.6.1/mingw/lib\libws2_32.a) ghc.exe: panic! (the 'impossible' happened) (GHC version 7.6.1 for i386-unknown-mingw32): loadArchive "c:/ghc/ghc-7.6.1/mingw/lib\\libws2_32.a": failed I have done something wrong while building network on my Windows XP machine? What can I check? Thanks! -- JP Moresmau http://jpmoresmau.blogspot.com/

On Fri, Oct 5, 2012 at 5:31 PM, JP Moresmau
Hello, I've installed Cabal and cabal-install 1.16 (which required network) on a new GHC 7.6.1 install and everything went well, except now when building a package requiring network I get:
Loading package network-2.4.0.1 ... ghc.exe: Unknown PEi386 section name `.idata $4' (while processing: c:/ghc/ghc-7.6.1/mingw/lib\libws2_32.a) ghc.exe: panic! (the 'impossible' happened) (GHC version 7.6.1 for i386-unknown-mingw32): loadArchive "c:/ghc/ghc-7.6.1/mingw/lib\\libws2_32.a": failed
I have done something wrong while building network on my Windows XP machine? What can I check?
I'm not quite sure what's going on. We did test cabal-install (and thus network) on a Windows machine before the release.

Well, cabal-install installed and works fine. Not sure why on my own
package that I'm trying to port to GHC 7.6 it doesn't work... I'll try
to investigate further.
Thanks
JP
On Fri, Oct 5, 2012 at 6:02 PM, Johan Tibell
On Fri, Oct 5, 2012 at 5:31 PM, JP Moresmau
wrote: Hello, I've installed Cabal and cabal-install 1.16 (which required network) on a new GHC 7.6.1 install and everything went well, except now when building a package requiring network I get:
Loading package network-2.4.0.1 ... ghc.exe: Unknown PEi386 section name `.idata $4' (while processing: c:/ghc/ghc-7.6.1/mingw/lib\libws2_32.a) ghc.exe: panic! (the 'impossible' happened) (GHC version 7.6.1 for i386-unknown-mingw32): loadArchive "c:/ghc/ghc-7.6.1/mingw/lib\\libws2_32.a": failed
I have done something wrong while building network on my Windows XP machine? What can I check?
I'm not quite sure what's going on. We did test cabal-install (and thus network) on a Windows machine before the release.
-- JP Moresmau http://jpmoresmau.blogspot.com/

On Fri, 05 Oct 2012 17:31:49 +0200, JP Moresmau
Hello, I've installed Cabal and cabal-install 1.16 (which required network) on a new GHC 7.6.1 install and everything went well, except now when building a package requiring network I get:
Loading package network-2.4.0.1 ... ghc.exe: Unknown PEi386 section name `.idata $4' (while processing: c:/ghc/ghc-7.6.1/mingw/lib\libws2_32.a) ghc.exe: panic! (the 'impossible' happened) (GHC version 7.6.1 for i386-unknown-mingw32): loadArchive "c:/ghc/ghc-7.6.1/mingw/lib\\libws2_32.a": failed
It's a GHC bug and will be solved in GHC 7.6.2, according to: http://hackage.haskell.org/trac/ghc/ticket/7103 Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --

Just to explain what's going on. It looks like you are compiling a
module that uses template haskell, which in turn relies on GHCi bits.
In particular, GHCi has a custom linker for loading compiled code.
This linker is very fragile and tends to break whenever the platform
GCC/linker changes. Similar issues happen a lot on OS X, because Apple
tends to change their library formats on most major releases.
The only workaround I can think of is to avoid using GHCi or Template
Haskell, but I understand that's usually very tricky (especially if
one of the dependencies uses TH).
On 6 October 2012 09:57, Henk-Jan van Tuyl
On Fri, 05 Oct 2012 17:31:49 +0200, JP Moresmau
wrote: Hello, I've installed Cabal and cabal-install 1.16 (which required network) on a new GHC 7.6.1 install and everything went well, except now when building a package requiring network I get:
Loading package network-2.4.0.1 ... ghc.exe: Unknown PEi386 section name `.idata $4' (while processing: c:/ghc/ghc-7.6.1/mingw/lib\libws2_32.a) ghc.exe: panic! (the 'impossible' happened) (GHC version 7.6.1 for i386-unknown-mingw32): loadArchive "c:/ghc/ghc-7.6.1/mingw/lib\\libws2_32.a": failed
It's a GHC bug and will be solved in GHC 7.6.2, according to: http://hackage.haskell.org/trac/ghc/ticket/7103
Regards, Henk-Jan van Tuyl
-- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Push the envelope. Watch it bend.

Thanks to all, it then looks there's not much I can do. I'm trying to
build scion-browser that depends on persistent, that requires TH...
Thanks
JP
On Sat, Oct 6, 2012 at 10:26 PM, Thomas Schilling
Just to explain what's going on. It looks like you are compiling a module that uses template haskell, which in turn relies on GHCi bits. In particular, GHCi has a custom linker for loading compiled code. This linker is very fragile and tends to break whenever the platform GCC/linker changes. Similar issues happen a lot on OS X, because Apple tends to change their library formats on most major releases.
The only workaround I can think of is to avoid using GHCi or Template Haskell, but I understand that's usually very tricky (especially if one of the dependencies uses TH).
On 6 October 2012 09:57, Henk-Jan van Tuyl
wrote: On Fri, 05 Oct 2012 17:31:49 +0200, JP Moresmau
wrote: Hello, I've installed Cabal and cabal-install 1.16 (which required network) on a new GHC 7.6.1 install and everything went well, except now when building a package requiring network I get:
Loading package network-2.4.0.1 ... ghc.exe: Unknown PEi386 section name `.idata $4' (while processing: c:/ghc/ghc-7.6.1/mingw/lib\libws2_32.a) ghc.exe: panic! (the 'impossible' happened) (GHC version 7.6.1 for i386-unknown-mingw32): loadArchive "c:/ghc/ghc-7.6.1/mingw/lib\\libws2_32.a": failed
It's a GHC bug and will be solved in GHC 7.6.2, according to: http://hackage.haskell.org/trac/ghc/ticket/7103
Regards, Henk-Jan van Tuyl
-- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Push the envelope. Watch it bend.
-- JP Moresmau http://jpmoresmau.blogspot.com/
participants (4)
-
Henk-Jan van Tuyl
-
Johan Tibell
-
JP Moresmau
-
Thomas Schilling