opencog / atomspace

The OpenCog (hyper-)graph database and graph rewriting system
https://wiki.opencog.org/w/AtomSpace
Other
795 stars 225 forks source link

Atomspace build broken for ubuntu with ocaml installed. #3038

Closed gl-yziquel closed 9 months ago

gl-yziquel commented 9 months ago

Building atomspace from source on an ubuntu 22 with ocaml installed via apt is broken.

This issue has been reported here: https://github.com/opencog/ocpkg/issues/173

linas commented 9 months ago

I see this error: I get

atomspace-git/build/opencog/ocaml/storewrappers.cc:10:10: fatal error: caml/memory.h: No such file or directory
   10 | #include <caml/memory.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.

The memory.h file seems to be located at /usr/lib/ocaml/caml/memory.h on my system, which clearly is not in the conventional /usr/include file search path. The correct fix is to plumb the depths of https://github.com/opencog/cogutil/blob/master/cmake/FindOCaml.cmake and tweak it so that it sets up the correct include path.

I don't have the energy to do this; instead, I'm in the process of stubbing out the OCaml build. I'll push that workaround in the next 10-20 minutes.

linas commented 9 months ago

quick-hack work-around in #3039

gl-yziquel commented 9 months ago

Makes sense.

linas commented 9 months ago

I merged #3039, so I'm closing this. (I'm still twerking other, unrelated issues.)