#9080 closed bug (fixed)

GHC error on Win 8.1 64bit

Reported by: maun Owned by:
Priority: normal Milestone: 7.8.3
Component: Compiler Version: 7.8.2
Keywords: Cc: rcook
Operating System: Windows Architecture: x86_64 (amd64)
Type of failure: Compile-time crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

Hi, i get the following error when building GHCJS:

Loading package conduit-1.1.1 ... linking ... done.
Loading package yaml-0.8.8.2 ... ghc.exe: panic! (the 'impossible' happened)
  (GHC version 7.8.2 for x86_64-unknown-mingw32):
        loadObj "C:\\Users\\Manuel\\AppData\\Roaming\\cabal\\x86_64-windows-ghc-
7.8.2\\yaml-0.8.8.2\\HSyaml-0.8.8.2.o": failed

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

ghc.exe: Unknown PEi386 section name `.text.unlikely' (while processing: C:\User
s\Manuel\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.2\yaml-0.8.8.2\HSyaml-0.8.
8.2.o)
cabal: Error: some packages failed to install:
ghcjs-0.1.0 failed during the building phase. The exception was:
ExitFailure 1

Also reported this for ghcjs (https://github.com/ghcjs/ghcjs/issues/170)

I am not using the haskell plattform, but the 7.8.2 binaries + MinGW and MSYS. I also tried mingw-w64 but this made no difference. I am also using the recent ghcjs cabal branch.

Attachments (2)

parser-test.hs (473 bytes) - added by maun 13 months ago.
using yaml. Fails with ghci but works fine when compiled.
0001-Add-.text.unlikely-to-recognized-code-sections-on-Wi.patch (786 bytes) - added by niklasl 12 months ago.

Download all attachments as: .zip

Change History (9)

Changed 13 months ago by maun

using yaml. Fails with ghci but works fine when compiled.

comment:1 Changed 13 months ago by stuartallenmills

Obtained the exact same error under Windows 7 while trying to install yesod (excerpt):

Loading package css-text-0.1.2.1 ... linking ... done.
Loading package tagsoup-0.13.1 ... linking ... done.
Loading package xss-sanitize-0.3.5.2 ... linking ... done.
Loading package yesod-persistent-1.2.2.3 ... linking ... done.
Loading package yesod-form-1.3.9 ... linking ... done.
Loading package yesod-auth-1.3.0.5 ... linking ... done.
Loading package yaml-0.8.8.2 ... ghc.exe: panic! (the 'impossible' happened)

(GHC version 7.8.2 for x86_64-unknown-mingw32):

loadObj "C:
users
smills
Hask
yesod
.cabal-sandbox
x86_64-windows-ghc-7.8.2
yaml-0.8.8.2
HSyaml-0.8.8.2.o": failed

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

...

ghc.exe: Unknown PEi386 section name `.text.unlikely' (while processing: C:\users\smills\Hask\yesod\.cabal-sandbox\x86_64-windows-ghc-7.8.2\yaml-0.8.8.2\HSyaml-0.8.8.2.o)

comment:2 Changed 12 months ago by rcook

  • Cc rcook added

comment:3 Changed 12 months ago by niklasl

I added a patch that recognizes .text.unlikely sections, as described in #9116.

Last edited 12 months ago by niklasl (previous) (diff)

comment:4 Changed 12 months ago by thoughtpolice

  • Status changed from new to patch

comment:5 Changed 12 months ago by Austin Seipp <austin@…>

In 56ea745c3dd00c87ad86b80f91a31ced5e86e488/ghc:

Add ".text.unlikely" to recognized code sections on Windows.

Fixes #9080

Signed-off-by: Austin Seipp <[email protected]>

comment:6 Changed 12 months ago by thoughtpolice

  • Status changed from patch to merge

comment:7 Changed 12 months ago by thoughtpolice

  • Resolution set to fixed
  • Status changed from merge to closed

Merged.

Note: See TracTickets for help on using tickets.