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

Can't run on windows-latest #17

Open
bocchi810 opened this issue Jan 7, 2024 · 3 comments
Open

Can't run on windows-latest #17

bocchi810 opened this issue Jan 7, 2024 · 3 comments

Comments

@bocchi810
Copy link

I can't run it only on windows-latest
log:

Chocolatey v2.2.2
Upgrading the following packages:
mingw
By upgrading, you accept licenses for the packages.
mingw is not installed. Installing...

mingw v13.2.0
mingw package files upgrade completed. Performing other installation steps.
Downloading mingw 64 bit
  from 'https://github.com/niXman/mingw-builds-binaries/releases/download/13.2.0-rt_v11-rev0/x86_64-13.2.0-release-posix-seh-ucrt-rt_v11-rev0.7z'

Download of x86_64-13.2.0-release-posix-seh-ucrt-rt_v11-rev0.7z (69.57 MB) completed.
Hashes match.
Extracting C:\Users\runneradmin\AppData\Local\Temp\chocolatey\mingw\13.2.0\x86_64-13.2.0-release-posix-seh-ucrt-rt_v11-rev0.7z to C:\ProgramData\chocolatey\lib\mingw\tools\install...
C:\ProgramData\chocolatey\lib\mingw\tools\install
Testing path: C:\ProgramData\mingw64\mingw32\bin
Testing path: C:\ProgramData\mingw64\mingw64\bin
PATH environment variable does not have C:\ProgramData\mingw64\mingw64\bin in it. Adding...
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 The upgrade of mingw was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\mingw\tools\install'

Chocolatey upgraded 1/1 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Remove-Item: D:\a\_temp\26a2006e-59c9-41e5-bcb8-2abcadb1ba96.ps1:140
Line |
 140 |          Remove-Item (Join-Path $mingw_lib 'libpthread.dll.a')
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path
     | 'C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\x86_64-w64-mingw32\lib\libpthread.dll.a' because it
     | does not exist.

Error: Process completed with exit code 1.
@Inrixia
Copy link

Inrixia commented Jan 13, 2024

Also getting this. Does anyone know a fix?

@Inrixia
Copy link

Inrixia commented Jan 13, 2024

Looks like using

      uses: egor-tensin/setup-mingw@v2.2.0
      with:
        version: 12.2.0 

Re #14 works

andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 17, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 17, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 17, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 17, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 18, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 18, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 18, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 18, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 19, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 19, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 19, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 19, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 19, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 19, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 21, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 21, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 22, 2024
andy5995 added a commit to netpanzer/netpanzer that referenced this issue Jan 22, 2024
@Denzy7
Copy link

Denzy7 commented Feb 22, 2024

windows-latest image already includes mingw by default. If you're using cmake you could add -G "MinGW Makefiles" to cmake command. It's located in C:\mingw64 and is already added to %PATH% in github actions by default

jakeru added a commit to jakeru/tau that referenced this issue May 13, 2024
This should fix the CI builds for Windows that has been failing for quite some
time with the following error message:

```
Cannot find path
'... lib\mingw\tools\install\mingw64\x86_64-w64-mingw32\lib\libpthread.dll.a'
```

By upgrading the `egor-tensin/setup-mingw` from version `2.0` to `2.2` we are
able to specify a specific mingw version.

A too new version of mingw, for example 13.2.0, seems to fail the build for us.
So let's use the fixed version 12.2.0 which was working fine before.

This solution is suggested for example here:
egor-tensin/setup-mingw#17 (comment)
jakeru added a commit to jakeru/tau that referenced this issue May 13, 2024
This should fix the CI builds for Windows that has been failing for quite some
time with the following error message:

```
Cannot find path
'... lib\mingw\tools\install\mingw64\x86_64-w64-mingw32\lib\libpthread.dll.a'
```

By upgrading the `egor-tensin/setup-mingw` from version `v2` to `v2.2.0` we are
able to specify a specific mingw version.

A too new version of mingw, for example 13.2.0, seems to fail the build for us.
So let's use the fixed version 12.2.0 which was working fine before.

This solution is suggested for example here:
egor-tensin/setup-mingw#17 (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

3 participants