[GHC] #16094: panic! (the 'impossible' happened): for powerpc-unknown-linux getRegister(ppc): I64[I32[BaseReg + 812] + 64]

GHC ghc-devs at haskell.org
Mon Dec 24 21:59:33 UTC 2018


#16094: panic! (the 'impossible' happened): for powerpc-unknown-linux
getRegister(ppc): I64[I32[BaseReg + 812] + 64]
-------------------------------------+-------------------------------------
           Reporter:  slyfox         |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.6.3
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 On current HEAD ghc fails build on powerpc32:

 {{{
 $ ./configure --target=powerpc-unknown-linux-gnu
 $ make
 ...
 "inplace/bin/ghc-stage1" -static  -H32m -O -Wall   -Iincludes
 -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-
 ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS
 -DFS_NAMESPACE=rts -this-unit-id rts -dcmm-lint      -i -irts
 -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen
 -Irts/dist/build/./autogen            -O2 -Wcpp-undef    -Wnoncanonical-
 monad-instances  -c rts/HeapStackCheck.cmm -o
 rts/dist/build/HeapStackCheck.o
 ghc-stage1: panic! (the 'impossible' happened)
   (GHC version 8.7.20181223 for powerpc-unknown-linux):
         getRegister(ppc)
   I64[I32[BaseReg + 812] + 64]
   Call stack:
       CallStack (from HasCallStack):
         callStackDoc, called at compiler/utils/Outputable.hs:1159:37 in
 ghc:Outputable
         pprPanic, called at compiler/nativeGen/PPC/CodeGen.hs:693:24 in
 ghc:PPC.CodeGen
 }}}

 {{{
 $ inplace/bin/ghc-stage1 --info
  [("Project name","The Glorious Glasgow Haskell Compilation System")
  ,("GCC extra via C opts"," -fwrapv -fno-builtin")
  ,("C compiler command","powerpc-unknown-linux-gnu-gcc")
  ,("C compiler flags"," -fno-stack-protector")
  ,("C compiler link flags"," -fuse-ld=gold")
  ,("C compiler supports -no-pie","YES")
  ,("Haskell CPP command","powerpc-unknown-linux-gnu-gcc")
  ,("Haskell CPP flags","-E -undef -traditional")
  ,("ld command","powerpc-unknown-linux-gnu-ld.gold")
  ,("ld flags","")
  ,("ld supports compact unwind","YES")
  ,("ld supports build-id","YES")
  ,("ld supports filelist","NO")
  ,("ld is GNU ld","YES")
  ,("ar command","powerpc-unknown-linux-gnu-ar")
  ,("ar flags","q")
  ,("ar supports at file","YES")
  ,("ranlib command","powerpc-unknown-linux-gnu-ranlib")
  ,("touch command","touch")
  ,("dllwrap command","/bin/false")
  ,("windres command","/bin/false")
  ,("libtool command","libtool")
  ,("perl command","/usr/bin/perl")
  ,("cross compiling","YES")
  ,("target os","OSLinux")
  ,("target arch","ArchPPC")
  ,("target word size","4")
  ,("target has GNU nonexec stack","True")
  ,("target has .ident directive","True")
  ,("target has subsections via symbols","False")
  ,("target has RTS linker","YES")
  ,("Unregisterised","NO")
  ,("LLVM llc command","llc")
  ,("LLVM opt command","opt")
  ,("LLVM clang command","clang")
  ,("Project version","8.7.20181223")
  ,("Project Git commit id","bd8a6bde2ee73e599800137b9428a401bc105985")
  ,("Booter version","8.4.4")
  ,("Stage","1")
  ,("Build platform","x86_64-unknown-linux")
  ,("Host platform","x86_64-unknown-linux")
  ,("Target platform","powerpc-unknown-linux")
  ,("Have interpreter","YES")
  ,("Object splitting supported","YES")
  ,("Have native code generator","YES")
  ,("Support SMP","YES")
  ,("Tables next to code","YES")
  ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn
 thr_debug_dyn l_dyn thr_l_dyn thr_debug_p debug_p")
  ,("RTS expects libdw","NO")
  ,("Support dynamic-too","YES")
  ,("Support parallel --make","YES")
  ,("Support reexported-modules","YES")
  ,("Support thinning and renaming package flags","YES")
  ,("Support Backpack","YES")
  ,("Requires unified installed package IDs","YES")
  ,("Uses package keys","YES")
  ,("Uses unit IDs","YES")
  ,("Dynamic by default","NO")
  ,("GHC Dynamic","NO")
  ,("GHC Profiled","NO")
  ,("Leading underscore","NO")
  ,("Debug on","False")
  ,("LibDir","/home/slyfox/dev/git/ghc-ppc/inplace/lib")
  ,("Global Package DB","/home/slyfox/dev/git/ghc-
 ppc/inplace/lib/package.conf.d")
  ]

 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16094>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list