ERROR while doing 'make'

User 73 | 2/28/2014, 4:40:38 PM

While executing 'make' in release or debug folder, I get this error, please help me with this:

~/graphlab/release $ make Scanning dependencies of target libbz2 [ 4%] Built target libbz2 Scanning dependencies of target boost [ 7%] Built target boost Scanning dependencies of target eigen [ 10%] Built target eigen Scanning dependencies of target hadoop [ 10%] Performing build step for 'hadoop' ./libtool: eval: line 4783: unexpected EOF while looking for matching `'' ./libtool: eval: line 4784: syntax error: unexpected end of file make[3]: * [libhdfs.la] Error 2 make[2]: [../deps/hadoop/src/hadoop-stamp/hadoop-build] Error 2 make[1]: ** [CMakeFiles/hadoop.dir/all] Error 2 make: *** [all] Error 2


My system: Linux user 3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:35:23 UTC 2013 x8664 x8664 x86_64 GNU/Linux

Comments

User 6 | 2/28/2014, 4:49:48 PM

Hi, We recommend compiling only the toolkit you are interested in working with. For example: cd release/toolkits/graph_analytics/ make

Are you planning to work with HDFS? If not, please configure with "./configure --no_jvm" and then try again.

Not sure why you are getting the error. It may be that libtool is linking towards a different library. We will need the contents of configure.deps and config.log to know.


User 73 | 2/28/2014, 5:07:09 PM

Hi Danny, thanks for replying. Yes, I'm planning to use hdfs. My cluster size is approximately 20 machines and data I want to process is huge too, so I cannot ignore hdfs.

Even with compiling the specific toolkit it's giving me the same error, its trying to build the hadoop it downloaded.

~/graphlab/release/toolkits/graph_analytics $ make [ 0%] Performing build step for 'hadoop' ./libtool: eval: line 4783: unexpected EOF while looking for matching `'' ./libtool: eval: line 4784: syntax error: unexpected end of file make[3]: * [libhdfs.la] Error 2 make[2]: [../deps/hadoop/src/hadoop-stamp/hadoop-build] Error 2 make[1]: ** [CMakeFiles/hadoop.dir/all] Error 2 make: *** [all] Error 2


I checked both the config.log and configure.deps but could not find any problem there. Here is the content of configre.deps and I've attached the log herewith:

Release build directory:

     RELEASE_DIR=release

Debug build directory (optimization disabled):

     DEBUG_DIR=debug

Directory in which graphlab is installed (prefix):

     INSTALL_DIR=/usr/local

Is experimental (research) code enabled:

     EXPERIMENTAL=false

The graphlab home directory:

     GRAPHLAB_HOME=/home/username/graphlab

The directory in which graphlab installs external dependencies:

     DEPS_PREFIX=/home/username/graphlab/deps/local

Use OpenMP? This can accelerate some graph building code:

     NO_OPENMP=false

Use MPI? Without MPI GraphLab cannot run distributed:

     NO_MPI=false

Use tcmalloc? Thread-Caching Malloc improves memory allocation:

     NO_TCMALLOC=false

The c compiler to use:

     CC=gcc

The c++ compiler to use:

     CXX=g++

Any addition user defined CFLAGS:

     CFLAGS=

The Java compiler:

     JAVAC=javac

The cmake binary used to geneate the project:

     CMAKE=cmake

Thanks for your help.

NOTE: I have hadoop installed in my system, I hope it'd not be an issue while istalling graphlab coz I see the error involves building hadoop which graphlab downloads while executing make for the first time.

EDIT: Even while compiling without hadoop this error comes, seems likes the error is related to something else, not related to graphlab.


User 20 | 2/28/2014, 7:30:52 PM

That seems really odd. Can you try building hadoop/HDFS?

Download hadoop-1.0.1 from the hadoop website, untargz it, then try the following:

chmod +x src/c++/libhdfs/configure
src/c++/libhdfs/configure JVM_ARCH=tune=generic --with-java=${JAVA_HOME}
make

You may not need --with-java=${JAVA_HOME}.

Generally, it seems like you have a problem with libtool. This seems to be rather messy error, if you google 'libtool unexpected EOF while looking for matching'. I am guessing it could be: - some error in an environment variable: https://github.com/tmm1/perftools.rb/issues/25 - some GNU make/libtool version mismatch - some bash version mismatch