You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Access violation on Windows on GHC 8.8.3, 8.8.4, 8.10.1 and 8.10.2 #4543
The workflow using Windows and stack fails on GHC 8.8.3:
alex > Building executable 'alex' for alex-3.2.5..
alex >
alex > Access violation in generated code when writing 0x0
alex >
alex > Attempting to reconstruct a stack trace...
It seems a similar problem was reported in the GHC bug tracker: Issue 17926.
Versions used by the workflow:
Current runner version: '2.168.0'
Operating System
Microsoft Windows Server 2019
10.0.17763
Datacenter
changed the title [-]Access violation on Windows on GHC 8.8.3, 8.8.4 and 8.10.1[/-][+]Access violation on Windows on GHC 8.8.3, 8.8.4, 8.10.1 and 8.10.2[/+]on Oct 28, 2020
The problem seems going away as it usually failed at compiling VersionCommit, see the log.
Yet, ghc 8.10.3 still fails at compiling TypeChecking.Rules.Term with a different error message
[341 of 394] Compiling Agda.TypeChecking.Rules.Term ( src\full\Agda\TypeChecking\Rules\Term.hs, D:\a\agda\agda\dist-newstyle\build\x86_64-windows\ghc-8.10.3\Agda-2.6.2\build\Agda\TypeChecking\Rules\Term.o )
C://ProgramData//chocolatey//lib//ghc.8.10.3//tools//ghc-8.10.3//mingw//bin/as.exe: out of memory allocating 4064 bytes
`gcc.exe' failed in phase `Assembler'. (Exit code: 1)
Warning: Attempt 1 failed. Reason: Child_process exited with error code 1
This might be caused by something else, since ghc 8.10.2 sometimes fails randomly on the GitHub-hosted runner with the option --split-sections. Anyway, cabal manages to compile Agda. I will submit another issue if it fails reliably.
@asr, should we add a clause in Agda.cabal to exclude 8.8.x and 8.10.1--8.10.2 on Windows?
Activity
[ fixed #4543 ] Windows Server 2019 (20200319.1)
asr commentedon Apr 14, 2020
Now we are using GHC 8.10.1 in the test of Windows + stack. Since problem in the OP doens't happen with this version of GHC, I'm closing this issue.
L-TChen commentedon Apr 15, 2020
The problem sadly persists even with GHC 8.10.1 on Windows + stack, see https://github.com/agda/agda/runs/587539489.
[-]Access violation on Windows + stack + GHC 8.8.3[/-][+]Access violation on Windows + stack + GHC 8.10.1[/+]26 remaining items
asr commentedon Aug 23, 2020
Note we have the problem only with Cabal.
[ closed #4543 ] Testing...
[ closed #4543 ] Testing...
[-]Access violation on Windows on GHC 8.8.3, 8.8.4 and 8.10.1[/-][+]Access violation on Windows on GHC 8.8.3, 8.8.4, 8.10.1 and 8.10.2[/+]asr commentedon Oct 28, 2020
According to https://gitlab.haskell.org/ghc/ghc/-/issues/18634 we need to wait for GHC 8.10.3.
[ fix agda#4543 ] Enable cabal on Windows
[ fix agda#4543 ] Enable cabal on Windows
L-TChen commentedon Dec 24, 2020
I closed this issue accidentally instead of #4513. So, I am reopening this one and closed the other.
L-TChen commentedon Jan 7, 2021
The problem seems going away as it usually failed at compiling
VersionCommit, see the log.Yet,
ghc8.10.3 still fails at compilingTypeChecking.Rules.Termwith a different error messageThis might be caused by something else, since
ghc8.10.2 sometimes fails randomly on the GitHub-hosted runner with the option--split-sections. Anyway,cabalmanages to compile Agda. I will submit another issue if it fails reliably.@asr, should we add a clause in
Agda.cabalto exclude 8.8.x and 8.10.1--8.10.2 on Windows?asr commentedon Jan 7, 2021
No. If the user has a similar problem with
cabal-installwe can suggest: to usestackor to use GHC 8.10.3.asr commentedon Jan 7, 2021
It seems the problem was fixed in GHC 8.10.3.