Skip to content

dune 3.22.0 bootstrap fails on Windows < 8 — GetSystemTimePreciseAsFileTime not found in KERNEL32.dll #13871

@a2line

Description

@a2line

Environment

  • OS: Windows 7
  • OCaml: 4.14.2+mingw64
  • opam: 2.0.8
  • dune: 3.22.0 (regression from 3.21)

Error

Running opam install dune fails at bootstrap:

dune.exe - entry point not found
The procedure entry point GetSystemTimePreciseAsFileTime could not be
located in the dynamic link library KERNEL32.dll

exit-code: -1073741511 (0xC0000139 STATUS_ENTRYPOINT_NOT_FOUND)

ldd output

ntdll.dll => C:\Windows\SYSTEM32\ntdll.dll
kernel32.dll => C:\Windows\system32\kernel32.dll
KERNELBASE.dll => C:\Windows\system32\KERNELBASE.dll

Notes

  • dune 3.21 installs and works correctly on this system
  • GetSystemTimePreciseAsFileTime was introduced in Windows 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    windowsIssues that relate to Dune on Microsoft Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions