On 17 Dec 2021, at 17:48, Daniel Dickman <didick...@gmail.com> wrote: > > > >> On Dec 17, 2021, at 12:21 PM, Jeremie Courreges-Anglas <j...@wxcvbn.org> >> wrote: >> >> On Sat, Dec 04 2021, Daniel Dickman <didick...@gmail.com> wrote: >>> See below for a diff for ocaml to the 4.12.x series. Only a few changes >>> were needed for this update and they're already in the tree: >>> - mldonkey and unison 2.4.x needed a small diff >>> - dune needed to be updated to 2.7.0 >>> >>> All ocaml ports were built successfully on amd64 (except coccinelle which >>> is still broken). >> >> This update doesn't package on sparc64 and riscv64 - and likely all >> non-native archs. The diff below fixes this for me, and seems to be >> correct. IIUC the compilation of those two files is hooked from ASMCOMP >> in ./compilerlibs/Makefile.compilerlibs. >> >> ok? >> > > Ok daniel@ and thank you for testing this!
This looks right to me. Although if you have RISC-V hardware, you could also try adding riscv64 to OCAML_NATIVE_ARCHS and OCAML_NATIVE_DYNLINK_ARCHS in arch-defines.mk and seeing how that gets along. Most things should just work with native riscv OCaml. Anil