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 <[email protected]> wrote:
> On Fri, 05 Oct 2012 17:31:49 +0200, JP Moresmau <[email protected]>
> 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
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe



-- 
Push the envelope. Watch it bend.

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to