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

OCaml integration broken. #173

Open
gl-yziquel opened this issue Sep 5, 2023 · 0 comments
Open

OCaml integration broken. #173

gl-yziquel opened this issue Sep 5, 2023 · 0 comments

Comments

@gl-yziquel
Copy link

gl-yziquel commented Sep 5, 2023

As of today, there is an incompatibility between OCaml and ocpkg -rdpcav -l default.

In consequence, any ubuntu 22 system with ocaml installed from apt will fail to cooperate with ocpkg -rdpcav -l default. A workaround I use is to perform the invocation in an lxc container, as follows:

lxd init
lxc launch images:ubuntu/jammy/default opencog --vm -c limits.memory=4GiB
lxc exec opencog bash
passwd ubuntu
[enter password]
[Ctrl-D]
lxc console opencog
[enter username ubuntu and password]
apt install git
git clone https://github.com/opencog/ocpkg.git
cd ocpkg
./ocpkg -rdpcav -l default

This should unfold and build fine. But as ocaml is not installed, it is not detected, and the problem is bypassed. When ocaml is already installed as an ubuntu package, we get the following error:

[ 55%] Building CXX object opencog/ocaml/CMakeFiles/camlatoms.dir/CamlWrap.cc.o
/tmp/atomspace-master/opencog/ocaml/CamlWrap.cc:25:10: fatal error: caml/alloc.h: No such file or directory
   25 | #include <caml/alloc.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [opencog/ocaml/CMakeFiles/camlatoms.dir/build.make:92: opencog/ocaml/CMakeFiles/camlatoms.dir/CamlWrap.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4089: opencog/ocaml/CMakeFiles/camlatoms.dir/all] Error 2
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

1 participant