[GHC] #9831: the 'impossible' happened : iselExpr64(powerpc)
#9831: the 'impossible' happened : iselExpr64(powerpc) ----------------------------+---------------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.9 Keywords: | Operating System: Linux Architecture: powerpc | Type of failure: Building GHC failed Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------+---------------------------------------------- After working around the problem in #9828 I now run into this: {{{ "inplace/bin/ghc-stage1" -static -H64m -O -fasm -keep-tmp-files -Iincludes \ -Iincludes/dist -Iincludes/dist-derivedconstants/header \ -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build \ -DCOMPILING_RTS -this-package-key rts -dcmm-lint -i -irts \ -irts/dist/build -irts/dist/build/autogen -Irts/dist/build \ -Irts/dist/build/autogen -O2 -c rts/StgStartup.cmm \ -o rts/dist/build/StgStartup.o ghc-stage1: panic! (the 'impossible' happened) (GHC version 7.9.20141122 for powerpc-unknown-linux): iselExpr64(powerpc) I64[_c1::P32 + 64] - %MO_UU_Conv_W32_W64((Hp + 4) - I32[_c2::I32]) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9831> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9831: the 'impossible' happened : iselExpr64(powerpc) ----------------------------------------------+--------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.9 Resolution: | Keywords: Operating System: Linux | Architecture: powerpc Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | ----------------------------------------------+--------------------------- Changes (by erikd): * owner: => erikd Comment: Working on a fix for this. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9831#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9831: the 'impossible' happened : iselExpr64(powerpc) ----------------------------------------------+--------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (NCG) | Version: 7.9 Resolution: | Keywords: Operating System: Linux | Architecture: powerpc Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: Phab:D560 | ----------------------------------------------+--------------------------- Changes (by thomie): * cc: simonmar (added) * differential: => Phab:D560 * component: Compiler => Compiler (NCG) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9831#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9831: the 'impossible' happened : iselExpr64(powerpc) ----------------------------------------------+--------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (NCG) | Version: 7.9 Resolution: | Keywords: Operating System: Linux | Architecture: powerpc Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: Phab:D560 | ----------------------------------------------+--------------------------- Comment (by simonmar): Yeah, sorry about this, as you probably realised you need to support a few more 64-bit ops in the NCG. Hopefully it shouldn't be too hard by looking at the x86 versions. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9831#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9831: the 'impossible' happened : iselExpr64(powerpc) ----------------------------------------------+--------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (NCG) | Version: 7.9 Resolution: | Keywords: Operating System: Linux | Architecture: powerpc Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: Phab:D560 | ----------------------------------------------+--------------------------- Comment (by erikd): Seems Sergei Trofimovich has already fixed this as part of his #D560 patch. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9831#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9831: the 'impossible' happened : iselExpr64(powerpc) ----------------------------------------------+--------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (NCG) | Version: 7.9 Resolution: | Keywords: Operating System: Linux | Architecture: powerpc Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: Phab:D560 | ----------------------------------------------+--------------------------- Comment (by Sergei Trofimovich <siarheit@…>): In [changeset:"fa31e8f4a0f853848d96549a429083941877bf8d/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="fa31e8f4a0f853848d96549a429083941877bf8d" powerpc: fix and enable shared libraries by default on linux Summary: And fix things all the way down to it. Namely: - remove 'r30' from free registers, it's an .LCTOC1 register for gcc. generated .plt stubs expect it to be initialised. - fix PicBase computation, which originally forgot to use 'tmp' reg in 'initializePicBase_ppc.fetchPC' - mark 'ForeighTarget's as implicitly using 'PicBase' register (see comment for details) - add 64-bit MO_Sub and test on alloclimit3/4 regtests - fix dynamic label offsets to match with .LCTOC1 offset Signed-off-by: Sergei Trofimovich <siarheit@google.com> Test Plan: validate passes equal amount of vanilla/dyn tests Reviewers: simonmar, erikd, austin Reviewed By: erikd, austin Subscribers: carter, thomie Differential Revision: https://phabricator.haskell.org/D560 GHC Trac Issues: #8024, #9831 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9831#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9831: the 'impossible' happened : iselExpr64(powerpc) ----------------------------------------------+--------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler (NCG) | Version: 7.9 Resolution: fixed | Keywords: Operating System: Linux | Architecture: powerpc Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: Phab:D560 | ----------------------------------------------+--------------------------- Changes (by slyfox): * status: new => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9831#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC