Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,398
    • Issues 5,398
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 586
    • Merge requests 586
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #18946
Closed
Open
Issue created Nov 13, 2020 by John Ky@newhoggyReporter

Intermittent failure when building with GHC 8.10.2 on Windows

In our Windows builds on Github Actions, sometimes the compiler fails like this:

In file included from C:\ProgramData\chocolatey\lib\ghc.8.10.2\tools\ghc-8.10.2\lib/include/HsFFI.h:20,

                 from cbits\closure_size.c:27:0: error: 
C:\ProgramData\chocolatey\lib\ghc.8.10.2\tools\ghc-8.10.2\lib/include/stg/Types.h:26:9: warning: #warning "Mismatch between __USE_MINGW_ANSI_STDIO definitions. If using Rts.h make sure it is the first header included." [-Wcpp]
   26 | #       warning "Mismatch between __USE_MINGW_ANSI_STDIO definitions. \
      |         ^~~~~~~

The failure is very intermittent and it isn't clear if the fault is with Github Actions or with GHC, but it has happened at least twice.

For example:

  • https://github.com/input-output-hk/cardano-node/runs/1393454458?check_suite_focus=true
  • https://github.com/input-output-hk/cardano-node/runs/1379893830?check_suite_focus=true

There was also this:

Access violation in generated code when reading 0xbd68

 Attempting to reconstruct a stack trace...

   Frame	Code address
 * 0x48ffb50	0x39513e4 C:\ProgramData\chocolatey\lib\ghc.8.10.2\tools\ghc-8.10.2\bin\ghc.exe+0x35513e4
 * 0x48ffbf0	0x396cd17 C:\ProgramData\chocolatey\lib\ghc.8.10.2\tools\ghc-8.10.2\bin\ghc.exe+0x356cd17
 * 0x48ffc40	0x396dcb4 C:\ProgramData\chocolatey\lib\ghc.8.10.2\tools\ghc-8.10.2\bin\ghc.exe+0x356dcb4
 * 0x48ffd00	0x393b7bb C:\ProgramData\chocolatey\lib\ghc.8.10.2\tools\ghc-8.10.2\bin\ghc.exe+0x353b7bb
 * 0x48ffe20	0x39a8623 C:\ProgramData\chocolatey\lib\ghc.8.10.2\tools\ghc-8.10.2\bin\ghc.exe+0x35a8623
 * 0x48ffef0	0x40138c C:\ProgramData\chocolatey\lib\ghc.8.10.2\tools\ghc-8.10.2\bin\ghc.exe+0x138c
 * 0x48fff20	0x4014bb C:\ProgramData\chocolatey\lib\ghc.8.10.2\tools\ghc-8.10.2\bin\ghc.exe+0x14bb
 * 0x48fff50	0x7ffbd2307974 C:\windows\System32\KERNEL32.DLL+0x17974
 * 0x48fffd0	0x7ffbd3b8a271 C:\windows\SYSTEM32\ntdll.dll+0x6a271

See here:

  • https://github.com/input-output-hk/cardano-node/pull/2086/checks?check_run_id=1393807980
Edited Nov 18, 2020 by Ben Gamari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking