Conversation
|
HI @shym, I actually try to reproduce the support of Cosmopolitan with OCaml 5.3.0 and took what you did about This is the output: I don't really understand why we can not apply patches. I tried to use |
|
Hi @dinosaure, diff --git i/caml/Makefile w/caml/Makefile
index 97dc862..c3dba6a 100644
--- i/caml/Makefile
+++ w/caml/Makefile
@@ -68,7 +68,7 @@ ocaml:
cp -r "$$(ocamlfind query ocaml-src)" $@
VERSION="$$(head -n1 ocaml/VERSION)" ; \
if test -d "patches/$$VERSION" ; then \
- git apply -v --unsafe-paths --directory=$@ "patches/$$VERSION"/*; \
+ cd .. && git apply --directory=caml/$@ "caml/patches/$$VERSION"/*; \
fi
ocaml/Makefile.config: $(LIBS) $(TOOLCHAIN_FOR_BUILD) | ocaml(I admit that I stopped at getting that rule to go through, I didn’t try to build the whole project) |
|
Hmmhmm, it seems that it does not work on the CI again 😕 |
|
No idea came to mind on my end either. and maybe run a check that the content of |
|
@shym You might be interested in the result (and we should perhaps think carefully about this with regard to The solution is to initialise a Git repository (with In short... this raises a lot of questions about the use of |
|
Hello @jart, it seems we are reaching the stage where we can produce an OCaml compiler (5.3.0) that uses Cosmopolitan. However, it seems that all syscalls end with You can test the project with $ opam switch create 5.3.0
$ git clone https://github.com/dinosaure/esperanto.git
$ git checkout upgrade-cosmopolitan-4.0.2
$ cd esperanto
$ opam pin add -y .
$ cd example/
$ dune build
$ ./link.sh
$ ./cat.com --strace
^DI'm not sure I understand why all syscalls emit |
|
My last two commits fix the initial issue about our basic program
|
|
Ok, I think that the last patch is a bug on cosmopolitan. I need to do some reproducible examples but it also seems that the deadlock part was not fundamentally changed. I will merge this PR. I will also try to move on a 5.4 and delete (as we did for |
And OCaml 5.3.0