Skip to content

Testsuite: `codes` test failes locally for me with default flavour

Summary

When running locally:

$ hadrian/build -j8 test -VVV --only="codes"

I get:

=====> codes(normal) 1 of 1 [0, 0, 0]
cd "C:/ghc/msys64/tmp/ghctest-afmow83c/test   spaces/testsuite/tests/diagnostic-codes/codes.run" && $MAKE --no-print-directory codes   <
Wrong exit code for codes()(expected 0 , actual 2 )
Stdout ( codes ):
(cd C:/ghc/msys64/home/andi/ghc_ioerror/testsuite/.. && C:/ghc/msys64/home/andi/ghc_ioerror/_build/test/bin/lint-codes.exe test "`'C:/ghc/msys64/home/andi/ghc_ioerror/_build/stage1/bin/ghc.exe'  -dcore-lint -dstg-lint
-dcmm-lint -no-user-package-db -fno-dump-with-ways -fprint-error-index-links=never -rtsopts   -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat
-dno-debug-output --print-libdir | tr -d '\r'`")

- All non-outdated 'GhcDiagnosticCode' equations are statically used.

- All outdated 'GhcDiagnosticCode' equations are statically unused.
Stderr  run  ( codes ):
lint-codes.exe: Exception:

/home/andi/ghc_ioerror\testsuite\tests: getDirectoryContents:findFirstFile: does not exist (The system cannot find the path specified.)

Package: ghc-internal
Module: GHC.Internal.IO.Exception
Type: IOException

HasCallStack backtrace:
  collectBacktraces, called at libraries\ghc-internal\src\GHC\Internal\Exception.hs:92:13 in ghc-internal:GHC.Internal.Exception
  toExceptionWithBacktrace, called at libraries\ghc-internal\src\GHC\Internal\IO.hs:260:11 in ghc-internal:GHC.Internal.IO
  throwIO, called at libraries\ghc-internal\src\GHC\Internal\IO\Exception.hs:315:19 in ghc-internal:GHC.Internal.IO.Exception
  ioException, called at libraries\ghc-internal\src\GHC\Internal\IO\Exception.hs:319:20 in ghc-internal:GHC.Internal.IO.Exception
  ioError, called at libraries\ghc-internal\src\GHC\Internal\System\IO\Error.hs:323:38 in ghc-internal:GHC.Internal.System.IO.Error

make: *** [Makefile:6: codes] Error 1
*** unexpected failure for codes(normal)

I'm unsure what causes this, perhaps @sheaf has insights.

Environment

  • GHC version used: HEAD

Optional:

  • Operating System: Windows
  • System Architecture: x86
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information