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:
Edited by Ben Gamari