{"action":"created","issue":{"url":"https://api.github.com/repos/janestreet/base/issues/5","repository_url":"https://api.github.com/repos/janestreet/base","labels_url":"https://api.github.com/repos/janestreet/base/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/janestreet/base/issues/5/comments","events_url":"https://api.github.com/repos/janestreet/base/issues/5/events","html_url":"https://github.com/janestreet/base/issues/5","id":193819521,"number":5,"title":"Compilation failure (cannot find dynamic lib)","user":{"login":"pveber","id":341342,"avatar_url":"https://avatars.githubusercontent.com/u/341342?v=3","gravatar_id":"","url":"https://api.github.com/users/pveber","html_url":"https://github.com/pveber","followers_url":"https://api.github.com/users/pveber/followers","following_url":"https://api.github.com/users/pveber/following{/other_user}","gists_url":"https://api.github.com/users/pveber/gists{/gist_id}","starred_url":"https://api.github.com/users/pveber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pveber/subscriptions","organizations_url":"https://api.github.com/users/pveber/orgs","repos_url":"https://api.github.com/users/pveber/repos","events_url":"https://api.github.com/users/pveber/events{/privacy}","received_events_url":"https://api.github.com/users/pveber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-06T16:31:50Z","updated_at":"2016-12-08T17:28:57Z","closed_at":null,"body":"I get a linking error when trying to compile a program using `base`. Here is a minimal example to reproduce the problem:\r\n```\r\nopam switch test-base -A 4.03.0\r\neval `opam config env`\r\nopam install -y ocamlfind\r\nopam install -y base\r\necho 'let () = print_endline (Base__String.concat [ \"j\" ; \"l\"]);;' > rien.ml\r\nocamlfind ocamlc -verbose -package base -linkpkg -o rien rien.ml\r\n```\r\n\r\nThe last command returns the following error:\r\n```\r\nEffective set of compiler predicates: pkg_base.caml,pkg_base.shadow_stdlib,pkg_base,autolink,byte\r\n+ ocamlc.opt -verbose -o rien -I /home/pveber/.opam/test-base/lib/base /home/pveber/.opam/test-base/lib/base/caml.cma /home/pveber/.opam/test-base/lib/base/shadow_stdlib.cma /home/pveber/.opam/test-base/lib/base/base.cma rien.ml\r\nFile \"rien.ml\", line 1:\r\nError: Error on dynamically loaded library: base_stubs.so: base_stubs.so: cannot open shared object file: No such file or directory\r\nocamlc.opt returned with exit code 2\r\n```\r\nHowever, everything seems to be in its place:\r\n```\r\n$echo $CAML_LD_LIBRARY_PATH \r\n/home/pveber/.opam/test-base/lib/stublibs\r\n$ls $CAML_LD_LIBRARY_PATH/dllbase*\r\n/home/pveber/.opam/test-base/lib/stublibs/dllbase_stubs.so\r\n```\r\nNot really sure what I'm doing wrong here..."},"comment":{"url":"https://api.github.com/repos/janestreet/base/issues/comments/265801030","html_url":"https://github.com/janestreet/base/issues/5#issuecomment-265801030","issue_url":"https://api.github.com/repos/janestreet/base/issues/5","id":265801030,"user":{"login":"Fourchaux","id":4992512,"avatar_url":"https://avatars.githubusercontent.com/u/4992512?v=3","gravatar_id":"","url":"https://api.github.com/users/Fourchaux","html_url":"https://github.com/Fourchaux","followers_url":"https://api.github.com/users/Fourchaux/followers","following_url":"https://api.github.com/users/Fourchaux/following{/other_user}","gists_url":"https://api.github.com/users/Fourchaux/gists{/gist_id}","starred_url":"https://api.github.com/users/Fourchaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fourchaux/subscriptions","organizations_url":"https://api.github.com/users/Fourchaux/orgs","repos_url":"https://api.github.com/users/Fourchaux/repos","events_url":"https://api.github.com/users/Fourchaux/events{/privacy}","received_events_url":"https://api.github.com/users/Fourchaux/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T17:28:57Z","updated_at":"2016-12-08T17:28:57Z","body":"With Base (0.1.alpha1) + OCaml (4.04.0+flambda) + Utop (1.19.3)\r\n\r\nI've got : \r\n\r\nutop # #require \"base\";;\r\nCannot load required shared library base_stubs.                                   \r\nReason: base_stubs.so: base_stubs.so: cannot open shared object file: No such file or directory. "}}
{"actor":{"display_login":"Fourchaux"}}