#9055 closed bug (fixed)

unregisterised build fails with: globalRegMaybe not defined for this platform

Reported by: trommler Owned by:
Priority: normal Milestone: 7.10.1
Component: Compiler Version: 7.9
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Compile-time crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

Building HEAD fails with:

make[1]: *** [rts/dist/build/Updates.o] Error 1
ghc-stage1: panic! (the 'impossible' happened)
  (GHC version 7.9.20140429 for powerpc64-unknown-linux):
        globalRegMaybe not defined for this platform

on Linux powerpc64 and x86_64 (unregisterised).

Attachments (1)

0001-Fix-globalRegMaybe-for-unregisterised-build.patch (1.0 KB) - added by trommler 14 months ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 14 months ago by trommler

I reverted changeset:83a003f and GHC does not panic anymore. I only tried that on x86_64.

comment:2 Changed 14 months ago by trommler

  • Owner set to trommler

Fix is coming. I am validating right now.

comment:3 Changed 14 months ago by trommler

  • Status changed from new to patch

Validated attached patch on x86_64. Will do powerpc64 tonight.

comment:4 Changed 14 months ago by trommler

  • Owner trommler deleted

comment:5 Changed 14 months ago by trommler

  • Milestone set to 7.10.1

We should merge this into 7.8.3 if changeset:83a003f goes in 7.8.3. For now I'm setting milestone to 7.10.1.

comment:6 Changed 14 months ago by Simon Marlow <marlowsd@…>

In 214ad2d24cda4aaef541df3e213d5c4845f95c71/ghc:

Fix globalRegMaybe for unregisterised build.

In commit 83a003f globalRegMaybe will be called but panics
for unregisterised compilers.

In an unregisterised compiler there are no global registers
so always return `Nothing`.

Fixes #9055.

comment:7 Changed 14 months ago by simonmar

  • Resolution set to fixed
  • Status changed from patch to closed
Note: See TracTickets for help on using tickets.