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

afl does not compile on arm64 with OCaml < 4.06 #55

Closed
wants to merge 1 commit into from

Conversation

kit-ty-kate
Copy link
Contributor

#9 271.7 # ../../boot/ocamlrun ../../ocamlopt -nostdlib -I ../../stdlib -shared -o unix.cmxs -I . unix.cmxa
#9 271.7 # /usr/bin/ld: unix.a(unix.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `camlUnix' which may bind externally can not be used when making a shared object; recompile with -fPIC
#9 271.7 # unix.a(unix.o): in function `camlUnix__fun_3109':
#9 271.7 # /home/opam/.opam/4.05/.opam-switch/build/ocaml-variants.4.05.0+afl/otherlibs/unix/unix.ml:96:(.text+0x26c0): dangerous relocation: unsupported relocation
#9 271.7 # /usr/bin/ld: unix.a(unix.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `camlUnix' which may bind externally can not be used when making a shared object; recompile with -fPIC
#9 271.7 # unix.a(unix.o): in function `camlUnix__handle_unix_error_1303':
#9 271.7 # /home/opam/.opam/4.05/.opam-switch/build/ocaml-variants.4.05.0+afl/otherlibs/unix/unix.ml:171:(.text+0x28c0): dangerous relocation: unsupported relocation
#9 271.7 # /usr/bin/ld: unix.a(unix.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `camlUnix__fun_3162' 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

Ah, this actually seems to be the same underlying issue as affecting #54, so the one fix should deal with them both!

@dra27
Copy link
Contributor

dra27 commented Jan 3, 2023

The AFL variant should build again with ocaml/opam-repository#22825.

@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