issue with v2.1 installing on amazon ec2

229 views
Skip to first unread message

Baoqiang Cao

unread,
Nov 30, 2012, 1:01:29 PM11/30/12
to graph...@googlegroups.com
Hi

I'm trying to install v2.1 on amazon ec2 server, and after
successfully ran ./configure, I did, cd
release/toolkits/topic_modeling and then sudo make -j2, and the below
is what on my screen, any help please?

[ 2%] [ 15%] Built target libjson
Performing install step for 'libtcmalloc'
[ 17%] Performing build step for 'libbz2'
make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent
make rule.
mkdir: cannot create directory
`/home/bcao/graphlabapi/deps/local/lib': File exists
make[3]: *** [install] Error 1
make[2]: *** [../deps/libbz2/src/libbz2-stamp/libbz2-build] Error 2
make[1]: *** [CMakeFiles/libbz2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/install -c
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/pprof'
'/home/bcao/graphlabapi/deps/local/bin/pprof'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/AUTHORS'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/AUTHORS'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/COPYING'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/COPYING'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/google/heap-checker.h'
'/home/bcao/graphlabapi/deps/local/include/google/heap-checker.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/ChangeLog'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/ChangeLog'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/google/heap-profiler.h'
'/home/bcao/graphlabapi/deps/local/include/google/heap-profiler.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/INSTALL'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/INSTALL'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/google/malloc_extension.h'
'/home/bcao/graphlabapi/deps/local/include/google/malloc_extension.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/NEWS'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/NEWS'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/google/malloc_extension_c.h'
'/home/bcao/graphlabapi/deps/local/include/google/malloc_extension_c.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/README'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/README'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/google/malloc_hook.h'
'/home/bcao/graphlabapi/deps/local/include/google/malloc_hook.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/README_windows.txt'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/README_windows.txt'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/google/malloc_hook_c.h'
'/home/bcao/graphlabapi/deps/local/include/google/malloc_hook_c.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/TODO'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/TODO'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/google/profiler.h'
'/home/bcao/graphlabapi/deps/local/include/google/profiler.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/index.html'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/index.html'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/google/stacktrace.h'
'/home/bcao/graphlabapi/deps/local/include/google/stacktrace.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/designstyle.css'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/designstyle.css'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/google/tcmalloc.h'
'/home/bcao/graphlabapi/deps/local/include/google/tcmalloc.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/pprof_remote_servers.html'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/pprof_remote_servers.html'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/windows/google/tcmalloc.h'
'/home/bcao/graphlabapi/deps/local/include/google/tcmalloc.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc.html'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc.html'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/overview.gif'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/overview.gif'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/pageheap.gif'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/pageheap.gif'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/pprof.1'
'/home/bcao/graphlabapi/deps/local/share/man/man1/pprof.1'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/spanmap.gif'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/spanmap.gif'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/threadheap.gif'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/threadheap.gif'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/t-test1.times.txt'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/t-test1.times.txt'
/usr/bin/install -c -m 644 'src/gperftools/tcmalloc.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/tcmalloc.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.1024.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.1024.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.128.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.128.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/stacktrace.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/stacktrace.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.131072.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.131072.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/malloc_hook.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/malloc_hook.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.16384.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.16384.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/malloc_hook_c.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/malloc_hook_c.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.2048.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.2048.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/malloc_extension.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/malloc_extension.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.256.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.256.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/malloc_extension_c.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/malloc_extension_c.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.32768.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.32768.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/stacktrace.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/stacktrace.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.4096.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.4096.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/malloc_hook.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/malloc_hook.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.512.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.512.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/malloc_hook_c.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/malloc_hook_c.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.64.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.64.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/malloc_extension.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/malloc_extension.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.65536.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.65536.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/malloc_extension_c.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/malloc_extension_c.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspercpusec.vs.threads.8192.bytes.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspercpusec.vs.threads.8192.bytes.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/stacktrace.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/stacktrace.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspersec.vs.size.1.threads.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspersec.vs.size.1.threads.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/heap-profiler.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/heap-profiler.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspersec.vs.size.12.threads.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspersec.vs.size.12.threads.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/heap-checker.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/heap-checker.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspersec.vs.size.16.threads.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspersec.vs.size.16.threads.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/profiler.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/profiler.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspersec.vs.size.2.threads.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspersec.vs.size.2.threads.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/src/gperftools/stacktrace.h'
'/home/bcao/graphlabapi/deps/local/include/gperftools/stacktrace.h'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspersec.vs.size.20.threads.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspersec.vs.size.20.threads.png'
/bin/mkdir: cannot create directory
`/home/bcao/graphlabapi/deps/local/lib': Not a directory
make[4]: *** [install-pkgconfigDATA] Error 1
make[4]: *** Waiting for unfinished jobs....
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspersec.vs.size.3.threads.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspersec.vs.size.3.threads.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspersec.vs.size.4.threads.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspersec.vs.size.4.threads.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspersec.vs.size.5.threads.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspersec.vs.size.5.threads.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/tcmalloc-opspersec.vs.size.8.threads.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/tcmalloc-opspersec.vs.size.8.threads.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/overview.dot'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/overview.dot'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/pageheap.dot'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/pageheap.dot'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/spanmap.dot'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/spanmap.dot'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/threadheap.dot'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/threadheap.dot'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/heapprofile.html'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/heapprofile.html'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/heap-example1.png'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/heap-example1.png'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/heap_checker.html'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/heap_checker.html'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/cpuprofile.html'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/cpuprofile.html'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/cpuprofile-fileformat.html'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/cpuprofile-fileformat.html'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/pprof-test-big.gif'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/pprof-test-big.gif'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/pprof-test.gif'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/pprof-test.gif'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/pprof-vsnprintf-big.gif'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/pprof-vsnprintf-big.gif'
/usr/bin/install -c -m 644
'/home/bcao/graphlabapi/deps/tcmalloc/src/libtcmalloc/doc/pprof-vsnprintf.gif'
'/home/bcao/graphlabapi/deps/local/share/doc/gperftools-2.0/pprof-vsnprintf.gif'
make[3]: *** [install-am] Error 2
make[2]: *** [../deps/tcmalloc/src/libtcmalloc-stamp/libtcmalloc-install]
Error 2
make[1]: *** [CMakeFiles/libtcmalloc.dir/all] Error 2
make: *** [all] Error 2

Joseph Gonzalez

unread,
Nov 30, 2012, 1:06:18 PM11/30/12
to graph...@googlegroups.com
Is it possible that you ran out of local disk?  It looked liked it failed while copying documentation for tcmalloc.  GraphLab and its dependencies can take a few GB.  If this is the case you might build GraphLab on an EBS or ephemeral volume.

Joey

Baoqiang Cao

unread,
Dec 3, 2012, 10:40:53 AM12/3/12
to graph...@googlegroups.com
I think I have enough disk. "df -h" gives me:
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 3.8G 4.1G 48% /
tmpfs 30G 0 30G 0% /dev/shm
/dev/xvdf 99G 70G 24G 75% /data/0

In the meantime, I tried to install fresh and this time, I got
different error when I ran "cd release; sudo make -j2", the error is
(after many many lines of outputs--no error messages), the last couple
of lines are:

[ 37%] Completed 'opencv'
[ 37%] Built target opencv
make: *** [all] Error 2

Any help, please?

Danny Bickson

unread,
Dec 3, 2012, 11:28:59 AM12/3/12
to graph...@googlegroups.com
Hi!
Which application do you intend to use? For example if you want to use the collaborative filtering library, 
you should
cd release/toolkits/collaborative_filtering/
and compile there. 
It will save you a lot of time and some of the potential errors - there are a lot of libraries with different dependencies so it is advised to compile the minimal subset you need.

Best,

Dr. Danny Bickson
Project Scientist, Machine Learning Dept.
Carnegie Mellon University

Danny Bickson

unread,
Dec 3, 2012, 11:29:27 AM12/3/12
to graph...@googlegroups.com
p.s.
Also from the fraction of the output you sent us there is no way to identify the error - please send us the full output.

Dr. Danny Bickson
Project Scientist, Machine Learning Dept.
Carnegie Mellon University



Baoqiang Cao

unread,
Dec 3, 2012, 12:37:39 PM12/3/12
to graph...@googlegroups.com
Thanks Danny!

I tried under both clustering and topic_modeling, here are the new outputs

When I tried "make" under release/toolkits/clustering

sudo make
[ 9%] Built target libevent
[ 19%] Built target libtcmalloc
[ 30%] Built target libjson
[ 42%] Built target libbz2
[ 52%] Built target boost
[ 54%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/scheduler/scheduler_list.cpp.o
In file included from /opt/graphlabapi/deps/local/include/libjson/libjson.h:4:0,
from /opt/graphlabapi/src/graphlab/graph/json_parser.hpp:35,
from
/opt/graphlabapi/src/graphlab/graph/distributed_graph.hpp:88,
from
/opt/graphlabapi/src/graphlab/aggregation/distributed_aggregator.hpp:37,
from /opt/graphlabapi/src/graphlab/engine/iengine.hpp:44,
from
/opt/graphlabapi/src/graphlab/scheduler/scheduler_list.cpp:26:
/opt/graphlabapi/deps/local/include/libjson/Source/JSONDefs.h:160:6:
warning: #warning , Release build of libjson, but NDEBUG is not on
[-Wcpp]
In file included from
/opt/graphlabapi/src/graphlab/graph/distributed_graph.hpp:88:0,
from
/opt/graphlabapi/src/graphlab/aggregation/distributed_aggregator.hpp:37,
from /opt/graphlabapi/src/graphlab/engine/iengine.hpp:44,
from
/opt/graphlabapi/src/graphlab/scheduler/scheduler_list.cpp:26:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:406:71: error:
‘JSONNode’ does not name a type
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:406:81: error: ISO
C++ forbids declaration of ‘n’ with no type [-fpermissive]
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp: In static member
function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_graph_structure_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&)’:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:231:5: error:
‘JSONNode’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:231:14: error:
expected ‘;’ before ‘n’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:232:5: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:232:30: error:
expected ‘;’ before ‘i’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:235:11: error: ‘i’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:235:16: error: ‘n’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:243:18: error:
expected ‘;’ before ‘csr’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:244:9: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:244:34: error:
expected ‘;’ before ‘j’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:245:16: error: ‘j’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:245:21: error:
‘csr’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:259:18: error:
expected ‘;’ before ‘csc’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:260:9: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:260:34: error:
expected ‘;’ before ‘j’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:262:16: error: ‘j’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:262:21: error:
‘csc’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp: In static member
function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vid2lvid_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&)’:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:296:5: error:
‘JSONNode’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:296:14: error:
expected ‘;’ before ‘n’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:297:5: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:297:30: error:
expected ‘;’ before ‘i’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:299:11: error: ‘i’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:299:16: error: ‘n’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:301:9: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:301:34: error:
expected ‘;’ before ‘j’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:304:15: error: ‘j’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp: In static member
function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_edatalist_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&,
graphlab::json_parser<VertexData, EdgeData>::edge_parser_type)’:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:320:5: error:
‘JSONNode’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:320:14: error:
expected ‘;’ before ‘n’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:321:5: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:321:30: error:
expected ‘;’ before ‘i’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:324:11: error: ‘i’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:324:16: error: ‘n’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:327:18: error:
expected ‘;’ before ‘edatanode’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:328:9: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:328:34: error:
expected ‘;’ before ‘j’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:333:16: error: ‘j’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:333:21: error:
‘edatanode’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp: In static member
function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vrecord_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&,
graphlab::json_parser<VertexData, EdgeData>::vertex_parser_type)’:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:355:5: error:
‘JSONNode’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:355:14: error:
expected ‘;’ before ‘n’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:356:5: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:356:30: error:
expected ‘;’ before ‘i’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:361:12: error: ‘i’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:361:17: error: ‘n’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:363:9: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:363:34: error:
expected ‘;’ before ‘j’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:364:16: error: ‘j’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp: In static member
function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vid_array(std::vector<typename
graphlab::distributed_graph<VertexData, EdgeData>::vertex_id_type>&,
const int&)’:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:407:11: error:
request for member ‘type’ in ‘n’, which is of non-class type ‘const
int’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:409:5: error:
‘JSONNode’ has not been declared
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:409:30: error:
expected ‘;’ before ‘i’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:410:12: error: ‘i’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:410:19: error:
request for member ‘end’ in ‘n’, which is of non-class type ‘const
int’
make[2]: *** [src/graphlab/CMakeFiles/graphlab.dir/scheduler/scheduler_list.cpp.o]
Error 1
make[1]: *** [src/graphlab/CMakeFiles/graphlab.dir/all] Error 2
make: *** [all] Error 2


When tried under release/toolkits/topic_modeling:

sudo make
[ 10%] Built target libevent
[ 20%] Built target libtcmalloc
[ 32%] Built target libjson
[ 45%] Built target libbz2
[ 55%] Built target boost
[ 57%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/scheduler/scheduler_list.cpp.o
In file included from /opt/graphlabapi/deps/local/include/libjson/libjson.h:4:0,
from /opt/graphlabapi/src/graphlab/graph/json_parser.hpp:35,
from
/opt/graphlabapi/src/graphlab/graph/distributed_graph.hpp:88,
from
/opt/graphlabapi/src/graphlab/aggregation/distributed_aggregator.hpp:37,
from /opt/graphlabapi/src/graphlab/engine/iengine.hpp:44,
from
/opt/graphlabapi/src/graphlab/scheduler/scheduler_list.cpp:26:
/opt/graphlabapi/deps/local/include/libjson/Source/JSONDefs.h:160:6:
warning: #warning , Release build of libjson, but NDEBUG is not on
[-Wcpp]
In file included from
/opt/graphlabapi/src/graphlab/graph/distributed_graph.hpp:88:0,
from
/opt/graphlabapi/src/graphlab/aggregation/distributed_aggregator.hpp:37,
from /opt/graphlabapi/src/graphlab/engine/iengine.hpp:44,
from
/opt/graphlabapi/src/graphlab/scheduler/scheduler_list.cpp:26:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:406:71: error:
‘JSONNode’ does not name a type
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:406:81: error: ISO
C++ forbids declaration of ‘n’ with no type [-fpermissive]
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp: In static member
function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_graph_structure_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&)’:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:231:5: error:
‘JSONNode’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:231:14: error:
expected ‘;’ before ‘n’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:232:5: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:232:30: error:
expected ‘;’ before ‘i’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:235:11: error: ‘i’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:235:16: error: ‘n’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:243:18: error:
expected ‘;’ before ‘csr’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:244:9: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:244:34: error:
expected ‘;’ before ‘j’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:245:16: error: ‘j’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:245:21: error:
‘csr’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:259:18: error:
expected ‘;’ before ‘csc’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:260:9: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:260:34: error:
expected ‘;’ before ‘j’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:262:16: error: ‘j’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:262:21: error:
‘csc’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp: In static member
function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vid2lvid_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&)’:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:296:5: error:
‘JSONNode’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:296:14: error:
expected ‘;’ before ‘n’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:297:5: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:297:30: error:
expected ‘;’ before ‘i’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:299:11: error: ‘i’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:299:16: error: ‘n’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:301:9: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:301:34: error:
expected ‘;’ before ‘j’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:304:15: error: ‘j’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp: In static member
function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_edatalist_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&,
graphlab::json_parser<VertexData, EdgeData>::edge_parser_type)’:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:320:5: error:
‘JSONNode’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:320:14: error:
expected ‘;’ before ‘n’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:321:5: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:321:30: error:
expected ‘;’ before ‘i’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:324:11: error: ‘i’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:324:16: error: ‘n’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:327:18: error:
expected ‘;’ before ‘edatanode’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:328:9: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:328:34: error:
expected ‘;’ before ‘j’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:333:16: error: ‘j’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:333:21: error:
‘edatanode’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp: In static member
function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vrecord_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&,
graphlab::json_parser<VertexData, EdgeData>::vertex_parser_type)’:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:355:5: error:
‘JSONNode’ was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:355:14: error:
expected ‘;’ before ‘n’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:356:5: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:356:30: error:
expected ‘;’ before ‘i’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:361:12: error: ‘i’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:361:17: error: ‘n’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:363:9: error:
‘JSONNode’ is not a class or namespace
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:363:34: error:
expected ‘;’ before ‘j’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:364:16: error: ‘j’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp: In static member
function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vid_array(std::vector<typename
graphlab::distributed_graph<VertexData, EdgeData>::vertex_id_type>&,
const int&)’:
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:407:11: error:
request for member ‘type’ in ‘n’, which is of non-class type ‘const
int’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:409:5: error:
‘JSONNode’ has not been declared
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:409:30: error:
expected ‘;’ before ‘i’
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:410:12: error: ‘i’
was not declared in this scope
/opt/graphlabapi/src/graphlab/graph/json_parser.hpp:410:19: error:
request for member ‘end’ in ‘n’, which is of non-class type ‘const
int’
make[2]: *** [src/graphlab/CMakeFiles/graphlab.dir/scheduler/scheduler_list.cpp.o]
Error 1
make[1]: *** [src/graphlab/CMakeFiles/graphlab.dir/all] Error 2
make: *** [all] Error 2

Thanks!
Baoqiang

Yucheng Low

unread,
Dec 3, 2012, 4:18:19 PM12/3/12
to graph...@googlegroups.com
Hi,

There are a few things.
1: Can you delete your entire graphlabapi directory, and do a clean pull from mercurial.
I just fixed an issue with the libjson build.

2: You said you did "sudo make -j2". Don't do that. Just do "make -j2" without sudo.
That messes up the directory permissions.

Yucheng

Baoqiang Cao

unread,
Dec 4, 2012, 12:58:03 PM12/4/12
to graph...@googlegroups.com
Thanks a lot. Here is our op expert got after followed your instruction:

make -j32
[ 4%] [ 9%] [ 24%] [ 21%] [ 24%] [ 27%] Built target eigen
Built target libbz2
Built target libevent
Built target libjson
Built target libtcmalloc
Built target opencv
[ 31%] Built target boost
[ 32%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/scheduler/scheduler_list.cpp.o
In file included from
/opt/graphlabapi.v2/graphlabapi/deps/local/include/libjson/libjson.h:4:0,
from
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:35,
from
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/distributed_graph.hpp:88,
from
/opt/graphlabapi.v2/graphlabapi/src/graphlab/aggregation/distributed_aggregator.hpp:37,
from
/opt/graphlabapi.v2/graphlabapi/src/graphlab/engine/iengine.hpp:44,
from
/opt/graphlabapi.v2/graphlabapi/src/graphlab/scheduler/scheduler_list.cpp:26:
/opt/graphlabapi.v2/graphlabapi/deps/local/include/libjson/Source/JSONDefs.h:160:6:
warning: #warning , Release build of libjson, but NDEBUG is not on
[-Wcpp]
In file included from
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/distributed_graph.hpp:88:0,
from
/opt/graphlabapi.v2/graphlabapi/src/graphlab/aggregation/distributed_aggregator.hpp:37,
from
/opt/graphlabapi.v2/graphlabapi/src/graphlab/engine/iengine.hpp:44,
from
/opt/graphlabapi.v2/graphlabapi/src/graphlab/scheduler/scheduler_list.cpp:26:
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:406:71:
error: ‘JSONNode’ does not name a type
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:406:81:
error: ISO C++ forbids declaration of ‘n’ with no type [-fpermissive]
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp: In
static member function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_graph_structure_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&)’:
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:231:5:
error: ‘JSONNode’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:231:14:
error: expected ‘;’ before ‘n’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:232:5:
error: ‘JSONNode’ is not a class or namespace
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:232:30:
error: expected ‘;’ before ‘i’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:235:11:
error: ‘i’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:235:16:
error: ‘n’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:243:18:
error: expected ‘;’ before ‘csr’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:244:9:
error: ‘JSONNode’ is not a class or namespace
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:244:34:
error: expected ‘;’ before ‘j’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:245:16:
error: ‘j’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:245:21:
error: ‘csr’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:259:18:
error: expected ‘;’ before ‘csc’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:260:9:
error: ‘JSONNode’ is not a class or namespace
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:260:34:
error: expected ‘;’ before ‘j’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:262:16:
error: ‘j’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:262:21:
error: ‘csc’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp: In
static member function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vid2lvid_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&)’:
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:296:5:
error: ‘JSONNode’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:296:14:
error: expected ‘;’ before ‘n’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:297:5:
error: ‘JSONNode’ is not a class or namespace
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:297:30:
error: expected ‘;’ before ‘i’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:299:11:
error: ‘i’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:299:16:
error: ‘n’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:301:9:
error: ‘JSONNode’ is not a class or namespace
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:301:34:
error: expected ‘;’ before ‘j’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:304:15:
error: ‘j’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp: In
static member function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_edatalist_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&,
graphlab::json_parser<VertexData, EdgeData>::edge_parser_type)’:
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:320:5:
error: ‘JSONNode’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:320:14:
error: expected ‘;’ before ‘n’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:321:5:
error: ‘JSONNode’ is not a class or namespace
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:321:30:
error: expected ‘;’ before ‘i’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:324:11:
error: ‘i’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:324:16:
error: ‘n’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:327:18:
error: expected ‘;’ before ‘edatanode’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:328:9:
error: ‘JSONNode’ is not a class or namespace
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:328:34:
error: expected ‘;’ before ‘j’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:333:16:
error: ‘j’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:333:21:
error: ‘edatanode’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp: In
static member function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vrecord_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&,
graphlab::json_parser<VertexData, EdgeData>::vertex_parser_type)’:
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:355:5:
error: ‘JSONNode’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:355:14:
error: expected ‘;’ before ‘n’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:356:5:
error: ‘JSONNode’ is not a class or namespace
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:356:30:
error: expected ‘;’ before ‘i’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:361:12:
error: ‘i’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:361:17:
error: ‘n’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:363:9:
error: ‘JSONNode’ is not a class or namespace
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:363:34:
error: expected ‘;’ before ‘j’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:364:16:
error: ‘j’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp: In
static member function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vid_array(std::vector<typename
graphlab::distributed_graph<VertexData, EdgeData>::vertex_id_type>&,
const int&)’:
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:407:11:
error: request for member ‘type’ in ‘n’, which is of non-class type
‘const int’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:409:5:
error: ‘JSONNode’ has not been declared
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:409:30:
error: expected ‘;’ before ‘i’
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:410:12:
error: ‘i’ was not declared in this scope
/opt/graphlabapi.v2/graphlabapi/src/graphlab/graph/json_parser.hpp:410:19:
error: request for member ‘end’ in ‘n’, which is of non-class type
‘const int’
make[2]: *** [src/graphlab/CMakeFiles/graphlab.dir/scheduler/scheduler_list.cpp.o]
Error 1
make[1]: *** [src/graphlab/CMakeFiles/graphlab.dir/all] Error 2
make: *** [all] Error 2



Yucheng Low

unread,
Dec 4, 2012, 8:20:42 PM12/4/12
to graph...@googlegroups.com
Hi,

Hmm... This is extremely odd.
I need information. Can you provide me with the following.
  • The OS and OS version you are using.
  • The output of uname -a
  • The hardware you are running on.
  • The output of g++ -v and clang++ -v

Also, it is very hard to see from the output. But can you make sure to do a clean rebuild of the system. (delete everything, and build again), and provide us with the exact sequence of commands you ran.

Yucheng

Baoqiang Cao

unread,
Dec 4, 2012, 9:11:35 PM12/4/12
to graph...@googlegroups.com
Please help:

uname -a
Linux ip-10-148-162-45 3.2.30-49.59.amzn1.x86_64 #1 SMP Wed Oct 3
19:54:33 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-amazon-linux/4.6.2/lto-wrapper
Target: x86_64-amazon-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap
--enable-shared --enable-threads=posix --enable-checking=release
--with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id
--enable-languages=c,c++,objc,obj-c++,,fortran,ada,go,lto
--enable-plugin --disable-libgcj --with-tune=generic
--with-arch_32=i686 --build=x86_64-amazon-linux
Thread model: posix
gcc version 4.6.2 20111027 (Red Hat 4.6.2-2) (GCC)

clang++ -v
-bash: clang++: command not found

cat /etc/system-release
Amazon Linux AMI release 2012.09


Below is my fresh install at a new directory:


hg clone https://code.google.com/p/graphlabapi/

./configure ; got errors so changed to
sudo ./configure

It was successful.

Then:

cd release/toolkits/topic_modeling/
make -j2

Output:
Scanning dependencies of target libtcmalloc
Scanning dependencies of target libjson
CMake Error: Cannot open file for write:
/opt/graphlabapi/release/CMakeFiles/libtcmalloc.dir/depend.make.tmp
CMake Error: : System Error: Permission denied
CMake Error: Cannot open file for write:
/opt/graphlabapi/release/CMakeFiles/libjson.dir/depend.make.tmp
CMake Error: : System Error: Permission denied
make[2]: *** [CMakeFiles/libtcmalloc.dir/depend] Error 2
make[2]: *** [CMakeFiles/libjson.dir/depend] Error 2
make[1]: *** [CMakeFiles/libtcmalloc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/libjson.dir/all] Error 2
make: *** [all] Error 2

Changed to “sudo make –j2”

Output:
[ 70%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/net_util.cpp.o
[ 72%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/safe_circular_char_buffer.cpp.o
[ 75%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/fs_util.cpp.o
[ 75%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/memory_info.cpp.o
[ 77%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/tracepoint.cpp.o
[ 77%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/mpi_tools.cpp.o
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/graphlab/CMakeFiles/graphlab.dir/all] Error 2
make: *** [all] Error 2



Yucheng Low

unread,
Dec 5, 2012, 9:25:34 AM12/5/12
to graph...@googlegroups.com, graph...@googlegroups.com
There exactly is the issue. You should *never* need sudo. It will just cause permissions issues later on. What is the error reported when you just run configure without sudo?

Once again, start from a clean pull from mercurial since your use of sudo has messed up all the directory permissions.

Yucheng
Sent from iPhone
>> error: expected ‘;’ before =

Baoqiang Cao

unread,
Dec 5, 2012, 9:48:16 AM12/5/12
to graph...@googlegroups.com
Thanks Yucheng!

This morning I started from a clean pull and without using any sudo,
here is what I got:

"configure", again, without sudo, it worked. And then

cd release/toolkits/topic_modeling

make -j2


[ 70%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/net_util.cpp.o
[ 72%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/safe_circular_char_buffer.cpp.o
[ 75%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/fs_util.cpp.o
[ 75%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/memory_info.cpp.o
[ 77%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/tracepoint.cpp.o
[ 77%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/util/mpi_tools.cpp.o
In file included from
/home/ec2-user/graphlabapi/src/graphlab/graph/distributed_graph.hpp:88:0,
from
/home/ec2-user/graphlabapi/src/graphlab/aggregation/distributed_aggregator.hpp:37,
from
/home/ec2-user/graphlabapi/src/graphlab/engine/iengine.hpp:44,
from
/home/ec2-user/graphlabapi/src/graphlab/scheduler/scheduler_list.cpp:26:
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:406:71:
error: ‘JSONNode’ does not name a type
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:406:81:
error: ISO C++ forbids declaration of ‘n’ with no type [-fpermissive]
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp: In
static member function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_graph_structure_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&)’:
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:231:5:
error: ‘JSONNode’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:231:14:
error: expected ‘;’ before ‘n’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:232:5:
error: ‘JSONNode’ is not a class or namespace
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:232:30:
error: expected ‘;’ before ‘i’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:235:11:
error: ‘i’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:235:16:
error: ‘n’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:243:18:
error: expected ‘;’ before ‘csr’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:244:9:
error: ‘JSONNode’ is not a class or namespace
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:244:34:
error: expected ‘;’ before ‘j’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:245:16:
error: ‘j’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:245:21:
error: ‘csr’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:259:18:
error: expected ‘;’ before ‘csc’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:260:9:
error: ‘JSONNode’ is not a class or namespace
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:260:34:
error: expected ‘;’ before ‘j’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:262:16:
error: ‘j’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:262:21:
error: ‘csc’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp: In
static member function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vid2lvid_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&)’:
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:296:5:
error: ‘JSONNode’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:296:14:
error: expected ‘;’ before ‘n’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:297:5:
error: ‘JSONNode’ is not a class or namespace
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:297:30:
error: expected ‘;’ before ‘i’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:299:11:
error: ‘i’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:299:16:
error: ‘n’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:301:9:
error: ‘JSONNode’ is not a class or namespace
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:301:34:
error: expected ‘;’ before ‘j’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:304:15:
error: ‘j’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp: In
static member function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_edatalist_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&,
graphlab::json_parser<VertexData, EdgeData>::edge_parser_type)’:
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:320:5:
error: ‘JSONNode’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:320:14:
error: expected ‘;’ before ‘n’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:321:5:
error: ‘JSONNode’ is not a class or namespace
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:321:30:
error: expected ‘;’ before ‘i’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:324:11:
error: ‘i’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:324:16:
error: ‘n’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:327:18:
error: expected ‘;’ before ‘edatanode’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:328:9:
error: ‘JSONNode’ is not a class or namespace
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:328:34:
error: expected ‘;’ before ‘j’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:333:16:
error: ‘j’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:333:21:
error: ‘edatanode’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp: In
static member function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vrecord_from_json(graphlab::json_parser<VertexData,
EdgeData>::graph_type&, const string&,
graphlab::json_parser<VertexData, EdgeData>::vertex_parser_type)’:
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:355:5:
error: ‘JSONNode’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:355:14:
error: expected ‘;’ before ‘n’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:356:5:
error: ‘JSONNode’ is not a class or namespace
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:356:30:
error: expected ‘;’ before ‘i’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:361:12:
error: ‘i’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:361:17:
error: ‘n’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:363:9:
error: ‘JSONNode’ is not a class or namespace
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:363:34:
error: expected ‘;’ before ‘j’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:364:16:
error: ‘j’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp: In
static member function ‘static bool graphlab::json_parser<VertexData,
EdgeData>::parse_vid_array(std::vector<typename
graphlab::distributed_graph<VertexData, EdgeData>::vertex_id_type>&,
const int&)’:
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:407:11:
error: request for member ‘type’ in ‘n’, which is of non-class type
‘const int’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:409:5:
error: ‘JSONNode’ has not been declared
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:409:30:
error: expected ‘;’ before ‘i’
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:410:12:
error: ‘i’ was not declared in this scope
/home/ec2-user/graphlabapi/src/graphlab/graph/json_parser.hpp:410:19:
error: request for member ‘end’ in ‘n’, which is of non-class type
‘const int’
make[2]: *** [src/graphlab/CMakeFiles/graphlab.dir/scheduler/scheduler_list.cpp.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/graphlab/CMakeFiles/graphlab.dir/all] Error 2
make: *** [all] Error 2



Joseph Gonzalez

unread,
Dec 5, 2012, 2:25:10 PM12/5/12
to graph...@googlegroups.com
This is interesting.  Do you have:

    graphlabapi/deps/local/include/libjson/Source/JSONNode.h

It is odd that it is not finding JSONNode but is successfully including the libjson header.   

In the mean time a potentially simple work around is to remove json support (assuming you don't need to read json files).  I have attached a simple patch which comments out json calling code in the graph.

I hope that helps :-(.

Joey
remove_json.patch

Baoqiang Cao

unread,
Dec 5, 2012, 2:55:32 PM12/5/12
to graph...@googlegroups.com
Thanks for your help!

I indeed have graphlabapi/deps/local/include/libjson/Source/JSONNode.h

And after followed your remove patch, I got this:

make -j2
[ 15%] [ 25%] Built target libbz2
Built target libjson
[ 35%] [ 45%] Built target libevent
Built target libtcmalloc
[ 55%] Built target boost
Scanning dependencies of target graphlab
[ 57%] [ 57%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/rpc/distributed_event_log.cpp.o
Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/scheduler/scheduler_list.cpp.o
[ 60%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/rpc/delta_dht.cpp.o
[ 60%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/ui/mongoose/mongoose.cpp.o
[ 62%] Building CXX object
src/graphlab/CMakeFiles/graphlab.dir/ui/metrics_server.cpp.o
Linking CXX static library libgraphlab.a
[ 97%] Built target graphlab
Scanning dependencies of target cgs_lda
Scanning dependencies of target cgs_lda_mimno_experimental
[ 97%] Building CXX object
toolkits/topic_modeling/CMakeFiles/cgs_lda.dir/cgs_lda.cpp.o
[100%] Building CXX object
toolkits/topic_modeling/CMakeFiles/cgs_lda_mimno_experimental.dir/cgs_lda_mimno_experimental.cpp.o
/home/ec2-user/graphlabapi/toolkits/topic_modeling/cgs_lda_mimno_experimental.cpp:
In function ‘bool
load_and_initialize_graph(graphlab::distributed_control&, graph_type&,
const string&, const string&)’:
/home/ec2-user/graphlabapi/toolkits/topic_modeling/cgs_lda_mimno_experimental.cpp:981:13:
error: ‘graph_type’ has no member named ‘load_json’
/home/ec2-user/graphlabapi/toolkits/topic_modeling/cgs_lda_mimno_experimental.cpp:984:13:
error: ‘graph_type’ has no member named ‘load_json’
/home/ec2-user/graphlabapi/toolkits/topic_modeling/cgs_lda.cpp: In
function ‘bool load_and_initialize_graph(graphlab::distributed_control&,
graph_type&, const string&, const string&)’:
/home/ec2-user/graphlabapi/toolkits/topic_modeling/cgs_lda.cpp:849:13:
error: ‘graph_type’ has no member named ‘load_json’
/home/ec2-user/graphlabapi/toolkits/topic_modeling/cgs_lda.cpp:852:13:
error: ‘graph_type’ has no member named ‘load_json’
make[2]: *** [toolkits/topic_modeling/CMakeFiles/cgs_lda_mimno_experimental.dir/cgs_lda_mimno_experimental.cpp.o]
Error 1
make[1]: *** [toolkits/topic_modeling/CMakeFiles/cgs_lda_mimno_experimental.dir/all]
Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [toolkits/topic_modeling/CMakeFiles/cgs_lda.dir/cgs_lda.cpp.o]
Error 1
make[1]: *** [toolkits/topic_modeling/CMakeFiles/cgs_lda.dir/all] Error 2
make: *** [all] Error 2



Baoqiang Cao

unread,
Dec 5, 2012, 3:51:16 PM12/5/12
to graph...@googlegroups.com
Update:

I further commented out the two lines caused error when "make -j2"
under "release/toolkits/topic_modeling":

/home/ec2-user/graphlabapi/toolkits/topic_modeling/cgs_lda.cpp:849:13:
error: ‘graph_type’ has no member named ‘load_json’
/home/ec2-user/graphlabapi/toolkits/topic_modeling/cgs_lda.cpp:852:13:
error: ‘graph_type’ has no member named ‘load_json’

Now it is compiled. I don't think I'll need json for the time being.
So I assume everything else was not compromised.

Thanks a lot!

Sameer Gupta

unread,
Oct 17, 2013, 1:31:10 AM10/17/13
to graph...@googlegroups.com
Hi,
I am trying to install GraphLab API and I am also facing the same problem. I have #include <libjson/libjson.h> in my /graph-release/src/graphlab/graph/json_parser.hpp and it's loading but still it is giving the error:
graph-release/src/graphlab/graph/json_parser.hpp:405: error: ISO C++ forbids declaration of ‘JSONNode’ with no type

Following are the details of my machine:
uname -a
Linux wildgoose 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed Aug 28 17:19:38 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

gcc -v
gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)


I am able to install the same package on my local machine but not on the machine mentioned above. The only difference between the two is that I have admin rights on my local machine but not on the machine mentioned above. Please let me know if you have any idea how to resolve this issue. 

Danny Bickson

unread,
Oct 17, 2013, 1:38:31 AM10/17/13
to graph...@googlegroups.com
Hi Sameer, 
We will look into your problem soon.
As a workaround, we do have a publicly available GraphLab EC2 image (ubuntu) with the latest version of Graphlab:
ami-e437a9d4
It is also easily deployable from script, as explained in our ec2 tutorial: http://graphlab.org/tutorials-2/graphlab-on-ec2-cluster-quick-start/

Danny Bickson
Co-Founder
GraphLab Inc.


--
You received this message because you are subscribed to the Google Groups "GraphLab API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graphlabapi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Sameer Gupta

unread,
Oct 17, 2013, 1:45:40 AM10/17/13
to graph...@googlegroups.com
Hi Danny,
Thanks for the quick reply. Just want to clarify that I am not facing this issue on Amazon EC2 but on one of the remote servers I am using in our university.
Reply all
Reply to author
Forward
0 new messages