Error building VoltDB

101 views
Skip to first unread message

Shahin

unread,
Jan 22, 2014, 6:35:21 PM1/22/14
to voltd...@googlegroups.com
Hi,

I followed the instruction here for building

I am attaching some info here incase some one can help.

Thanks

Build Environment
=================
Ubuntu

ubuntu@ip-10-196-46-243:/mnt/voltdb$ uname -r
3.11.0-12-generic

ubuntu@ip-10-196-46-243:/mnt/voltdb$ python --version
Python 2.7.5+

ubuntu@ip-10-196-46-243:/mnt/voltdb$ ant -version
Apache Ant(TM) version 1.9.2 compiled on July 14 2013

ubuntu@ip-10-196-46-243:/mnt/voltdb$ javac -version
javac 1.7.0_25

ubuntu@ip-10-196-46-243:/mnt/voltdb$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.8.1-10ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu9)

Build Errors
============
Buildfile: /mnt/voltdb/build.xml

catalog:

project_gen_check:

project_gen:

deployment_gen_check:

deployment_gen:

compile_client:

compile:

compile_core:
   [depend] Deleted 23 out of date files in 5 seconds
    [javac] Compiling 1 source file to /mnt/voltdb/obj/release/prod
    [javac] Compiling 21 source files to /mnt/voltdb/obj/release/prod

compile_pro:

compile:

jnicompile_temp:
    [javah] [Forcefully writing file RegularFileObject[/mnt/voltdb/obj/release/org_voltdb_jni_ExecutionEngine.h]]
    [javah] [Forcefully writing file RegularFileObject[/mnt/voltdb/obj/release/org_voltdb_jni_ExecutionEngine_DependencyTracker.h]]
    [javah] [Forcefully writing file RegularFileObject[/mnt/voltdb/obj/release/org_voltdb_jni_ExecutionEngine_TaskType.h]]
    [javah] [Forcefully writing file RegularFileObject[/mnt/voltdb/obj/release/org_voltcore_utils_DBBPool.h]]
    [javah] [Forcefully writing file RegularFileObject[/mnt/voltdb/obj/release/org_voltcore_utils_DBBPool_DeallocatingContainer.h]]
    [javah] [Forcefully writing file RegularFileObject[/mnt/voltdb/obj/release/org_voltcore_utils_DBBPool_BBWrapperContainer.h]]
    [javah] [Forcefully writing file RegularFileObject[/mnt/voltdb/obj/release/org_voltcore_utils_DBBPool_BBContainer.h]]

uptodate_jni_h.check:

jnicompile:

buildinfo:
     [exec] Version:  4.0.2 release-4.0.2-Q2-16-gba5ea61

ee_makefile.uptodate:

ee_buildmakefile:

     [exec] make: Entering directory `/mnt/voltdb/obj/release'
     [exec] g++  -Wall -Wextra -Werror -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=default -DBOOST_SP_DISABLE_THREADS -DBOOST_DISABLE_THREADS -DBOOST_ALL_NO_LIB -pthread -Wno-ignored-qualifiers -fno-strict-aliasing -g3 -O3 -mmmx -msse -msse2 -msse3 -DNDEBUG -DVOLT_LOG_LEVEL=500 -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee  -c  -o objects/indexes/tableindexfactory.co ../../src/ee/indexes/tableindexfactory.cpp
     [exec] g++  -Wall -Wextra -Werror -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=default -DBOOST_SP_DISABLE_THREADS -DBOOST_DISABLE_THREADS -DBOOST_ALL_NO_LIB -pthread -Wno-ignored-qualifiers -fno-strict-aliasing -g3 -O3 -mmmx -msse -msse2 -msse3 -DNDEBUG -DVOLT_LOG_LEVEL=500 -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee  -c  -o objects/catalog/constraint.co ../../src/ee/catalog/constraint.cpp
     [exec] g++  -Wall -Wextra -Werror -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=default -DBOOST_SP_DISABLE_THREADS -DBOOST_DISABLE_THREADS -DBOOST_ALL_NO_LIB -pthread -Wno-ignored-qualifiers -fno-strict-aliasing -g3 -O3 -mmmx -msse -msse2 -msse3 -DNDEBUG -DVOLT_LOG_LEVEL=500 -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee  -c  -o objects/catalog/constraintref.co ../../src/ee/catalog/constraintref.cpp
     [exec] g++  -Wall -Wextra -Werror -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=default -DBOOST_SP_DISABLE_THREADS -DBOOST_DISABLE_THREADS -DBOOST_ALL_NO_LIB -pthread -Wno-ignored-qualifiers -fno-strict-aliasing -g3 -O3 -mmmx -msse -msse2 -msse3 -DNDEBUG -DVOLT_LOG_LEVEL=500 -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee  -c  -o objects/catalog/database.co ../../src/ee/catalog/database.cpp
     [exec] g++  -Wall -Wextra -Werror -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=default -DBOOST_SP_DISABLE_THREADS -DBOOST_DISABLE_THREADS -DBOOST_ALL_NO_LIB -pthread -Wno-ignored-qualifiers -fno-strict-aliasing -g3 -O3 -mmmx -msse -msse2 -msse3 -DNDEBUG -DVOLT_LOG_LEVEL=500 -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee  -c  -o objects/catalog/deployment.co ../../src/ee/catalog/deployment.cpp
     [exec] g++  -Wall -Wextra -Werror -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=default -DBOOST_SP_DISABLE_THREADS -DBOOST_DISABLE_THREADS -DBOOST_ALL_NO_LIB -pthread -Wno-ignored-qualifiers -fno-strict-aliasing -g3 -O3 -mmmx -msse -msse2 -msse3 -DNDEBUG -DVOLT_LOG_LEVEL=500 -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee  -c  -o objects/catalog/group.co ../../src/ee/catalog/group.cpp
     [exec] g++  -Wall -Wextra -Werror -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=default -DBOOST_SP_DISABLE_THREADS -DBOOST_DISABLE_THREADS -DBOOST_ALL_NO_LIB -pthread -Wno-ignored-qualifiers -fno-strict-aliasing -g3 -O3 -mmmx -msse -msse2 -msse3 -DNDEBUG -DVOLT_LOG_LEVEL=500 -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee  -c  -o objects/catalog/groupref.co ../../src/ee/catalog/groupref.cpp
     [exec] g++  -Wall -Wextra -Werror -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=default -DBOOST_SP_DISABLE_THREADS -DBOOST_DISABLE_THREADS -DBOOST_ALL_NO_LIB -pthread -Wno-ignored-qualifiers -fno-strict-aliasing -g3 -O3 -mmmx -msse -msse2 -msse3 -DNDEBUG -DVOLT_LOG_LEVEL=500 -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee  -c  -o objects/catalog/index.co ../../src/ee/catalog/index.cpp
     [exec] g++  -Wall -Wextra -Werror -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=default -DBOOST_SP_DISABLE_THREADS -DBOOST_DISABLE_THREADS -DBOOST_ALL_NO_LIB -pthread -Wno-ignored-qualifiers -fno-strict-aliasing -g3 -O3 -mmmx -msse -msse2 -msse3 -DNDEBUG -DVOLT_LOG_LEVEL=500 -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee  -c  -o objects/catalog/materializedviewinfo.co ../../src/ee/catalog/materializedviewinfo.cpp
     [exec] g++  -Wall -Wextra -Werror -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=default -DBOOST_SP_DISABLE_THREADS -DBOOST_DISABLE_THREADS -DBOOST_ALL_NO_LIB -pthread -Wno-ignored-qualifiers -fno-strict-aliasing -g3 -O3 -mmmx -msse -msse2 -msse3 -DNDEBUG -DVOLT_LOG_LEVEL=500 -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee  -c  -o objects/catalog/planfragment.co ../../src/ee/catalog/planfragment.cpp
     [exec] In file included from ../../src/ee/indexes/CompactingTreeUniqueIndex.h:55:0,
     [exec]                  from ../../src/ee/indexes/tableindexfactory.cpp:55:
     [exec] ../../src/ee/structures/CompactingMap.h: In instantiation of ‘voltdb::CompactingMap<Key, Data, Compare, hasRank>::CompactingMap(bool, Compare) [with Key = voltdb::TupleKey; Data = const void*; Compare = voltdb::TupleKeyComparator; bool hasRank = true]’:
     [exec] ../../src/ee/indexes/CompactingTreeUniqueIndex.h:343:24:   required from ‘voltdb::CompactingTreeUniqueIndex<KeyType, hasRank>::CompactingTreeUniqueIndex(const voltdb::TupleSchema*, const voltdb::TableIndexScheme&) [with KeyType = voltdb::TupleKey; bool hasRank = true]’
     [exec] ../../src/ee/indexes/tableindexfactory.cpp:186:92:   required from here
     [exec] ../../src/ee/structures/CompactingMap.h:199:22: error: conversion to ‘int32_t {aka int}’ from ‘long unsigned int’ may alter its value [-Werror=conversion]
     [exec]        m_comper(comper)
     [exec]                       ^
     [exec] ../../src/ee/structures/CompactingMap.h: In instantiation of ‘voltdb::CompactingMap<Key, Data, Compare, hasRank>::CompactingMap(bool, Compare) [with Key = voltdb::TupleKey; Data = const void*; Compare = voltdb::TupleKeyComparator; bool hasRank = false]’:
     [exec] ../../src/ee/indexes/CompactingTreeUniqueIndex.h:343:24:   required




[exec] ../../src/ee/indexes/CompactingTreeMultiMapIndex.h:74:54:   required from ‘bool voltdb::CompactingTreeMultiMapIndex<KeyType, hasRank>::addEntry(const voltdb::TableTuple*) [with KeyType = voltdb::IntsKey<1ul>; bool hasRank = false]’
     [exec] ../../src/ee/indexes/tableindexfactory.cpp:287:1:   required from here
     [exec] ../../src/ee/indexes/indexkey.h:275:49: error: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Werror=conversion]
     [exec] g++  -Wall -Wextra -Werror -Woverloaded-virtual -Wpointer-arith -Wcast-qual -Wwrite-strings -Winit-self -Wno-sign-compare -Wno-unused-parameter -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DNOCLOCK -fno-omit-frame-pointer -fvisibility=default -DBOOST_SP_DISABLE_THREADS -DBOOST_DISABLE_THREADS -DBOOST_ALL_NO_LIB -pthread -Wno-ignored-qualifiers -fno-strict-aliasing -g3 -O3 -mmmx -msse -msse2 -msse3 -DNDEBUG -DVOLT_LOG_LEVEL=500 -Wno-attributes -Wcast-align -Wconversion -DLINUX -fpic -isystem ../../third_party/cpp -I../../src/ee  -c  -o objects/catalog/stmtparameter.co ../../src/ee/catalog/stmtparameter.cpp
     [exec] cc1plus: all warnings being treated as errors
     [exec] make: *** [objects/indexes/tableindexfactory.co] Error 1
     [exec] make: *** Waiting for unfinished jobs....
     [exec] make: Leaving directory `/mnt/voltdb/obj/release'

Paul Martel

unread,
Jan 23, 2014, 1:52:31 PM1/23/14
to voltd...@googlegroups.com
Shahin,

It looks like you may be the first to have tried building on Ubuntu 13.10 with its up-to-date version of gcc.
In particular, it looks like your version of g++ is picking up on a code cleanliness issue that prior g++ versions have missed.
This particular issue is easy to work around with a cast, but there's no way of predicting how many similar issues are being missed in our current builds.
Most of VoltDB's development and test builds use Ubuntu 13.04 or earlier.
We will likely begin the build qualification process for Ubuntu 13.10 soon.

Thanks for reporting this issue.
Paul

Paul Martel
Engineer
VoltDB, Inc.



--
You received this message because you are subscribed to the Google Groups "VoltDB-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to voltdb-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Shahin Islam

unread,
Jan 23, 2014, 5:12:35 PM1/23/14
to voltd...@googlegroups.com
Thanks Paul. Will give the suggested Ubuntu version a go.

Cheers,
Shahin


--
You received this message because you are subscribed to a topic in the Google Groups "VoltDB-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/voltdb-dev/1speJR6nlZg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to voltdb-dev+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages