dinosaure / bob

A peer-to-peer file-transfer tool in OCaml
https://bob.osau.re/
MIT License
132 stars 4 forks source link

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

Open MisterDA opened 1 year ago

MisterDA commented 1 year ago

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")
dinosaure commented 1 year ago

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.

MisterDA commented 1 year ago

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.

dinosaure commented 1 year ago

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 commented 1 year ago

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