You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 7516 Reporter:@whitequark Assigned to:@dra27 Status: closed (set by @dra27 on 2017-04-16T08:46:43Z) Resolution: fixed Priority: normal Severity: minor Platform: Linux Version: 4.04.0 Fixed in version: 4.04.1 Category: compiler driver
Bug description
It seems that some symbols are not exported properly from ocamlopt. This bug is actually extremely weird, because on my opam install (as is usual) both ocamlc and ocamlopt are native-code, but it works with ocamlc.
$ file which ocamlc
~/.opam/4.04.0+32bit/bin/ocamlc: symbolic link to ocamlc.opt
$ file which ocamlopt
~/.opam/4.04.0+32bit/bin/ocamlopt: symbolic link to ocamlopt.opt
Steps to reproduce
$ cat >t.ml
let () =
let x = [|0;1;2|] in (* allocate something *)
for i = 0 to 2 do print_int x.(i) done
$ ocamlbuild t.cmxs
$ ocamlopt -plugin _build/t.cmxs
File "none", line 1:
Error: error loading shared library: _build/t.cmxs: undefined symbol: caml_alloc3 while loading argument of -plugin
The text was updated successfully, but these errors were encountered:
Original bug ID: 7516
Reporter: @whitequark
Assigned to: @dra27
Status: closed (set by @dra27 on 2017-04-16T08:46:43Z)
Resolution: fixed
Priority: normal
Severity: minor
Platform: Linux
Version: 4.04.0
Fixed in version: 4.04.1
Category: compiler driver
Bug description
It seems that some symbols are not exported properly from ocamlopt. This bug is actually extremely weird, because on my opam install (as is usual) both ocamlc and ocamlopt are native-code, but it works with ocamlc.
$ file
which ocamlc
~/.opam/4.04.0+32bit/bin/ocamlc: symbolic link to ocamlc.opt
$ file
which ocamlopt
~/.opam/4.04.0+32bit/bin/ocamlopt: symbolic link to ocamlopt.opt
Steps to reproduce
$ cat >t.ml
let () =
let x = [|0;1;2|] in (* allocate something *)
for i = 0 to 2 do print_int x.(i) done
$ ocamlbuild t.cmxs
$ ocamlopt -plugin _build/t.cmxs
File "none", line 1:
Error: error loading shared library: _build/t.cmxs: undefined symbol: caml_alloc3 while loading argument of -plugin
The text was updated successfully, but these errors were encountered: