Got error when compiling GraphLab

User 1043 | 12/9/2014, 9:52:02 PM

I am installing GraphLab on the server, ./configure succeded. Now when I ran make -j 4 in either release and debug file, I got this error message: Linking CXX static library libgraphlab.a [ 44%] Built target graphlab make: *** [all] Error 2

Anyone know how to solve it? thanks!

Comments

User 1043 | 12/9/2014, 11:36:29 PM

This is the detailed message whiling compiling graphlab-master/release/toolkits/graphical_models: Wish someone could help out: Thanks!

[ 51%] Built target libevent [ 51%] Built target libbz2 [ 51%] Built target boost [ 51%] Built target libtcmalloc [ 51%] Built target zookeeper [ 51%] Built target graphlab [ 51%] Built target eigen [ 51%] Built target dd [ 51%] Built target lbpstructuredprediction [ 51%] Performing build step for 'opencv' [ 51%] Built target zlib [ 51%] Built target libjpeg [ 51%] Built target libpng [ 51%] Built target IlmImf [ 51%] Built target opencvcore [ 51%] Built target opencvflann [ 51%] Built target opencvimgproc [ 51%] Built target opencvhighgui [ 51%] Building CXX object modules/features2d/CMakeFiles/opencvfeatures2d.dir/src/freak.cpp.o /local1/mine/fraud/luorui/LINK/graphlab-master/deps/opencv/src/opencv/modules/core/include/opencv2/core/core.hpp:1313: warning: ‘class cv::InputArray’ has virtual functions but non-virtual destructor /local1/mine/fraud/luorui/LINK/graphlab-master/deps/opencv/src/opencv/modules/core/include/opencv2/core/core.hpp:1401: warning: ‘class cv::OutputArray’ has virtual functions but non-virtual destructor /local1/mine/fraud/luorui/LINK/graphlab-master/deps/opencv/src/opencv/modules/core/include/opencv2/core/core.hpp:4826: warning: ‘class cv::TLSDataContainer’ has virtual functions but non-virtual destructor /local1/mine/fraud/luorui/LINK/graphlab-master/deps/opencv/src/opencv/modules/features2d/src/freak.cpp: In member function ‘virtual void cv::FREAK::computeImpl(const cv::Mat&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >&, cv::Mat&) const’: /local1/mine/fraud/luorui/LINK/graphlab-master/deps/opencv/src/opencv/modules/features2d/src/freak.cpp:474: error: unable to find a register to spill in class ‘GENERALREGS’ /local1/mine/fraud/luorui/LINK/graphlab-master/deps/opencv/src/opencv/modules/features2d/src/freak.cpp:474: error: this is the insn: (insn:HI 1686 1685 1687 131 (parallel [ (set (subreg:DI (reg:V16QI 21 xmm0 [849]) 0) (ior:DI (reg:DI 1 dx [833]) (reg:DI 4 si [840]))) (clobber (reg:CC 17 flags)) ]) 315 {*iordi1rex64} (insnlist:REGDEPTRUE 1661 (insnlist:REGDEPTRUE 1660 (nil))) (exprlist:REGUNUSED (reg:CC 17 flags) (exprlist:REGUNUSED (reg:CC 17 flags) (exprlist:REGDEAD (reg:DI 4 si [840]) (exprlist:REGDEAD (reg:DI 1 dx [833]) (nil)))))) /local_1/mine/fraud/luorui/LINK/graphlab-master/deps/opencv/src/opencv/modules/features2d/src/freak.cpp:474: confused by earlier errors, bailing out make[5]: * [modules/features2d/CMakeFiles/opencv_features2d.dir/src/freak.cpp.o] Error 1 make[4]: [modules/features2d/CMakeFiles/opencv_features2d.dir/all] Error 2 make[3]: ** [all] Error 2 make[2]: * [../deps/opencv/src/opencv-stamp/opencv-build] Error 2 make[1]: [CMakeFiles/opencv.dir/all] Error 2 make: ** [all] Error 2


User 6 | 12/10/2014, 3:11:26 PM

It seems opencv fails to compile on your system. Which OS are you using? opencv is an external library which is a dependency resulted from cloudcv, a virginia tech contribution. You may need to contact opencv support


User 1043 | 12/15/2014, 10:36:30 PM

Thanks for your comments. Actually, I only want to use lbpstructuredprediction, does it require openCV?


User 6 | 12/16/2014, 6:23:53 AM

in this case, i suggest commenting out all lines here: https://github.com/graphlab-code/graphlab/blob/master/toolkits/graphicalmodels/CMakeLists.txt except for the project name, and the lines with the lbpstructured_prediction target. Then try to reconfigure and recompile.