bob icon indicating copy to clipboard operation
bob copied to clipboard

Windows Server (?): `Mtime_clock: clock_gettime () failed`

Open MisterDA opened this issue 2 years ago • 4 comments

I'm running latest bob.com in a Cygwin shell on Windows, and got this error:

Fatal error: exception Sys_error("Mtime_clock: clock_gettime () failed")

MisterDA avatar Dec 08 '22 12:12 MisterDA

The cygwin shell probably misleads Cosmopolitan about the host system. In this way, CLOCK_MONOTONIC becomes probably wrong and EINVAL is probably returned by clock_gettime so. I'm not sure that we have an easy way to fix that and probably Cosmopolitan 2.0 fixes the issue. I will try to experiment a bit about that.

dinosaure avatar Dec 08 '22 15:12 dinosaure

Sorry, I've investigated a bit more and I've found out that the error isn't linked to running bob in Cygwin or powershell or whatever, but rather to Windows Server. It doesn't happen if I run bob in a regular Windows.

MisterDA avatar Dec 08 '22 16:12 MisterDA

but rather to Windows Server.

Hmmmhmm, interesting indeed. I'm not sure about Windows Server and if Cosmopolitan is able to recognize such system.

dinosaure avatar Dec 08 '22 16:12 dinosaure

I think this PR fixes the initial issue: https://github.com/dinosaure/bob/pull/48. Can you retry bob.com into your system?

dinosaure avatar Jul 11 '23 16:07 dinosaure