Skip to content

[OCaml] build on freebsd x64 fails with "recompile with -fPIC" #422

@fogti

Description

@fogti

https://gist.github.com/fogti/be2b57e38a2d0180b4bec9936bfa60f4

[ 60%] Linking C shared library libhacl.so
ld: error: relocation R_X86_64_PC32 cannot be used against symbol 'Hacl_Impl_Chacha20_Vec_chacha20_constants'; recompile with -fPIC
>>> defined in CMakeFiles/hacl.dir/src/Hacl_Chacha20.c.o
>>> referenced by Hacl_Chacha20_Vec128.c
>>>               CMakeFiles/hacl_vec128.dir/src/Hacl_Chacha20_Vec128.c.o:(Hacl_Chacha20_Vec128_chacha20_encrypt_128)
[...]
cc: error: linker command failed with exit code 1 (use -v to see invocation)

uname -a: FreeBSD burton 13.2-RELEASE-p1 [...] GENERIC amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions