Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: cannot load shared library dllunix #5

Open
cchampou opened this issue Apr 13, 2019 · 2 comments
Open

Fatal error: cannot load shared library dllunix #5

cchampou opened this issue Apr 13, 2019 · 2 comments

Comments

@cchampou
Copy link

cchampou commented Apr 13, 2019

Just ran into this error while trying to build project https://github.com/bsansouci/reprocessing-example.

Fatal error: cannot load shared library dllunix
Reason: dlopen(/Users/cchampouillon/.opam/default/lib/ocaml/stublibs/dllunix.so, 138): Symbol not found: _caml_ba_compare
  Referenced from: /Users/cchampouillon/.opam/default/lib/ocaml/stublibs/dllunix.so
  Expected in: flat namespace
 in /Users/cchampouillon/.opam/default/lib/ocaml/stublibs/dllunix.so
@poeschko
Copy link

Ran into the same problem (during the ReasonConf Dojo yesterday):

$ yarn run build
yarn run v1.13.0
warning package.json: No license field
$ bsb -make-world
[2/2] Building fake_src/sdl_index.mlast.d
[2/2] Building lib.cma
[4/4] Running build_script
Fatal error: cannot load shared library dllunix
Reason: dlopen(/Users/jpoeschko/.opam/4.07.1/lib/ocaml/stublibs/dllunix.so, 138): Symbol not found: _caml_ba_compare
  Referenced from: /Users/jpoeschko/.opam/4.07.1/lib/ocaml/stublibs/dllunix.so
  Expected in: flat namespace
 in /Users/jpoeschko/.opam/4.07.1/lib/ocaml/stublibs/dllunix.so
ninja: error: rebuilding 'build.ninja': subcommand failed
Failure: /Users/jpoeschko/Projects/reprocessing-example/node_modules/bsb-native/lib/ninja.exe
 Location: /Users/jpoeschko/Projects/reprocessing-example/node_modules/Tsdl/lib/bs/bytecode
error Command failed with exit code 2.

@bsansouci suggested removing some global opam-related setup from my ~/.zshrc, particularly

eval $(opam env)

which did solve the problem.

@cchampou
Copy link
Author

Yep, the trick did finally work for me too !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants