Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Could not install MinGW on github runner #6

Open
FlorianFrank opened this issue Jul 14, 2022 · 6 comments
Open

Bug: Could not install MinGW on github runner #6

FlorianFrank opened this issue Jul 14, 2022 · 6 comments

Comments

@FlorianFrank
Copy link

When executing

uses: egor-tensin/setup-mingw@v2 
    with:
        platform: x64

following error message is displayed.

Error while running 'C:\ProgramData\chocolatey\lib\mingw\tools\chocolateyinstall.ps1'.
 See log for details.
Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
 - mingw (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\mingw\tools\chocolateyinstall.ps1'.
 See log for details.
@nlohmann
Copy link

I'm having the same issue, and it seems also this repo's nightly build.

@coffeebe4code
Copy link

The first time I ran this action in my pipeline it passed. So I merged it right in. No build has worked since. I am going to start looking where this is coming from

@coffeebe4code
Copy link

So I investigated as much as I could. It failed for me on the posix library download from sourceforge. I was able to get a 3rd try build on the runner to successfully download that library. So either this is sourceforge having issues, or there is some sort of rate limit, although I don't know how it would rate limit a github runner. I will keep carrying on, but then might further investigate if they keep failing to download.

@Jamiras
Copy link

Jamiras commented Jul 24, 2022

Captured information from my most recent run in case it helps.

Chocolatey v1.1.0
Upgrading the following packages:
mingw
By upgrading, you accept licenses for the packages.
mingw v8.1.0 [Approved]
mingw package files upgrade completed. Performing other installation steps.
Downloading mingw 64 bit
  from 'https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z/download'
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z/download'. Exception calling "GetResponse" with "0" argument(s): "The request was aborted: Could not create SSL/TLS secure channel." 
This package is likely not broken for licensed users - see https://docs.chocolatey.org/en-us/features/private-cdn.
The upgrade of mingw was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\mingw\tools\chocolateyinstall.ps1'.
 See log for details.
Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - mingw (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\mingw\tools\chocolateyinstall.ps1'.
 See log for details.
Error: Process completed with exit code 1.

"The request was aborted: Could not create SSL/TLS secure channel."

@claremacrae
Copy link

tl;dr: Workaround: downgrade from windows-latest to windows-2019

Example: approvals/ApprovalTests.cpp@54b50a6

In approvals/ApprovalTests.cpp@54b50a6 we found that a workaround was to downgrade from windows-latest to windows-2019, and mingw then installed fine via this project.

@Jamiras
Copy link

Jamiras commented Dec 17, 2022

FWIW, I've found that windows-latest has mingw 11.2 installed (see actions/runner-images#5729), and I was able to remove the setup-mingw@v2 step from my workflow. The only change I had to make was to alias cc to gcc via CC=gcc in my make step.

Hpmason added a commit to Hpmason/retour-rs that referenced this issue May 23, 2023
GH action fails, but mingw v11 is pre-installed on windows-latest:
egor-tensin/setup-mingw#6 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants