On Sun, Jan 19, 2020 at 02:04:40PM +0000, Stuart Henderson wrote: [...] > ocamlfind ocamlopt -safe-string -a -o extc.cmxa -package extlib extc.ml > process.ml > File "extc.ml", line 1: > Error: Corrupted compilation unit description > /pobj/haxe-4.0.5/haxe-4.0.5/ocamldeps/extlib/IO.cmx [...]
It looks like this is because the bundled OCaml deps in ocamldeps/extlib contain binary-compiled parts in the .cmx files [1]. My bad, I thought this was only interpreted code. I'm going to look into a better solution; possibly adding ports for the dependencies rather than bundling. I propose either setting the port to ONLY_FOR_ARCHS=amd64 as in the diff below, or BROKEN until I've found a better way to address this. [1] gleaned from https://caml.inria.fr/pub/docs/manual-ocaml/native.html Index: Makefile =================================================================== RCS file: /cvs/ports/lang/haxe/Makefile,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 Makefile --- Makefile 18 Jan 2020 00:31:05 -0000 1.1.1.1 +++ Makefile 19 Jan 2020 15:11:30 -0000 @@ -1,5 +1,6 @@ # $OpenBSD: Makefile,v 1.1.1.1 2020/01/18 00:31:05 thfr Exp $ +ONLY_FOR_ARCHS = amd64 # uses binary-compiled bundled OCaml deps COMMENT = toolkit for the Haxe programming language V = 4.0.5
