Forum: Installation

Post: Can't Build Community Version - Don't Understand Errors

Can't Build Community Version - Don't Understand Errors
tccharleton
Nov 6, 2015
I have been working with a number of open-source projects for a few years now but all in Maven. I have cloned the git repository, run the ant clean and ant command in the directory (per the README) but it always fails at the same point. I can't figure out what I am doing wrong (without spending a week learning Ant, Python, C++, etc.) I assumed from the directions in the README that the Ant build would work in most cases.

This is the end of the output but I have also attached the whole thing in a txt file. Any help would be greatly appreciated.

[exec] cc1plus: all warnings being treated as errors
[exec] make: *** [objects/stats/StatsAgent.o] Error 1
[exec] make: *** Waiting for unfinished jobs....
[exec] makefile:290: recipe for target 'objects/stats/StatsAgent.o' failed
[exec] cc1plus: all warnings being treated as errors
[exec] cc1plus: all warnings being treated as errors
[exec] make: *** [objects/executors/OptimizedProjector.o] Error 1
[exec] makefile:314: recipe for target 'objects/executors/OptimizedProjector.o' failed
[exec] makefile:278: recipe for target 'objects/voltdbjni.o' failed
[exec] make: *** [objects/voltdbjni.o] Error 1
[exec] makefile:302: recipe for target 'objects/stats/StatsSource.o' failed
[exec] make: Leaving directory '/home/craig/git/voltdb/obj/release'
[exec] cc1plus: all warnings being treated as errors
[exec] make: *** [objects/stats/StatsSource.o] Error 1

BUILD FAILED
/home/craig/git/voltdb/build.xml:1541: exec returned: 255

Total time: 26 seconds
jhugg
Nov 14, 2015
Sorry for the slow response; we've been busy getting 5.8 out the door and this fell through the cracks.

We've created a ticket to track this. https://issues.voltdb.com/browse/ENG-9459

We think you can make this work by adding -fno-strict-aliasing in the build.py script. We're currently evaluating whether to change the code or the build.

Thanks.
cwolff
Nov 19, 2015
We've fixed the build for newer versions of gcc (our build scripts did not work well with gcc 5.x). If you grab the latest commits from master, you should be able to build without problems now. Let us know if you continue to have issues building.