Fix 4.08 support wrt changes beta2#209
Conversation
| cd ../../.. | ||
| ;; | ||
| 4.08.*) | ||
| cp `ocamlfind query mmap`/libmmap_stubs.a libxenotherlibs.a |
There was a problem hiding this comment.
@diml I think in mirage-platform we only need the stubs (mmap.o and mmap_ba.o). Is this the right way to do it, or is libmmap_stubs.a a name private to Dune?
There was a problem hiding this comment.
if you need these C functions in a xen-MirageOS-kernel, you'll need to cross-compile them with appropriate CFLAGS and includes. see https://github.com/mirage/checkseum / https://github.com/inhabitedtype/bigstringaf on how to do this.
|
uhm, why do we need The changes/modifications for supporting 4.06.0 and 4.07.0 in ocaml-freestanding are different than the changes here, which are copying the pre-4.06.0 behaviour (see mirage/ocaml-solo5#27 and mirage/ocaml-solo5#39 if you're interested). There's as well @yomimono's work on rebasing mirage-xen support onto ocaml-freestanding (and using unikraft, see https://github.com/yomimono/ocaml-freestanding/tree/xen-on-freestanding and #199) -- so maybe it is also not worth to investigate this further. |
Interesting. Perhaps this is not needed at all! I don't know what I'm doing most of the time 🙃
That's also why I haven't been able to test this much. Lwt depends on some PPX for building which depends on OMP
Indeed. Happy to drop this PR if there's other ways of getting OCaml 4.08 to run on Xen. |
|
Closed due to #211 |
Following up on ocaml/ocaml#2263 (comment), this PR fixes OCaml 4.08 support via https://github.com/mirage/mmap