-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
runtime: fatal error: winmm.dll not found
on windows-amd64-2016 during bootstrapping
#56745
Comments
Just FYI. timeBeginPeriod and timeEndPeriod functions are used from winmm.dll. We cannot continue without them. Alex |
To be puritan, these functions are only used if Windows does not support high resolution timers, which were introduced in Windows 10, version 1803. We could relax this failure mode so it only triggers on older Windows versions. Having said this, I have no clue why |
Yeah, I'm not so concerned about whether failing to load the DLL should be a fatal error — it shouldn't have failed to load in the first place, in which case it doesn't matter whether that failure happens to be fatal. 😅 |
Is this a pattern of failures or has it just been one so far? I guess it's also possible this is a build infra issue... I don't know. |
I only know of the one so far, although I think it's been a while since the last |
Please ignore my message. I was talking to myself. :-)
Maybe it is possible to add call to print() which calls getlasterror() before this line Line 285 in cf93b25
and that might give us some clues. Perhaps it is good idea to do the same at every windowsLoadSystemLib call site. Alex |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Change https://go.dev/cl/556935 mentions this issue: |
winmm.dll is only used for timeBeginPeriod and timeEndPeriod, which are not needed on Windows versions supporting high resolution timers, that is Windows 10 version 1803, and later. Updates #56745. Change-Id: Ie9576638fb8d2b4e648283bec3170aefa76f9f82 Reviewed-on: https://go-review.googlesource.com/c/go/+/556935 Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
winmm.dll is only used for timeBeginPeriod and timeEndPeriod, which are not needed on Windows versions supporting high resolution timers, that is Windows 10 version 1803, and later. Updates golang#56745. Change-Id: Ie9576638fb8d2b4e648283bec3170aefa76f9f82 Reviewed-on: https://go-review.googlesource.com/c/go/+/556935 Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
From a TryBot on https://go.dev/cl/450713:
(CC @golang/runtime, @golang/windows)
The text was updated successfully, but these errors were encountered: