LLVM build fails with padLiveArgs -- i > regNum ??
Summary
While building master cf772f19 via ./hadrian/build -c -j --flavour=quick-llvm --docs=none
the following error shows up:
| Run Cc FindCDependencies Stage1: rts/sm/Storage.c => _build/stage1/rts/build/c/sm/Storage.thr_l_o.d
| Run Cc FindCDependencies Stage1: rts/Interpreter.c => _build/stage1/rts/build/c/Interpreter.thr_l_o.d
| Run Cc FindCDependencies Stage1: rts/linker/elf_reloc_aarch64.c => _build/stage1/rts/build/c/linker/elf_reloc_aarch64.thr_l_o.d
| Run Cc FindCDependencies Stage1: rts/posix/Itimer.c => _build/stage1/rts/build/c/posix/Itimer.thr_l_o.d
ghc: panic! (the 'impossible' happened)
(GHC version 8.11.0.20200526:
padLiveArgs -- i > regNum ??
CallStack (from HasCallStack):
error, called at compiler/GHC/CmmToLlvm/Base.hs:254:27 in ghc:GHC.CmmToLlvm.Base
| Run Cc FindCDependencies Stage1: rts/Globals.c => _build/stage1/rts/build/c/Globals.thr_l_o.d
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Error when running Shake build system:
at action, called at src/Rules.hs:40:19 in main:Rules
at need, called at src/Rules.hs:62:5 in main:Rules
* Depends on: _build/stage1/lib/package.conf.d/rts-1.0.conf
at need, called at src/Rules/Register.hs:117:5 in main:Rules.Register
* Depends on: _build/stage1/rts/build/libHSrts-1.0_thr_debug-ghc8.11.0.20200526.so
at need, called at src/Rules/Library.hs:146:5 in main:Rules.Library
* Depends on: _build/stage1/rts/build/cmm/StgMiscClosures.thr_debug_dyn_o
at cmd', called at src/Builder.hs:291:23 in main:Builder
at cmd, called at src/Builder.hs:376:8 in main:Builder
* Raised the exception:
Development.Shake.cmd, system command failed
Command line: _build/stage0/bin/ghc -Wall -hisuf thr_debug_dyn_hi -osuf thr_debug_dyn_o -hcsuf thr_debug_dyn_hc -fPIC -dynamic -optc-DTHREADED_RTS -optc-DDEBUG -eventlog -hide-all-packages -no-user-package-db '-package-db _build/stage1/lib/package.conf.d' '-this-unit-id rts-1.0' -i -i/home/stefansf/devel/ghc/src/_build/stage1/rts/build -i/home/stefansf/devel/ghc/src/_build/stage1/rts/build/autogen -i/home/stefansf/devel/ghc/src/rts -Iincludes -I_build/stage1/lib -I_build/stage1/rts/build -I_build/stage1/rts/build/build -I_build/stage1/rts/build/../includes -I_build/stage1/rts/build/includes -I_build/stage1/rts/build/includes/dist-derivedconstants/header -Irts/build -Irts/../includes -Irts/includes -Irts/includes/dist-derivedconstants/header -I_build/stage1/lib -optc-I_build/stage1/lib -optP-include -optP_build/stage1/rts/build/autogen/cabal_macros.h -ghcversion-file=_build/stage1/lib/ghcversion.h -outputdir _build/stage1/rts/build -Wnoncanonical-monad-instances -optc-Wno-error=inline -c rts/StgMiscClosures.cmm -o _build/stage1/rts/build/cmm/StgMiscClosures.thr_debug_dyn_o -O0 -H64m -this-unit-id rts -XHaskell98 -ghcversion-file=/home/stefansf/devel/ghc/src/_build/stage1/lib/ghcversion.h -O -Irts -I_build/stage1/rts/build '-DRtsWay="rts_thr_debug_dyn"' -DFS_NAMESPACE=rts -DCOMPILING_RTS -DTHREADED_RTS -Wno-deprecated-flags -Wcpp-undef -fllvm
Exit code: 1
Stderr and Stdout:
ghc: panic! (the 'impossible' happened)
(GHC version 8.11.0.20200526:
padLiveArgs -- i > regNum ??
CallStack (from HasCallStack):
error, called at compiler/GHC/CmmToLlvm/Base.hs:254:27 in ghc:GHC.CmmToLlvm.Base
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
I bisect'ed this to commit e90ecc93
Any idea how to fix this?
Environment
- GHC version used: 8.10.1
- LLVM: 9
- Operating System: Fedora 32
- System Architecture: Intel 64bit