FS#54741 - [ocaml] add -fPIC to configure

Attached to Project: Arch Linux
Opened by Gustavo Alvarez (sl1pkn07) - Saturday, 08 July 2017, 22:28 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 09 July 2017, 03:05 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

First all, i know is not allowed open bugreport for outdated package, but in this case is for add option in the next release


some programs with ocaml needed for build, says need recompile ocaml with -fPIC

please add -fPIC to configure

if not:

/usr/bin/ocamlc.opt -w -3 -linkall -o ocamlpp.byte \
-custom bigarray.cma unix.cma str.cma nums.cma -ccopt "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -D_FORTIFY_SOURCE=2" -ccopt "-pthread" \
\
\
\
\
\
\

-cclib "-lz -lbz2 " \
-I build tools/ocamlpp.cmo
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(misc.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(stacks.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(startup_aux.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(freelist.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(major_gc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(minor_gc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(memory.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(alloc.o): relocation R_X86_64_32S against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(roots.o): relocation R_X86_64_32 against symbol `caml_oldify_one' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(globroots.o): relocation R_X86_64_32 against symbol `caml_global_roots' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(fail.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(signals.o): relocation R_X86_64_32S against undefined symbol `caml_pending_signals' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(signals_byt.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(printexc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(backtrace_prim.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(backtrace.o): relocation R_X86_64_32 against symbol `caml_backtrace_last_exn' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(compare.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(ints.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(floats.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(str.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(array.o): relocation R_X86_64_32 against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(io.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(extern.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(intern.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(hash.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(sys.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(meta.o): relocation R_X86_64_32 against undefined symbol `caml_code_fragments_table' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(parsing.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(gc_ctrl.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(terminfo.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(obj.o): relocation R_X86_64_32S against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(lexing.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(callback.o): relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(debugger.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(weak.o): relocation R_X86_64_32 against symbol `caml_ephe_ref_table' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(compact.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(finalise.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(custom.o): relocation R_X86_64_32 against symbol `caml_custom_table' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(dynlink.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(spacetime.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(unix.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(interp.o): relocation R_X86_64_32 against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(fix_code.o): relocation R_X86_64_32 against undefined symbol `caml_code_fragments_table' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(startup.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile con -fPIC

for example


greetings
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 09 July 2017, 03:05 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#42748 

Loading...