Forum: Installation

Post: Unable to compile voltDB community edition on RHEL

Unable to compile voltDB community edition on RHEL
sohittandon
Nov 2, 2014
Hi All,
I am trying to compile the community edition of VoltDB on the following Linux version
Linux 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

It would fail with the following error

Execute:Java13CommandLauncher: Executing 'python' with arguments:
'build.py'
'release'

The ' characters around the executable and arguments are
not part of the command.
[exec] make: Entering directory `/home/voltdb/voltdb-master/obj/release'
[exec] make: Leaving directory `/home/voltdb/voltdb-master/obj/release'
[exec] make: *** No rule to make target `objects//voltdbjni.co', needed by `nativelibs/libvoltdb-4.9.so'. Stop.

BUILD FAILED
/home/voltdb/voltdb-master/build.xml:1191: exec returned: 255
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 13 seconds

I am using the standard latest build.xml and the pre-requisites are also met.
Any idea why compilation is failing?
I will attach the complete compilation log.
jhugg
Nov 3, 2014
Could you tell us which distribution you're using? Ubuntu 14.04 or Redhat 5.9, etc.?

The output of "lsb_release -a" would be great if you have that command.
scooper
Nov 3, 2014
Hi,

In addition to the "lsb_release -a" output, the following could help narrow down the problem.

It's possible the jnicompile target is being skipped because a file check is passing that makes it think it doesn't need to rebuild the jni library.

The file check looks for the following source files to match the same files in the build directory and skips the jni build if they do.

src/ee/org_voltdb_jni_ExecutionEngine.h
src/ee/org_voltcore_utils_DBBPool.h
src/ee/org_voltdb_utils_PosixAdvise.h

Would you mind doing a find for one or all of them, e.g. from the top of your development tree? This command would work, assuming all source and output files are under your user home directory.

find ~ -name "org_voltdb*.h"

You can also try moving the 3 files listed above somewhere else, wherever you find them. They are generated by the build.

Thanks.
Steve
sohittandon
Nov 6, 2014
Hi All,
I managed to compile. It was missing gcc-C++ compiler.

Thanks to all those who replied.
Cheers!!