Date: Mon, 02 Dec 2019 21:03:07 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 242389] lang/ocaml: fix build on powerpc64 elfv2 Message-ID: <bug-242389-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242389 Bug ID: 242389 Summary: lang/ocaml: fix build on powerpc64 elfv2 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: pkubaj@FreeBSD.org CC: michipili@gmail.com CC: michipili@gmail.com Flags: maintainer-feedback?(michipili@gmail.com) Created attachment 209630 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D209630&action= =3Dedit patch LLVM miscompiles ocaml on powerpc64 elfv2: ld: error: bytecomp/printlambda.ml:23:(.text+0x16): relocation R_PPC64_TOC1= 6_DS out of range: 73024 is not in [-32768, 32767] Use GCC instead. I tested on amd64 that it compiles successfully. Add a conditional patch enabled only on powerpc64 elfv2 to use elfv2 abi instead of elfv1. Add a bunch of other patches to correctly check for abi instead of relying = on endianness. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242389-7788>