Forum: Building VoltDB Applications

Post: Can't compile voltDB community version,what's the error meaning?

Can't compile voltDB community version,what's the error meaning?
Carol
Mar 23, 2016
uptodate_jni_h.check:

jnicompile:
[move] Moving 1 file to /usr/voltdb/src/ee
[move] Moving 1 file to /usr/voltdb/src/ee
[move] Moving 1 file to /usr/voltdb/src/ee

buildinfo:
[exec] Version: 6.2 voltdb-6.1-131-gac7326d

ee_buildmakefile:
[exec] Cannot find compiler version by running "g++"
[exec] Traceback (most recent call last):
[exec] File "build.py", line 99, in <module>
[exec] CTX.CPPFLAGS += " " + CTX.CXX_VERSION_FLAG
[exec] AttributeError: BuildContext instance has no attribute 'CXX_VERSION_FLAG'

BUILD FAILED
/usr/voltdb/build.xml:1565: exec returned: 1

Total time: 42 seconds
pzhao
Mar 23, 2016
Carol,
Build errors are common with older or missing dependencies. Please follow these instructions to setup your linux environment prior to building VoltDB community verison: https://github.com/VoltDB/voltdb/wiki/Building-VoltDB

Here's a similar post:
https://forum.voltdb.com/showthread.php?1503-Faild-to-build-the-latest-VoltDB-community-edition-with-quot-AttributeError-BuildContext-instance-has-no-attribute-CXX_VERSION_FLAG-quot&highlight=CXX_VERSION_FLAG

Peter Zhao
Carol
Mar 24, 2016
Hi Peter,

I just prepared the environment with your instructions in https://github.com/VoltDB/voltdb/wiki/Building-VoltDB .

For Centos/RHEL 6.x Linuxes

First install EPEL to get access some newer packages:

wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo rpm -Uvh epel*.rpm
Then install the packages needed:

sudo yum -y install ant ant-nodeps ant-junit ant-scripts ant-javadoc ant-trax \
gcc gcc-c++ python valgrind ntp python26 git-all python-httplib2 \
python-setuptools python-devel ccache cmake bzip2

and got the code by:
git clone https://github.com/VoltDB/voltdb.git

Still met the problem:
[root@ochadoop28 voltdb]# java -version
java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)

[root@ochadoop28 voltdb]# g++ --version
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
Copyright 2010 Free Software Foundation, Inc.

ee_buildmakefile:
[exec] Cannot find compiler version by running "g++"
[exec] Traceback (most recent call last):
[exec] File "build.py", line 99, in <module>
[exec] CTX.CPPFLAGS += " " + CTX.CXX_VERSION_FLAG
[exec] AttributeError: BuildContext instance has no attribute 'CXX_VERSION_FLAG'

BUILD FAILED
/usr/voltdb/build.xml:1565: exec returned: 1

Total time: 27 seconds


How to get other release version?