First here is the error I got while trying to build Heron 0.14.2 source code.
config.status: executing libtool commands configure: error: in `/tmp/gperftools.69skq/gperftools-2.4': configure: error: No frame pointers and no libunwind. The compilation will fail See `config.log' for more details
Now lets see how we are going to fix this.
First we need to install libunwind. In my case I don't have permission to install libunwind on this cluster using the package manager yum. So I install it on the home directory using the source code.
$ wget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.1.tar.gz $ tar -xvf libunwind-1.1.tar.gz $ cd libunwind-1.1 $ ./configure --prefix=$HOME $ make $ sudo make install
Now lets change the gperftools build in Heron.
vi third_party/gperftools/BUILD
Change the configure command in the genrule section
cmd = "\n".join([ "export INSTALL_DIR=$$(pwd)/$(@D)", "export TMP_DIR=$$(mktemp -d -t gperftools.XXXXX)", "mkdir -p $$TMP_DIR", "cp -R $(SRCS) $$TMP_DIR", "cd $$TMP_DIR", "tar xfz " + package_file, "cd " + package_dir, "./configure --prefix=$$INSTALL_DIR --enable-shared=no LIBS=\"-Wl,--rpath -Wl,/N/u/skamburu/lib -L/N/u/skamburu/lib\" CPPFLAGS=-I/N/u/skamburu/include LDFLAGS=-L/N/u/skamburu/lib", "make install", "rm -rf $$TMP_DIR", ])Now you should good to compile Heron.
No comments:
Post a Comment