Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
OCaml 4.08beta2 fails to link on NetBSD/arm64 #8567
When compiling OCaml 4.08beta2 on a Pinebook running NetBSD (arm64 architecture), it fails with the following error message:
I'm using the package available at https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=tree;f=ocaml which adds a few local patches, but nothing that I can see would cause this. It does patch configure to recognise NetBSD/aarch64 as an arm64 architecture that has dynamic linking.
Ocaml 4.07 compiles fine with a similar patch.
I've seen issue #6283 - but that seems to occur in a different part in the tree, and I've checked that the changes applied in that issue are still there.
referenced this issue
Apr 2, 2019
@mshinwell is right, the wrong instructions are used to access
I have been unable to force the Linux linker to do the 4 mod 8 placement, but apparently the NetBSD one can do it. The fix #8557 changes the placement of global data, so it can hide the problem, but is not a proper fix.