Opened 2 years ago

Last modified 10 days ago

#11261 new bug

Implement DWARF debugging on powerpc64

Reported by: trommler Owned by: trommler
Priority: normal Milestone: 8.4.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:

Description

debug:

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:  http://www.haskell.org/ghc/reportabug

Provide DWARF constants for registers.

Change History (5)

comment:1 Changed 21 months 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: https://phabricator.haskell.org/D1928

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

comment:2 Changed 18 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
system.

Test Plan: validate on powerpc and AIX

Reviewers: erikd, bgamari, simonmar, hvr, austin

Reviewed By: austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2289

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

comment:3 Changed 11 months ago by bgamari

Milestone: 8.2.18.4.1

It seems unlikely that this will happen for 8.2.

comment:4 Changed 4 months ago by trommler

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

comment:5 Changed 10 days 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: https://phabricator.haskell.org/D4181
Note: See TracTickets for help on using tickets.