See https://gitlab.alpinelinux.org/alpine/aports/-/blob/52810020196a468a2e9805a4b7cee118334f39d2/community/ocaml/fix-configure-musl.patch#L64. We can disable TEXTREL warnings where OCaml cannot generate relocatable code to allow tests to actually pass rather than being filled with these (unfixable from our end) warnings.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bbb6a45f6d3e0193703828d6cdf04b46babc7b9 commit 4bbb6a45f6d3e0193703828d6cdf04b46babc7b9 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-12 18:13:26 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-12 18:22:35 +0000 dev-lang/ocaml: don't warn on textrels on 32-bit arches We can't do anything about it on 32-bit arches and it causes unnecessary test failures in OCaml-based packages (because of the diff in output). Closes: https://bugs.gentoo.org/773226 Signed-off-by: Sam James <sam@gentoo.org> dev-lang/ocaml/ocaml-4.05.0-r3.ebuild | 8 ++++++++ dev-lang/ocaml/ocaml-4.09.0.ebuild | 11 +++++++++++ dev-lang/ocaml/ocaml-4.10.0.ebuild | 11 +++++++++++ dev-lang/ocaml/ocaml-4.10.2.ebuild | 11 +++++++++++ dev-lang/ocaml/ocaml-4.11.1.ebuild | 11 +++++++++++ dev-lang/ocaml/ocaml-4.11.2.ebuild | 11 +++++++++++ 6 files changed, 63 insertions(+)