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

Utop is not working with 4.01. #34

Closed
Drup opened this Issue Sep 4, 2013 · 3 comments

Comments

Projects
None yet
3 participants
@Drup
Member

Drup commented Sep 4, 2013

The error message is the following :

Fatal error: unknown C primitive `caml_ba_dim_1'

Probable the same as ocaml-batteries-team/batteries-included#434

@ghost ghost assigned diml Sep 4, 2013

@diml

This comment has been minimized.

Show comment
Hide comment
@diml

diml Sep 4, 2013

Collaborator

Try rebuilding utop and its dependencies, and check you configuration. This is not a utop problem, utop works fine with 4.01. This error is probably that ocamlrun can't find the shared object file (.so, .dll, ...). This is usually due to invalid environment variable settings.

Collaborator

diml commented Sep 4, 2013

Try rebuilding utop and its dependencies, and check you configuration. This is not a utop problem, utop works fine with 4.01. This error is probably that ocamlrun can't find the shared object file (.so, .dll, ...). This is usually due to invalid environment variable settings.

@Drup

This comment has been minimized.

Show comment
Hide comment
@Drup

Drup Sep 4, 2013

Member

This is very strange. I have absolutely no idea how opam ended up in this state since I simply installed utop on an almost fresh switch. A remove/install fixed it (but not a reinstall).

Member

Drup commented Sep 4, 2013

This is very strange. I have absolutely no idea how opam ended up in this state since I simply installed utop on an almost fresh switch. A remove/install fixed it (but not a reinstall).

@Drup Drup closed this Sep 4, 2013

@arj

This comment has been minimized.

Show comment
Hide comment
@arj

arj Jan 27, 2014

I had the same problem and narrowed it down to the following opam-related problem:

  • ~/.opam/opam-init/init.sh is called in my .bashrc (which is fine)
  • ~/.opam/opam-init/variables.sh sets the variable CAML_LD_LIBRARY_PATH
    and here, CAML_LD_LIBRARY_PATH is set to both the currently selected compiler and to the stublibs provided by my ocaml system installation. If I clean this variable up, everything works fine.

arj commented Jan 27, 2014

I had the same problem and narrowed it down to the following opam-related problem:

  • ~/.opam/opam-init/init.sh is called in my .bashrc (which is fine)
  • ~/.opam/opam-init/variables.sh sets the variable CAML_LD_LIBRARY_PATH
    and here, CAML_LD_LIBRARY_PATH is set to both the currently selected compiler and to the stublibs provided by my ocaml system installation. If I clean this variable up, everything works fine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment