Skip to content
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

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

Open
MisterDA opened this issue Dec 8, 2022 · 4 comments
Open

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

MisterDA opened this issue Dec 8, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@MisterDA
Copy link

MisterDA commented Dec 8, 2022

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
Copy link
Owner

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 MisterDA changed the title Cygwin shell: Mtime_clock: clock_gettime () failed Windows Server (?): Mtime_clock: clock_gettime () failed Dec 8, 2022
@MisterDA
Copy link
Author

MisterDA commented Dec 8, 2022

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
Copy link
Owner

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
Copy link
Owner

I think this PR fixes the initial issue: #48. Can you retry bob.com into your system?

@dinosaure dinosaure added the bug Something isn't working label Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants