Atom Space build issues

48 views
Skip to first unread message

Johannes Castner

unread,
Dec 20, 2018, 11:43:59 AM12/20/18
to opencog
Hi everyone,

I’m trying to rebuild the Atom Space after I had an outdated version and I’m getting the following error now after typing make-j4:

virtual memory exhausted: Cannot allocate memory
opencog/rule-engine/CMakeFiles/ruleengine.dir/build.make:278: recipe for target 'opencog/rule-engine/CMakeFiles/ruleengine.dir/InferenceSCM.cc.o' failed
make[2]: *** [opencog/rule-engine/CMakeFiles/ruleengine.dir/InferenceSCM.cc.o] Error 1
CMakeFiles/Makefile2:1837: recipe for target 'opencog/rule-engine/CMakeFiles/ruleengine.dir/all' failed
make[1]: *** [opencog/rule-engine/CMakeFiles/ruleengine.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Correct GHC version installed.
[ 88%] Built target haskell-atomspace-lib
[ 88%] Linking CXX shared library atomspace.so
[ 90%] Built target atomspace_cython
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
ubuntu@ip-172-31-38-255:~/atomspace/build$

Johannes Castner

unread,
Dec 20, 2018, 11:55:32 AM12/20/18
to opencog
So ~/atomspace/build$ make -j$(nproc)  works now, but the same command fails for opencog:

~/opencog/build$ make -j$(nproc)
[  1%] Built target json_spirit
[  2%] Built target blopex
[  3%] Built target serial_driver
[  7%] Built target server
[  7%] Building CXX object opencog/learning/dimensionalembedding/CMakeFiles/dimensionalembedding.dir/DimEmbedModule.cc.o
/home/ubuntu/opencog/opencog/learning/dimensionalembedding/DimEmbedModule.cc:33:44: fatal error: opencog/atoms/proto/NameServer.h: No such file or directory
compilation terminated.
opencog/learning/dimensionalembedding/CMakeFiles/dimensionalembedding.dir/build.make:62: recipe for target 'opencog/learning/dimensionalembedding/CMakeFiles/dimensionalembedding.dir/DimEmbedModule.cc.o' failed
make[2]: *** [opencog/learning/dimensionalembedding/CMakeFiles/dimensionalembedding.dir/DimEmbedModule.cc.o] Error 1
CMakeFiles/Makefile2:624: recipe for target 'opencog/learning/dimensionalembedding/CMakeFiles/dimensionalembedding.dir/all' failed
make[1]: *** [opencog/learning/dimensionalembedding/CMakeFiles/dimensionalembedding.dir/all] Error 2

Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Vitaly Bogdanov

unread,
Dec 20, 2018, 12:06:25 PM12/20/18
to opencog
Hi Johannes,

There were massive change for atomspace and opencog, could you please check that you have latest repositories versions.

Best regards,
Vitaly

чт, 20 дек. 2018 г. в 19:55, Johannes Castner <jac...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/e3432d2c-9004-447b-8d96-0438f0fc0af2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Johannes Castner

unread,
Dec 20, 2018, 12:34:39 PM12/20/18
to opencog
Hi Vitaly,

Thank you! Indeed there was an issue with when I forked the repo it not grabbing the newest version (some issue with git?) ...now I cloned the newest version and I'm getting this problem when I'm trying to load the pln module:

Backtrace:
          12 (apply-smob/1 #<catch-closure 7f4b51b41b80>)
In ice-9/boot-9.scm:
    705:2 11 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8 10 (_ #(#(#<directory (guile-user) 7f4b515d1140>)))
In unknown file:
           9 (primitive-load "/home/ubuntu/.guile")
In ice-9/eval.scm:
   721:20  8 (primitive-eval (use-modules (opencog pln)))
In ice-9/psyntax.scm:
  1235:36  7 (expand-top-sequence ((use-modules (opencog pln))) _ _ # …)
  1182:24  6 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
   285:10  5 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) …)
In ice-9/boot-9.scm:
  3365:20  4 (process-use-modules _)
   222:17  3 (map1 (((opencog pln))))
  3366:31  2 (_ ((opencog pln)))
   2791:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ …)
In unknown file:
           0 (scm-error misc-error #f "~A ~S" ("no code for modu…" …) …)

ERROR: In procedure scm-error:
no code for module (opencog pln)

Linas Vepstas

unread,
Dec 20, 2018, 12:50:15 PM12/20/18
to opencog
On Thu, Dec 20, 2018 at 10:44 AM Johannes Castner <jac...@gmail.com> wrote:
>
> Hi everyone,
>
> I’m trying to rebuild the Atom Space after I had an outdated version and I’m getting the following error now after typing make-j4:
>
> virtual memory exhausted: Cannot allocate memory

I have a puny laptop with not enough memory, and I get that whenever I
try make -j2. so I have to say make -j1.

(I have another development machine, with lots more RAM. Just not in
the laptop.)

--
cassette tapes - analog TV - film cameras - you

Johannes Castner

unread,
Dec 20, 2018, 12:58:02 PM12/20/18
to opencog
good news: it all works now!!!


Johannes

Nil Geisweiller

unread,
Dec 20, 2018, 1:31:13 PM12/20/18
to ope...@googlegroups.com
Maybe stupid question, have you installed?

Nil
> <javascript:>>:
> it, send an email to opencog+u...@googlegroups.com <javascript:>.
> To post to this group, send email to ope...@googlegroups.com
> <javascript:>.
> <https://groups.google.com/group/opencog>.
> <https://groups.google.com/d/msgid/opencog/e3432d2c-9004-447b-8d96-0438f0fc0af2%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "opencog" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to opencog+u...@googlegroups.com
> <mailto:opencog+u...@googlegroups.com>.
> To post to this group, send email to ope...@googlegroups.com
> <mailto:ope...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/opencog.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/opencog/e9ed82a5-7587-4229-85b0-249eeab82d4c%40googlegroups.com
> <https://groups.google.com/d/msgid/opencog/e9ed82a5-7587-4229-85b0-249eeab82d4c%40googlegroups.com?utm_medium=email&utm_source=footer>.

Johannes Castner

unread,
Dec 20, 2018, 2:33:58 PM12/20/18
to opencog
That’s actually a great question! ...I at some point tried running things before I realized that I didn’t install yet—now I have it all working again. One thing that I’m having a hard time explaining is that when I first forked opencog/opencog for some reason it forked a repo that wasn’t up to date... some issue with git? I figured that out after much wrestling with things, I sent myself a pull request and merged and then it worked. Did that ever happen before to someone else?

Nil Geisweiller

unread,
Dec 20, 2018, 2:42:32 PM12/20/18
to ope...@googlegroups.com
On 12/20/18 9:33 PM, Johannes Castner wrote:
> That’s actually a great question! ...I at some point tried running things before I realized that I didn’t install yet—now I have it all working again. One thing that I’m having a hard time explaining is that when I first forked opencog/opencog for some reason it forked a repo that wasn’t up to date... some issue with git? I figured that out after much wrestling with things, I sent myself a pull request and merged and then it worked. Did that ever happen before to someone else?

The only thing I can think of is that while you forked, changes have
been introduced that made your cogutil, atomspace and opencog repos out
of sync. That sort of changes are occasional but they tend of come in
waves and it looks like you've been caught right in the middle of it.

Nil

Johannes Castner

unread,
Dec 29, 2018, 8:24:57 AM12/29/18
to opencog
Interesting ...so if I merge the changes on one of those repos, I better merge them for all of them at the same time?


Johannes

Linas Vepstas

unread,
Dec 29, 2018, 12:27:30 PM12/29/18
to opencog
You shouldn't need to be "merging changes" -- you should just be doing
pulls to master. If git is asking you to merge, that means that you
must have accidentally checked something into your master branch.
Don't do that! Leave the master alone, so that it can always cleanly
and trivially track upstream, and do all of your development in a
private branch, which will thus be stable, and not subject to
disruption from upstream changes.

--linas
> --
> You received this message because you are subscribed to the Google Groups "opencog" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
> To post to this group, send email to ope...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/a9b5276b-f191-4df5-a9c9-8051170f76d8%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



Reply all
Reply to author
Forward
0 new messages