Skip to content

Fault-Message: "GetSystemTimePreciseAsFileTime" #7850

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

Open
Somebody111de opened this issue Apr 28, 2025 · 2 comments
Open

Fault-Message: "GetSystemTimePreciseAsFileTime" #7850

Somebody111de opened this issue Apr 28, 2025 · 2 comments

Comments

@Somebody111de
Copy link

V0.0.30 crahes on Win7x64 with gnu and msvc. Fault-Message: "GetSystemTimePreciseAsFileTime" not found in kernel32.dll.

Previous versions (e.g. V0.0.28) works fine.

Image

@jfinkels
Copy link
Collaborator

Could you say more about how to reproduce this error? For example, what command did you run to cause this error message?

@ChrisDenton
Copy link

ChrisDenton commented Apr 30, 2025

The default Rust Windows targets do not support Windows 7. In this case, any use of SystemTime::now (i.e. via Chrono) would cause GetSystemTimePreciseAsFileTime to be imported and thus fail on Windows 7.

There are Windows 7 rust targets but nobody has stepped forward to maintain them as tier 2 and, as Windows 7 has been out of support from the vendor for many years now, there's not any help from there either. This is important because unless/until it's tier 2, it can only be used by compiling rustc from source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants