jaredly / jaredly/pack.re

I tried to build it and got errors

Open
#1 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
OCaml
Stars
73
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I ran ```yarn run build```

and got:

```
R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(floats.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(str.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(array.o): relocation R_X86_64_32 against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(io.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(extern.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(intern.o): relocation R_X86_64_32S against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(hash.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(sys.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(parsing.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(gc_ctrl.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(obj.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(printexc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(callback.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(weak.o): relocation R_X86_64_32 against symbol `caml_weak_ref_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(compact.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(finalise.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(custom.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(unix.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /home/mrkaspa/code/ml/minimist.re/node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a(backtrace.o): relocation R_X86_64_32 against symbol `caml_backtrace_last_exn' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with `yarn run build` and inspect the linker errors involving `node_modules/bs-platform/vendor/ocaml/lib/ocaml/libasmrun.a`. Trace which build entry point invokes this shared-object link and verify the relevant compilation settings. Done means the build completes without the reported relocation and final-link errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.