[Bug 261180] devel/ocaml-opam: does not build on ARM

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 07 Feb 2024 19:43:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261180

--- Comment #20 from Benjamin Jacobs <freebsd@dev.thsi.be> ---
Hello,

Please consider applying the newly attached patches. The first one,
0001-devel-ocaml-opam-Fix-build-on-armv7.patch fixes this ticket. The text
relocations issue is fixed by supplying LDFLAGS to the configure (hence no need
to patch the OCaml configure script), and the later assembler issue reported by
Stefan.

(In reply to Stefan Grundmann from comment #17)
It seems that ocaml generated assembly for ARM 32 contains duplicated
(identical) sections, which GNU binutils happily processes. Fixed by setting
USE_BINUTILS on ARM32 archs.

This patch is likley to fix armv6 and ppc32 as well.

The second patch, 0002-devel-ocaml-opam-GNUMake-run-dependency.patch adds gmake
as run dep, as it is required for opam init to bootstrap an OCaml compiler. IOW
it is required in most of the user use-cases, except for opam-install as part
of some other (package).

-- 
You are receiving this mail because:
You are the assignee for the bug.