Window build broken

Matej Borovec matej.borovec at
Wed Nov 18 11:25:16 UTC 2015

I'm getting similar error on my 32-bit Windows 10:

GHCi, version 7.11.20151114:  :? for help
ghc.exe: C:\ghc-8.0_git\usr\local\lib\ghc-prim-\HSghc-prim- Not x86 PEi386
ghc.exe: panic! (the 'impossible' happened)
(GHC version 7.11.20151114 for i386-unknown-mingw32):
      loadObj "C:\\ghc-8.0_git\\usr\\local\\lib\\ghc-prim-\\HSghc-prim-": failed

Please report this as a GHC bug:

And running `file lib\ghc-prim-\HSghc-prim-` I get:

lib\ghc-prim-\HSghc-prim- PE Unknown PE signature 0x342f Intel 80386 (stripped to external PDB), for MS Windows

-----Original Message----- 
From: Simon Peyton Jones 
Sent: Wednesday, November 18, 2015 12:25 AM 
To: David Macek ; ghc-devs at 
Subject: RE: Window build broken 

It says this:

bash$ file libraries/ghc-prim/dist-install/build/HSghc-prim- 
libraries/ghc-prim/dist-install/build/HSghc-prim- PE Unknown PE signature 0x742e x86-64 (stripped to external PDB), for MS Windows

| -----Original Message-----
| From: David Macek [mailto:david.macek.0 at]
| Sent: 17 November 2015 22:45
| To: Simon Peyton Jones <simonpj at>; ghc-devs at
| Subject: Re: Window build broken
| On 17. 11. 2015 23:31, Simon Peyton Jones wrote:
| > Sigh.  My Windows build is broken.  See below.  Any ideas?  The stage2
| complier in non-interactive mode works ok. It’s just ghci fails.  What does
| “Not x86_64 PEi386” mean?  What can I do to fix?
| Maybe it's obvious and you already checked, but could it be that the object
| file is for a different architecture? What does `file` say about it?
| --
| David Macek

ghc-devs mailing list
ghc-devs at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list