Opened 2 years ago

Last modified 8 days ago

#11259 new bug

Use system runtime linker in GHCi on PowerPC 64 bit

Reported by: trommler Owned by: trommler
Priority: normal Milestone: 8.4.1
Component: GHCi Version: 7.11
Keywords: Cc:
Operating System: Linux Architecture: powerpc64
Type of failure: GHCi crash Test Case: ghcilink004, prog001, and 11 more
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Teach GHCi to use the system runtime linker to load Haskell libraries on powerpc64.

See the following test failures.

ghcilink004:

ghc-stage2: dir004/libfoo.a: unknown architecture (e_machine == 21)
ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 7.11.20151219 for powerpc64-unknown-linux):
        loadArchive "dir004/libfoo.a": failed
CallStack (from ImplicitParams):
  error, called at libraries/ghci/GHCi/ObjLink.hs:91:21 in ghci-0.0:GHCi.ObjLink

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

prog001:

ghc-iserv.bin: /home/peter/ghc/libraries/ghc-prim/dist-install/build/libHSghc-prim-0.5.0.0.a: unknown architecture (e_machine == 21)
ghc-iserv.bin: loadArchive "/home/peter/ghc/libraries/ghc-prim/dist-install/build/libHSghc-prim-0.5.0.0.a": failed
CallStack (from ImplicitParams):
  error, called at libraries/ghci/GHCi/ObjLink.hs:91:21 in ghci-0.0:GHCi.ObjLink
ghc-stage2: ghc-iserv terminated (1)

Using the system runtime linker fixes 13 failing tests.

Change History (4)

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 8 months ago by bgamari

Milestone: 8.2.18.4.1

Given that 8.2.1-rc1 is imminent, I'm bumping these off to the 8.4

comment:4 Changed 8 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.