Graphlab compiling error

271 views
Skip to first unread message

Jingwei Shen

unread,
Nov 19, 2013, 5:04:16 PM11/19/13
to graph...@googlegroups.com
Hi guys, 

I am a starter for graph lab. While compiling after I downloaded graph lab, I met following problems.

When I run " make -j4 " under  " graphlab/release/toolkits/collaborative filtering", I meet these error reports : 

make[3]: *** [heap-checker_unittest] Error 1
make[2]: *** [../deps/tcmalloc/src/libtcmalloc-stamp/libtcmalloc-build] Error 2
make[1]: *** [CMakeFiles/libtcmalloc.dir/all] Error 2
make: *** [all] Error 2

more info :
uname - a :
 Linux jingwei-Inspiron-1464 3.8.0-33-generic #48~precise1-Ubuntu SMP Thu Oct 24 16:28:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
jingwei@jingwei-Inspiron-1464:~/Public/Software/graphlab/release/toolkits/collaborative_filtering$ 



g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 


clang++ -v
Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: x86_64-pc-linux-gnu
Thread model: posix

Attached is the config.log and configure.deps.

Thank you very much. 


config.log
configure.deps

Danny Bickson

unread,
Nov 20, 2013, 1:25:36 AM11/20/13
to graph...@googlegroups.com
Hi Jingwei,
The error message you sent is not complete, namely we see the error but not the output which says what caused it.
It seems that tcmalloc compilation failed. Please send us the full error (and compile without the -j 4 that way the message will be clearer).

But better send us the full compilation output first.

Best, 

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.

Jingwei Shen

unread,
Nov 21, 2013, 9:59:37 AM11/21/13
to graph...@googlegroups.com
Hi Danny,

Thank you very much. 
Attached is the output file for my error - all the output after I type "make".

Thank you again. 

Best,
Jingwei
output.txt

Danny Bickson

unread,
Nov 23, 2013, 5:16:39 AM11/23/13
to graph...@googlegroups.com
Hi Jingwei, 
Did you try to disable tcmalloc and compile as instructed?
If there are no additional errors than the problem is in tcmalloc. If there are additional compilation errors than probably the problem is in your machine configuration.

Thanks

Danny Bickson
Co-Founder
GraphLab Inc.


Jingwei Shen

unread,
Nov 23, 2013, 7:31:35 PM11/23/13
to graph...@googlegroups.com
Hi Danny,

I am afraid that the same problem occurs after I tried the instructions.
By the way, make sure I have done the right things : the CMakeList.txt is under the root directory : /graphlab . I need comment 2 lines in total :
# add_definitions(-DHAS_TCMALLOC)   # tcmalloc.

Attached is the error output after I tried the instructions.

Thanks
Jingwei
output.txt

Danny Bickson

unread,
Nov 24, 2013, 12:14:19 AM11/24/13
to graph...@googlegroups.com
It seems you did not "./configure" after changing the CMakeLists.txt file since the step should not be called.

Danny Bickson
Co-Founder
GraphLab Inc.


Message has been deleted

Jingwei Shen

unread,
Nov 29, 2013, 10:56:37 AM11/29/13
to graph...@googlegroups.com
Hi Danny, 

Thank you  very much.  
The problem is fixed.  However I met another one.   As shown below, it doesn't move any further when "building als.app.o". Is is caused by lack of memory?
I checked before I ran "make", and my laptop had about 1.7GB memory free. Is it enough?

[  8%] Built target zookeeper
[ 16%] Built target libjson
[ 24%] Built target libbz2
[ 32%] Built target boost
[ 38%] Built target libtcmalloc
[ 44%] Built target libevent
[ 53%] Built target hadoop
[ 91%] Built target graphlab
[ 97%] Built target eigen
[ 97%] Building CXX object toolkits/collaborative_filtering/CMakeFiles/als.dir/als.cpp.o


Thank you very much.

Jingwei 

Danny Bickson

unread,
Nov 29, 2013, 11:14:48 AM11/29/13
to graph...@googlegroups.com
I guess you are running out of memory. Try to compile with the "-j " flag. 
If this does not help you will need to switch to a machine with more memory...

Danny Bickson
Co-Founder
GraphLab Inc.


Reply all
Reply to author
Forward
0 new messages