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

Applications linked with winpthread can not be run on Windows XP #5139

Closed
vovams opened this issue Apr 3, 2019 · 16 comments
Closed

Applications linked with winpthread can not be run on Windows XP #5139

vovams opened this issue Apr 3, 2019 · 16 comments

Comments

@vovams
Copy link

vovams commented Apr 3, 2019

An application linked with winpthread fails to start on Windows XP due to missing GetTickCount64() function in kernel32.dll. This function in available only starting from Vista. The dependency seems to come from this commit in winpthread. The use of GetTickCount64() is surrounded by #if _WIN32_WINNT >= _WIN32_WINNT_VISTA, but apparently the library was built with a high enough value of _WIN32_WINNT.

Do you still support building software for Windows XP? I did not found anything about supported target platforms on the website and wiki.

@mati865
Copy link
Collaborator

mati865 commented Apr 3, 2019

Targeted Windows version is set here:

--with-default-win32-winnt=0x601 \

@vovams
Copy link
Author

vovams commented Apr 3, 2019

That line comes from 6665c4f. So, does that mean that building for Windows XP is no longer supported? Can i rebuild winpthread locally, or will i need to rebuild other libs too?

@mati865
Copy link
Collaborator

mati865 commented Apr 3, 2019

Hard to tell, theoretically anything linked to libs build for Win7 may not work on XP.

@vovams
Copy link
Author

vovams commented Apr 3, 2019

I downgraded mingw-w64-i686-libwinpthread-git and mingw-w64-i686-winpthreads-git to 7.0.0.5273.3e5acf5d-1 according to instructions in wiki and it seems to work. At least for now.

@oscarfv
Copy link
Contributor

oscarfv commented Apr 3, 2019

@vovams : developers of winpthread and other runtime libraries bumped the minimum supported OS version to Windows 7 time ago because they want to take advantage of new APIs. This is not going to change. And MSYS2/Cygwin do not support Windows XP any more.

If this answer your question please close this issue. Thanks.

@vovams
Copy link
Author

vovams commented Apr 3, 2019

Yeah, thanks. You might want to consider writing a list of supported Windows versions somewhere. Because i was unable to find that information.

@vovams vovams closed this as completed Apr 3, 2019
@mingwandroid
Copy link
Member

mingwandroid commented Apr 4, 2019

You might want to consider touching up your googling skills. http://www.msys2.org/ clearly states this.

Supporting insecure OSes does no one a favor.

@vovams
Copy link
Author

vovams commented Apr 4, 2019

If you are talking about this phrase:

Current MSYS2 can't be installed on Windows XP anymore.

Then i have seen this. Being able to build on XP and being able to build for XP are different things. I would not call it "clearly".

@trufanov-nok
Copy link

I downgraded mingw-w64-i686-libwinpthread-git and mingw-w64-i686-winpthreads-git to 7.0.0.5273.3e5acf5d-1 according to instructions in wiki and it seems to work. At least for now.

Just leaving here a few commands for that in case someone will search:

wget http://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz
wget http://repo.msys2.org/mingw/i686/mingw-w64-i686-winpthreads-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz

pacman -U --noconfirm mingw-w64-i686-libwinpthread-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz mingw-w64-i686-winpthreads-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz

rm mingw-w64-i686-libwinpthread-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz
rm mingw-w64-i686-winpthreads-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz

@tomay3000
Copy link

tomay3000 commented Jan 21, 2020

What about InitializeConditionVariable error !?
How to solve this !?

@pileon
Copy link

pileon commented May 28, 2020

Supporting insecure OSes does no one a favor.

Except when one have to maintain legacy systems still running on such an OS.

@jbruchon
Copy link

Supporting insecure OSes does no one a favor.

Security isn't the only thing that matters. I have a netbook that will never have Windows Vista or up but that plays classic Windows games perfectly fine. Supporting it does me a favor.

@sskras
Copy link

sskras commented Jan 1, 2023

Also the support would enable software on ReactOS, which implements NT5.1/5.2 APIs and is very much in development.

@Biswa96
Copy link
Member

Biswa96 commented Jan 1, 2023

This project does not target ReactOS or any Windows platform older that Windows 7. Feel free to compile your own version.

@nambona890
Copy link

I downgraded mingw-w64-i686-libwinpthread-git and mingw-w64-i686-winpthreads-git to 7.0.0.5273.3e5acf5d-1 according to instructions in wiki and it seems to work. At least for now.

Just leaving here a few commands for that in case someone will search:

wget http://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz
wget http://repo.msys2.org/mingw/i686/mingw-w64-i686-winpthreads-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz

pacman -U --noconfirm mingw-w64-i686-libwinpthread-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz mingw-w64-i686-winpthreads-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz

rm mingw-w64-i686-libwinpthread-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz
rm mingw-w64-i686-winpthreads-git-7.0.0.5273.3e5acf5d-1-any.pkg.tar.xz

Small problem: They purged those versions of winpthread. There's no archive of them I can find.

@Midar
Copy link
Contributor

Midar commented Nov 9, 2023

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