JP Moresmau | 5 Oct 17:31 2012
Picon

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/
Johan Tibell | 5 Oct 18:02 2012
Picon

Re: Panic loading network on windows (GHC 7.6.1)

On Fri, Oct 5, 2012 at 5:31 PM, JP Moresmau <jpmoresmau <at> gmail.com> 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 | 5 Oct 18:25 2012
Picon

Re: Panic loading network on windows (GHC 7.6.1)

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 <johan.tibell <at> gmail.com> wrote:
> On Fri, Oct 5, 2012 at 5:31 PM, JP Moresmau <jpmoresmau <at> gmail.com> 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/
(Continue reading)

Henk-Jan van Tuyl | 6 Oct 10:57 2012
Picon

Re: Panic loading network on windows (GHC 7.6.1)

On Fri, 05 Oct 2012 17:31:49 +0200, JP Moresmau <jpmoresmau <at> gmail.com>  
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
--
Thomas Schilling | 6 Oct 22:26 2012

Re: Panic loading network on windows (GHC 7.6.1)

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 <hjgtuyl <at> chello.nl> wrote:
> On Fri, 05 Oct 2012 17:31:49 +0200, JP Moresmau <jpmoresmau <at> gmail.com>
> 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
>
(Continue reading)

JP Moresmau | 8 Oct 13:14 2012
Picon

Re: Panic loading network on windows (GHC 7.6.1)

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
<nominolo <at> googlemail.com> wrote:
> 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 <hjgtuyl <at> chello.nl> wrote:
>> On Fri, 05 Oct 2012 17:31:49 +0200, JP Moresmau <jpmoresmau <at> gmail.com>
>> 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
(Continue reading)


Gmane