s390x ghc-stage1 panic: duplicate label L7133701809755024233 in graph: compiler/cmm/Hoopl/Graph.hs:64:13
When I tried for build ghc-8.10.5 against 8.8.4 for Fedora on s390x I got:
:
"inplace/bin/ghc-stage1" -hisuf hi -osuf o -hcsuf hc -static -H32m -O -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -this-unit-id ghc-8.10.5 -hide-all-packages -package-env - -i -icompiler/. -icompiler/backpack -icompiler/basicTypes -icompiler/cmm -icompiler/coreSyn -icompiler/deSugar -icompiler/ghci -icompiler/iface -icompiler/llvmGen -icompiler/main -icompiler/nativeGen -icompiler/parser -icompiler/prelude -icompiler/profiling -icompiler/rename -icompiler/simplCore -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn -icompiler/stranal -icompiler/typecheck -icompiler/types -icompiler/utils -icompiler/hieFile -icompiler/stage2/build -Icompiler/stage2/build -icompiler/stage2/build/./autogen -Icompiler/stage2/build/./autogen -Icompiler/. -Icompiler/parser -Icompiler/utils -Icompiler/../rts/dist/build -Icompiler/stage2 -Icompiler/stage2/build/. -Icompiler/stage2/build/parser -Icompiler/stage2/build/utils -Icompiler/stage2/build/../rts/dist/build -Icompiler/stage2/build/stage2 -optP-DHAVE_INTERNAL_INTERPRETER -optP-DINTEGER_GMP -optP-DCAN_LOAD_DLL -optP-Iincludes/dist-install/build -optP-include -optPcompiler/stage2/build/./autogen/cabal_macros.h -package-id array-0.5.4.0 -package-id base-4.14.2.0 -package-id binary-0.8.8.0 -package-id bytestring-0.10.12.0 -package-id containers-0.6.4.1 -package-id deepseq-1.4.4.0 -package-id directory-1.3.6.0 -package-id filepath-1.4.2.1 -package-id ghc-boot-8.10.5 -package-id ghc-boot-th-8.10.5 -package-id ghc-heap-8.10.5 -package-id ghci-8.10.5 -package-id hpc-0.6.1.0 -package-id integer-gmp-1.0.3.0 -package-id process-1.6.9.0 -package-id template-haskell-2.16.0.0 -package-id terminfo-0.4.1.4 -package-id time-1.9.3 -package-id transformers-0.5.6.2 -package-id unix-2.7.2.2 -Wall -Wno-name-shadowing -Wnoncanonical-monad-instances -Wnoncanonical-monoid-instances -this-unit-id ghc -XHaskell2010 -XNoImplicitPrelude -DNO_REGS -DNOSMP -optc-DNOSMP -optc-DTHREADED_RTS -Iincludes/dist-install/build -Rghc-timing -Wcpp-undef -no-user-package-db -rtsopts -Wnoncanonical-monad-instances -outputdir compiler/stage2/build -dynamic-too -c compiler/nativeGen/RegAlloc/Linear/Main.hs -o compiler/stage2/build/RegAlloc/Linear/Main.o -dyno compiler/stage2/build/RegAlloc/Linear/Main.dyn_o
ghc-stage1: panic! (the 'impossible' happened)
(GHC version 8.10.5:
duplicate label L7133701809755024233 in graph
CallStack (from HasCallStack):
error, called at compiler/cmm/Hoopl/Graph.hs:64:13 in ghc:Hoopl.Graph
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
<<ghc: 5967705136 bytes, 453 GCs, 52101763/126190424 avg/max bytes residency (14 samples), 334M in use, 0.000 INIT (0.000 elapsed), 5.819 MUT (5.858 elapsed), 2.456 GC (2.456 elapsed) :ghc>>
make[1]: *** [compiler/ghc.mk:308: compiler/stage2/build/LlvmCodeGen/CodeGen.o] Error 1
make[1]: *** Waiting for unfinished jobs....
<<ghc: 1739513880 bytes, 138 GCs, 17475365/60729944 avg/max bytes residency (8 samples), 124M in use, 0.000 INIT (0.000 elapsed), 1.770 MUT (5.900 elapsed), 0.403 GC (0.403 elapsed) :ghc>>
<<ghc: 100591655832 bytes, 2455 GCs, 311849051/625636168 avg/max bytes residency (38 samples), 1802M in use, 0.000 INIT (0.000 elapsed), 156.999 MUT (568.342 elapsed), 89.393 GC (89.489 elapsed) :ghc>>
make: *** [Makefile:128: all] Error 2
The full build.log and root.log are available at https://koji.fedoraproject.org/koji/taskinfo?taskID=69517334 for a couple of weeks.