Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flambda does not compile on arm64 with OCaml < 4.06 #54

Closed
wants to merge 1 commit into from

Conversation

kit-ty-kate
Copy link
Contributor

#9 377.8 # ../../boot/ocamlrun ../../ocamlopt -nostdlib -I ../../stdlib -shared -o unix.cmxs -I . unix.cmxa
#9 377.8 # /usr/bin/ld: unix.a(unix.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `camlUnix__Pmakeblock_3569' which may bind externally can not be used when making a shared object; recompile with -fPIC
#9 377.8 # unix.a(unix.o): in function `camlUnix__anon$2dfn$5b$2fhome$2fopam$2f$2eopam$2f4$2e05$2f$2eopam$2dswitch$2fbuild$2focaml$2dvariants$2e4$2e05$2e0$2bflambda$2fotherlibs$2funix$2funix$2eml$3a96$2c4$2d$2d2598$5d_511':
#9 377.8 # /home/opam/.opam/4.05/.opam-switch/build/ocaml-variants.4.05.0+flambda/otherlibs/unix/unix.ml:96:(.text+0x110): dangerous relocation: unsupported relocation
#9 377.8 # /usr/bin/ld: unix.a(unix.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `camlUnix__const_block_529' which may bind externally can not be used when making a shared object; recompile with -fPIC
#9 377.8 # /home/opam/.opam/4.05/.opam-switch/build/ocaml-variants.4.05.0+flambda/otherlibs/unix/unix.ml:167:(.text+0x154): dangerous relocation: unsupported relocation
#9 377.8 # /usr/bin/ld: unix.a(unix.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `camlUnix__const_block_686' which may bind externally can not be used when making a shared object; recompile with -fPIC
#9 377.8 # /home/opam/.opam/4.05/.opam-switch/build/ocaml-variants.4.05.0+flambda/otherlibs/unix/unix.ml:97:(.text+0x190): dangerous relocation: unsupported relocation
#9 377.8 # /usr/bin/ld: unix.a(unix.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `camlUnix__Pmakeblock_3569' which may bind externally can not be used when making a shared object; recompile with -fPIC

@dra27
Copy link
Contributor

dra27 commented Dec 17, 2022

This should be fixable when ocaml/ocaml#11821 is merged (to and to 4.03 and 4.04) and then a glibc-style patch to opam-repository referencing the patch for those compiler packages (which I'll sort out shortly).

@MisterDA
Copy link
Contributor

MisterDA commented Jan 2, 2023

So this has been fixed upstream and the PR can now be closed?

@dra27
Copy link
Contributor

dra27 commented Jan 3, 2023

These should build again with ocaml/opam-repository#22825, yes.

@MisterDA MisterDA closed this Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants