Skip to content

Unusual failure in GHC 9.4.3 during build of stage1

In the last nine months of CI this has happened ten times, where ghc fails with error code "-6"

https://gitlab.haskell.org/ghc/ghc/-/jobs/1346859#L5728

(Long line edited for readability)

| Run Ghc CompileHs (Stage0 InTreeLibs): compiler/GHC/Rename/Expr.hs-boot => _build/stage0/compiler/build/GHC/Rename/Expr.o-boot
Command line: /opt/ghc/9.4.3/bin/ghc -Wall -Wcompat -fdiagnostics-color=never -hisuf hi -osuf o
        -hcsuf hc -static -hide-all-packages -no-user-package-db '-package-env -' '-package-db
        _build/stage0/inplace/package.conf.d' '-this-unit-id ghc-9.7' '-package-id array-0.5.4.0'
        '-package-id base-4.17.0.0' '-package-id binary-0.8.9.1' '-package-id bytestring-0.11.4.0'
        '-package-id containers-0.6.6' '-package-id deepseq-1.4.8.0' '-package-id directory-1.3.8.0'
        '-package-id exceptions-0.10.7' '-package-id filepath-1.4.100.0' '-package-id ghc-boot-9.7'
        '-package-id ghc-heap-9.7' '-package-id ghci-9.7' '-package-id hpc-0.6.2.0' '-package-id
        process-1.6.16.0' '-package-id stm-2.5.1.0' '-package-id template-haskell-2.20.0.0' '-package-id
        time-1.12.2' '-package-id transformers-0.6.0.4' '-package-id unix-2.8.0.0' -i
        -i/builds/ghc/ghc/_build/stage0/compiler/build
        -i/builds/ghc/ghc/_build/stage0/compiler/build/autogen -i/builds/ghc/ghc/compiler
        -I_build/stage0/compiler/build -I_build/stage0/compiler/build/. -Icompiler/.
        -I/builds/ghc/ghc/libraries/process/include
        -I/builds/ghc/ghc/_build/stage0/libraries/process/build/include
        -I/builds/ghc/ghc/libraries/directory -I/builds/ghc/ghc/_build/stage0/libraries/directory/build
        -I/builds/ghc/ghc/libraries/unix/include
        -I/builds/ghc/ghc/_build/stage0/libraries/unix/build/include
        -I/builds/ghc/ghc/libraries/time/lib/include
        -I/builds/ghc/ghc/_build/stage0/libraries/time/build/lib/include
        -I/builds/ghc/ghc/libraries/containers/containers/include
        -I/builds/ghc/ghc/_build/stage0/libraries/containers/containers/build/include
        -I/builds/ghc/ghc/libraries/bytestring/include
        -I/builds/ghc/ghc/_build/stage0/libraries/bytestring/build/include
        -I/opt/ghc/9.4.3/lib/ghc-9.4.3/lib/i386-linux-ghc-9.4.3/base-4.17.0.0/include
        -I/opt/ghc/9.4.3/lib/ghc-9.4.3/lib/i386-linux-ghc-9.4.3/ghc-bignum-1.3/include
        -I/opt/ghc/9.4.3/lib/ghc-9.4.3/lib/i386-linux-ghc-9.4.3/rts-1.0.2/include -optP-include
        -optP_build/stage0/compiler/build/autogen/cabal_macros.h -optc-U__i686 -optP-DCAN_LOAD_DLL
        -outputdir _build/stage0/compiler/build -optc-Wno-error=inline -optP-Wno-nonportable-include-path -c
        compiler/GHC/Rename/Expr.hs-boot -o _build/stage0/compiler/build/GHC/Rename/Expr.o-boot -O0 -H64m
        -Wall -Wno-name-shadowing -Wnoncanonical-monad-instances -Wnoncanonical-monoid-instances
        -this-unit-id ghc -XHaskell2010 -XNoImplicitPrelude -XBangPatterns -XScopedTypeVariables
        -XMonoLocalBinds -XTypeOperators -O2 -DDEBUG -haddock -fno-warn-deprecated-flags
===> Command failed with error code: -6
ghc-9.4.3: internal error: evacuate: strange closure type 21642
Edited by Bryan R
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information