actions icon indicating copy to clipboard operation
actions copied to clipboard

GHC 7.10 broken on Windows

Open andreasabel opened this issue 2 years ago • 2 comments

This might be an upstream issue at its heart (chocolatey), but since haskell/actions/setup is advertising GHC 7.10 on Windows, it should package a install method that works...

https://github.com/haskell-hvr/missingh/runs/5554843212?check_suite_focus=true

2022-03-15T14:53:02.2794914Z Requested labels: windows-latest
2022-03-15T14:53:02.2794977Z Job defined at: haskell-hvr/missingh/.github/workflows/ci-mac-win.yml@refs/heads/ci-win
2022-03-15T14:53:02.2795007Z Waiting for a runner to pick up this job...
2022-03-15T14:53:04.6586346Z Job is waiting for a hosted runner to come online.
2022-03-15T14:53:09.6341463Z Job is about to start running on the hosted runner: GitHub Actions 5 (hosted)
2022-03-15T14:53:14.1880061Z Current runner version: '2.288.1'
2022-03-15T14:53:14.1907580Z ##[group]Operating System
2022-03-15T14:53:14.1908174Z Microsoft Windows Server 2022
2022-03-15T14:53:14.1908416Z 10.0.20348
2022-03-15T14:53:14.1908654Z Datacenter
2022-03-15T14:53:14.1908860Z ##[endgroup]
2022-03-15T14:53:14.1909128Z ##[group]Virtual Environment
2022-03-15T14:53:14.1909913Z Environment: windows-2022
2022-03-15T14:53:14.1910162Z Version: 20220306.1
2022-03-15T14:53:14.1910607Z Included Software: https://github.com/actions/virtual-environments/blob/win22/20220306.1/images/win/Windows2022-Readme.md
2022-03-15T14:53:14.1911235Z Image Release: https://github.com/actions/virtual-environments/releases/tag/win22%2F20220306.1
2022-03-15T14:53:14.1911630Z ##[endgroup]
2022-03-15T14:53:14.1911962Z ##[group]Virtual Environment Provisioner
2022-03-15T14:53:14.1912311Z 1.0.0.0-main-20220307-1
...
2022-03-15T13:59:51.8882930Z ##[group]Run haskell/actions/setup@v1
2022-03-15T13:59:51.8883385Z with:
2022-03-15T13:59:51.8883658Z   ghc-version: 7.10
2022-03-15T13:59:51.8883907Z   cabal-version: latest
2022-03-15T13:59:51.8884133Z   stack-version: latest
2022-03-15T13:59:51.8884378Z ##[endgroup]
2022-03-15T13:59:52.0236710Z Preparing to setup a Haskell environment
2022-03-15T13:59:52.0252688Z Resolved 7.10 to 7.10.3
2022-03-15T13:59:52.0253146Z Resolved latest to 3.6.2.0
2022-03-15T13:59:52.0257985Z ##[group]Preparing ghc environment
2022-03-15T13:59:52.0266266Z ##[endgroup]
2022-03-15T13:59:52.0267353Z ##[group]Installing ghc version 7.10.3
2022-03-15T13:59:52.0376725Z Attempting to install ghc 7.10.3 using chocolatey
2022-03-15T13:59:52.0392226Z ::stop-commands::***
2022-03-15T13:59:52.1413292Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe choco install ghc --version 7.10.3 -m --no-progress -r
2022-03-15T13:59:56.3590535Z Installing the following packages:
2022-03-15T13:59:56.3591317Z ghc
2022-03-15T13:59:56.3597096Z By installing, you accept licenses for the packages.
2022-03-15T14:00:05.2939754Z 
2022-03-15T14:00:05.2941018Z ghc v7.10.3 - Possibly broken
2022-03-15T14:00:05.3086538Z ghc package files install completed. Performing other installation steps.
2022-03-15T14:00:10.9478530Z Get-BinRoot is going to be deprecated in v1 and removed in v2. It has been replaced with Get-ToolsLocation (starting with v0.9.10), however many packages no longer require a special separate directory since package folders no longer have versions on them. Some do though and should continue to use Get-ToolsLocation.
2022-03-15T14:00:17.4867489Z WARNING: Url has SSL/TLS available, switching to HTTPS for download
2022-03-15T14:00:17.6376932Z Downloading ghc 64 bit
2022-03-15T14:00:17.6380718Z   from 'https://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-x86_64-unknown-mingw32.tar.xz'
2022-03-15T14:00:20.0872422Z 
2022-03-15T14:00:20.0885302Z Download of ghc-7.10.3-x86_64-unknown-mingw32.tar.xz (127.31 MB) completed.
2022-03-15T14:00:23.5304327Z Extracting C:\Users\runneradmin\AppData\Local\Temp\ghc\7.10.3\ghc-7.10.3-x86_64-unknown-mingw32.tar.xz to C:\ProgramData\chocolatey\lib\ghc.7.10.3\tmp...
2022-03-15T14:00:38.4608656Z C:\ProgramData\chocolatey\lib\ghc.7.10.3\tmp
2022-03-15T14:00:38.4659443Z Extracting C:\ProgramData\chocolatey\lib\ghc.7.10.3\tmp\ghcInstall to C:\tools\ghc...
2022-03-15T14:00:38.5262889Z Microsoft.PowerShell.Commands.WriteErrorException
2022-03-15T14:00:38.5272866Z ERROR: The system cannot find the file specified.
2022-03-15T14:00:38.5284578Z C:\ProgramData\chocolatey\lib\ghc.7.10.3\tmp\ghcInstall
2022-03-15T14:00:38.5294467Z Microsoft.PowerShell.Commands.WriteErrorException
2022-03-15T14:00:38.5306407Z Microsoft.PowerShell.Commands.WriteErrorException
2022-03-15T14:00:38.5316580Z Microsoft.PowerShell.Commands.WriteErrorException
2022-03-15T14:00:38.5328145Z System ERROR:
2022-03-15T14:00:38.5338550Z The system cannot find the file specified.
2022-03-15T14:00:38.6487154Z Cannot find path 'C:\tools\ghc\ghc-7.10.3' because it does not exist.
2022-03-15T14:00:38.6543162Z ERROR: 7-Zip encountered a fatal error while extracting the files. This is most likely an issue with the 'ghc' package and not with Chocolatey itself. Please follow up with the package maintainer(s) directly.
2022-03-15T14:00:39.0033175Z   ghc may be able to be automatically uninstalled.
2022-03-15T14:00:39.0190753Z Environment Vars (like PATH) have changed. Close/reopen your shell to
2022-03-15T14:00:39.0191517Z  see the changes (or in powershell/cmd.exe just type `refreshenv`).
2022-03-15T14:00:44.3192027Z The install of ghc was NOT successful.
2022-03-15T14:00:44.3216135Z Error while running 'C:\ProgramData\chocolatey\lib\ghc.7.10.3\tools\chocolateyInstall.ps1'.
2022-03-15T14:00:44.3221050Z  See log for details.
2022-03-15T14:00:46.5642307Z 
2022-03-15T14:00:46.5643024Z Chocolatey installed 0/1 packages. 1 packages failed.
2022-03-15T14:00:46.5646250Z  See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2022-03-15T14:00:46.5652654Z 
2022-03-15T14:00:46.5660384Z Failures
2022-03-15T14:00:46.5672270Z  - ghc (exited 2) - Error while running 'C:\ProgramData\chocolatey\lib\ghc.7.10.3\tools\chocolateyInstall.ps1'.
2022-03-15T14:00:46.5672951Z  See log for details.
2022-03-15T14:00:47.3301211Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe choco install ghc --version 7.10.3 -m --no-progress -r --pre
2022-03-15T14:00:48.9131090Z Installing the following packages:
2022-03-15T14:00:48.9141486Z ghc
2022-03-15T14:00:48.9149355Z By installing, you accept licenses for the packages.
2022-03-15T14:00:50.2127767Z 
2022-03-15T14:00:50.2128862Z ghc v7.10.3 - Possibly broken
2022-03-15T14:00:50.2269043Z ghc package files install completed. Performing other installation steps.
2022-03-15T14:00:51.4831275Z Get-BinRoot is going to be deprecated in v1 and removed in v2. It has been replaced with Get-ToolsLocation (starting with v0.9.10), however many packages no longer require a special separate directory since package folders no longer have versions on them. Some do though and should continue to use Get-ToolsLocation.
2022-03-15T14:00:51.8009051Z WARNING: Url has SSL/TLS available, switching to HTTPS for download
2022-03-15T14:00:51.9110524Z Downloading ghc 64 bit
2022-03-15T14:00:51.9111754Z   from 'https://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-x86_64-unknown-mingw32.tar.xz'
2022-03-15T14:00:54.2488465Z 
2022-03-15T14:00:54.2501772Z Download of ghc-7.10.3-x86_64-unknown-mingw32.tar.xz (127.31 MB) completed.
2022-03-15T14:00:57.3076519Z Extracting C:\Users\runneradmin\AppData\Local\Temp\chocolatey\ghc\7.10.3\ghc-7.10.3-x86_64-unknown-mingw32.tar.xz to C:\ProgramData\chocolatey\lib\ghc.7.10.3\tmp...
2022-03-15T14:01:11.8113742Z C:\ProgramData\chocolatey\lib\ghc.7.10.3\tmp
2022-03-15T14:01:11.8164287Z Extracting C:\ProgramData\chocolatey\lib\ghc.7.10.3\tmp\ghcInstall to C:\tools\ghc...
2022-03-15T14:01:11.8748954Z Microsoft.PowerShell.Commands.WriteErrorException
2022-03-15T14:01:11.8760281Z ERROR: The system cannot find the file specified.
2022-03-15T14:01:11.8771919Z C:\ProgramData\chocolatey\lib\ghc.7.10.3\tmp\ghcInstall
2022-03-15T14:01:11.8782958Z Microsoft.PowerShell.Commands.WriteErrorException
2022-03-15T14:01:11.8792342Z Microsoft.PowerShell.Commands.WriteErrorException
2022-03-15T14:01:11.8803128Z Microsoft.PowerShell.Commands.WriteErrorException
2022-03-15T14:01:11.8813659Z System ERROR:
2022-03-15T14:01:11.8823765Z The system cannot find the file specified.
2022-03-15T14:01:11.8942808Z Cannot find path 'C:\tools\ghc\ghc-7.10.3' because it does not exist.
2022-03-15T14:01:11.9473447Z ERROR: 7-Zip encountered a fatal error while extracting the files. This is most likely an issue with the 'ghc' package and not with Chocolatey itself. Please follow up with the package maintainer(s) directly.
2022-03-15T14:01:17.8659961Z The install of ghc was NOT successful.
2022-03-15T14:01:17.8682501Z Error while running 'C:\ProgramData\chocolatey\lib\ghc.7.10.3\tools\chocolateyInstall.ps1'.
2022-03-15T14:01:17.8683223Z  See log for details.
2022-03-15T14:01:20.1495219Z 
2022-03-15T14:01:20.3254907Z Chocolatey installed 0/1 packages. 1 packages failed.
2022-03-15T14:01:20.3255862Z  See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2022-03-15T14:01:20.3258089Z 
2022-03-15T14:01:20.3258344Z Failures
2022-03-15T14:01:20.3259534Z  - ghc (exited 2) - Error while running 'C:\ProgramData\chocolatey\lib\ghc.7.10.3\tools\chocolateyInstall.ps1'.
2022-03-15T14:01:20.3260080Z  See log for details.
2022-03-15T14:01:20.3261357Z ::***::
2022-03-15T14:01:20.3266782Z ##[endgroup]
2022-03-15T14:01:20.3299367Z ##[error]All install methods for ghc 7.10.3 failed

andreasabel avatar Mar 15 '22 14:03 andreasabel

Still broken: https://github.com/haskell-hvr/missingh/runs/6605420985?check_suite_focus=true#step:3:13

andreasabel avatar May 26 '22 07:05 andreasabel

This might be an upstream issue at its heart (chocolatey),

It's not. GHC 7.10.3 was deprecated and hidden from the version list in chocolatey in 2017 and replaced with 7.10.3.2[1]. See https://community.chocolatey.org/packages/ghc#versionhistory

However this actions script is forcing 7.10.3 so it's explicitly asking for the hidden package which indeed is broken[2] since 2017.

[1] https://community.chocolatey.org/packages/ghc/7.10.3.2 [2] https://community.chocolatey.org/packages/ghc/7.10.3

Mistuke avatar May 26 '22 08:05 Mistuke

This issue was already reported here, and the solution was outlined (but never implemented):

  • #52

andreasabel avatar Dec 28 '22 17:12 andreasabel