Skip to content

Trouble building bsc on Linux #1237

@glennsl

Description

@glennsl

Get the following error:

ocamlmklib stubs/ext_basic_hash_stubs.o -o bs_hash
/usr/bin/ld: stubs/ext_basic_hash_stubs.o: relocation R_X86_64_PC32 against undefined symbol `caml_hash_mix_string' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value

On Arch Linux, with ocaml 4.02.3+buckle-master.

Steps to reproduce:

git clone https://github.com/bloomberg/bucklescript.git --recursive
cs bucklescript/jscomp
make world
make bin/bsc.exe

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions