Skip to content

OCaml integration broken. #173

Open
Open
@gl-yziquel

Description

@gl-yziquel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions