Antonin Décimo

Results 287 comments of Antonin Décimo

OCaml 4.14.1 is now available by using [https://github.com/ocaml-opam/opam-repository-mingw#sunset](https://github.com/ocaml-opam/opam-repository-mingw). See #217 and 2a73d59f08d75155bcdc41b9f4da6553a335a1da. OCaml 5.0 isn't yet available.

I've now used the definitions from POSIX [`sys/stat.h`](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html) and [`sys/statvfs.h`](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_statvfs.h.html). Turns out `statfs` isn't in POSIX. I've removed Linux and macOS specific extensions (I've commented the code but I'll remove...

@bbonf I can't reproduce the error. How did you encounter it? Could you add a failing test case perhaps?

> Installed ocaml on cygwin (windows 10 build 19045) Do you mean that you're using the Cygwin port of OCaml (or the OCaml package from the Cygwin package archive)? Or...

May I suggest that some sort of "gotchas" or "best practices" section be added to the "Interfacing with C" manual page? I suspect some comments in this discussion would be...

On my system, there's a ``` /usr/bin/../x86_64-w64-mingw32/sys-root/mingw/lib/libws2_32.a ``` a raw invocation of `x86_64-w64-mingw32-ld --verbose -lws2_32`[^note] ``` attempt to open C:/Users/Antonin/AppData/Local/opam/default/lib/ocaml\flexdll/libws2_32.a failed attempt to open C:/Users/Antonin/AppData/Local/opam/default/lib/ocaml\unix/libws2_32.a failed attempt to open C:/Users/Antonin/AppData/Local/opam/default/lib/ocaml/libws2_32.a...

> Do you think this could be a suitable fix for the issue? Yes! I've actually been seeing a few blog posts and documentation lately explaining that the linker shouldn't...

I've taken the code from musl, it's MIT-licensed.

> We already have code that calls `/bin/sh` in C, for example in [`others/unix/execvp.c`](https://github.com/ocaml/ocaml/blob/fc98dd14335964e371df8cda910295ba4c8ddf28/otherlibs/unix/execvp.c#L72-L98), and in OCaml, for example in [`otherlibs/unix/unix_unix.ml`](https://github.com/ocaml/ocaml/blob/fc98dd14335964e371df8cda910295ba4c8ddf28/otherlibs/unix/unix_unix.ml#L930-L932). Can we use/adapt this instead of adding more code?...

A breaking but simplifying change could be to stop calling the shell with the preprocessor arguments, and rather invoke the process directly. If I'm not mistaken the preprocessor invocation can...