Forum: Installation

Post: Building an old version of VoltDB (voltdb-2.5)

Building an old version of VoltDB (voltdb-2.5)
bnm
Oct 22, 2016
Hello,

I am a graduate student at University of Waterloo and I am researching data placement and movement in shared nothing ACID compliant databases like VoltDB. I am trying to build an older version of VoltDB (voltdb-2.5) so I can use certain features not included in the latest versions but I am having some trouble building, in particular I get the following error with command of the build file:

g++ -Wall -Wextra -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -pthread -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=hidden -DBOOST_SP_DISABLE_THREADS -Wno-ignored-qualifiers -fno-strict-aliasing -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee -c -g3 -rdynamic -DDEBUG -DVOLT_LOG_LEVEL=500 -o objects/json_spirit/json_spirit_value.co ../../third_party/cpp/json_spirit/json_spirit_value.cpp
../../third_party/cpp/json_spirit/json_spirit_reader.cpp:63:32: error: template argument 1 is invalid
../../third_party/cpp/json_spirit/json_spirit_reader.cpp:63:44: error: invalid type in declaration before '=' token
../../third_party/cpp/json_spirit/json_spirit_reader.cpp:63:68: error: template argument 1 is invalid
../../third_party/cpp/json_spirit/json_spirit_reader.cpp:302:23: error: reference to 'int64_t' is ambiguous
/usr/include/x86_64-linux-gnu/sys/types.h:197:1: error: candidates are: typedef long int int64_t
../../third_party/cpp/boost/cstdint.hpp:301:50: error: typedef boost::long_long_type boost::int64_t
../../third_party/cpp/json_spirit/json_spirit_reader.cpp:302:23: error: 'int64_t' has not been declared
../../third_party/cpp/json_spirit/json_spirit_reader.cpp: In constructor '{anonymous}::Json_grammer<Value_type, Iter_type>::definition<ScannerT>::definition(const {anonymous}::Json_grammer<Value_type, Iter_type>&)':
../../third_party/cpp/json_spirit/json_spirit_reader.cpp:455:49: error: a call to a constructor cannot appear in a constant-expression
../../third_party/cpp/json_spirit/json_spirit_reader.cpp:455:64: error: template argument 1 is invalid
../../third_party/cpp/json_spirit/json_spirit_reader.cpp:455:76: error: invalid type in declaration before ';' token
../../third_party/cpp/json_spirit/json_spirit_reader.cpp:527:49: error: invalid types 'const int[Int_action {aka int}]' for array subscript

I have tried several versions of gcc but to no avail, could someone point out to what I could possibly need, maybe degrade my boost libraries?
bballard
Nov 28, 2016
Hi,

We have instructions for building VoltDB at the link below, but it is for recent versions. I recommend that you download enterprise edition which includes all the features and a trial license you can use for your research.

https://github.com/VoltDB/voltdb/wiki/Building-VoltDB

-Ben