[Bug 242389] lang/ocaml: fix build on powerpc64 elfv2
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Dec 2 21:03:08 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242389
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 at FreeBSD.org
Reporter: pkubaj at FreeBSD.org
CC: michipili at gmail.com
CC: michipili at gmail.com
Flags: maintainer-feedback?(michipili at gmail.com)
Created attachment 209630
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=209630&action=edit
patch
LLVM miscompiles ocaml on powerpc64 elfv2:
ld: error: bytecomp/printlambda.ml:23:(.text+0x16): relocation R_PPC64_TOC16_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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list