Opened 2 years ago

Last modified 4 weeks ago

#11261 new bug

Implement DWARF debugging on powerpc64

Reported by: trommler Owned by: trommler
Priority: normal Milestone: 8.6.1
Component: Compiler (CodeGen) Version: 7.11
Keywords: Cc:
Operating System: Linux Architecture: powerpc64
Type of failure: Incorrect result at runtime Test Case: debug, T10667, simplCore/should_compile/T13658
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:



ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 7.11.20151219 for powerpc64-unknown-linux):
        dwarfReturnRegNo: Unsupported platform!
CallStack (from ImplicitParams):
  error, called at compiler/nativeGen/Dwarf/Constants.hs:224:19 in ghc:Dwarf.Constants

Please report this as a GHC bug:

Provide DWARF constants for registers.

Change History (6)

comment:1 Changed 2 years ago by Ben Gamari <ben@…>

In feb19eae/ghc:

testsuite: mark tests broken on powerpc64

The following tests fail on powerpc64 and have a ticket.
Mark those tests as expect_broken.

Here are the details:
The PowerPC native code generator does not support DWARF debug
information. This is tracked in ticket #11261. Mark the respective
tests broken on powerpc64.

testsuite: mark print022 broken on powerpc64
Ticket #11262 tracks difference in stdout for print022.

testsuite: mark recomp015 broken on powerpc64
testsuite: mark recomp011 broken on powerpc64
This is tracked as ticket #11323 and #11260.

testsuite: mark linker tests broken on powerpc64
Ticket #11259 tracks tests failing because there is no RTS
linker on powerpc64.

Test Plan: validate

Reviewers: erikd, austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision:

GHC Trac Issues: #11259, #11260, #11261, #11262, #11323

comment:2 Changed 21 months ago by Ben Gamari <ben@…>

In 1dadd9a9/ghc:

testsuite: Mark broken tests on powerpc64le

Mark all failing tests that have a ticket for powerpc64 as broken. Most
of these failures are due to the lack of linker support in the runtime

Test Plan: validate on powerpc and AIX

Reviewers: erikd, bgamari, simonmar, hvr, austin

Reviewed By: austin

Subscribers: thomie

Differential Revision:

GHC Trac Issues: #11261, #11259, #11260, #11323

comment:3 Changed 14 months ago by bgamari


It seems unlikely that this will happen for 8.2.

comment:4 Changed 7 months ago by trommler

Test Case: debug, T10667debug, T10667, simplCore/should_compile/T13658

comment:5 Changed 3 months ago by Ben Gamari <ben@…>

In 8b1020ed/ghc:

RTS: Disable warnings in ffi.h

The update of GHC's in-tree libffi causes warnings about
undefined macros and hence validate fails.

Also mark broken tests that have a ticket.

Fixes #14353

Test Plan: ./validate (on AIX and powerpc if possible)

Reviewers: bgamari, hvr, erikd, simonmar

Reviewed By: bgamari

Subscribers: snowleopard, rwbarton, thomie

GHC Trac Issues: #14353, #11259, #14455, #11261

Differential Revision:

comment:6 Changed 4 weeks ago by bgamari


This ticket won't be resolved in 8.4; remilestoning for 8.6. Do holler if you are affected by this or would otherwise like to work on it.

Note: See TracTickets for help on using tickets.