Forum: Installation

Post: Compilation error on Debian 7.8 (wheezy)

Compilation error on Debian 7.8 (wheezy)
LairMan
Apr 16, 2015
Hello,
I'm trying to compile the community version of VoltDB but I got some compilation errors, see the shorten output below. Could someone help me with to make it work?
Thank you.

[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/network/PicoNetwork.java:67: cannot find symbol
[javac] symbol : class StandardSocketOptions
[javac] location: package java.net
[javac] import java.net.StandardSocketOptions;
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/Bits.java:33: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] public static final sun.misc.Unsafe unsafe;
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/Bits.java:35: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] private static sun.misc.Unsafe getUnsafe() {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltdb/utils/PosixAdvise.java:23: warning: sun.misc.SharedSecrets is internal proprietary API and may be removed in a future release
[javac] import sun.misc.SharedSecrets;
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/cache/Striped64.java:318: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return sun.misc.Unsafe.getUnsafe();
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/cache/Striped64.java:322: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/cache/Striped64.java:322: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/cache/Striped64.java:323: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] public sun.misc.Unsafe run() throws Exception {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/cache/Striped64.java:324: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/cache/Striped64.java:324: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/primitives/UnsignedBytes.java:348: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return sun.misc.Unsafe.getUnsafe();
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/primitives/UnsignedBytes.java:352: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/primitives/UnsignedBytes.java:352: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/primitives/UnsignedBytes.java:353: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] public sun.misc.Unsafe run() throws Exception {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/primitives/UnsignedBytes.java:354: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/com/google_voltpatches/common/primitives/UnsignedBytes.java:354: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/ConcurrentLinkedDeque.java:1449: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return sun.misc.Unsafe.getUnsafe();
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/ConcurrentLinkedDeque.java:1454: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] .PrivilegedExceptionAction<sun.misc.Unsafe>() {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/ConcurrentLinkedDeque.java:1454: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] .PrivilegedExceptionAction<sun.misc.Unsafe>() {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/ConcurrentLinkedDeque.java:1455: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] public sun.misc.Unsafe run() throws Exception {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/ConcurrentLinkedDeque.java:1457: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] .Unsafe.class.getDeclaredField("theUnsafe");
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/ConcurrentLinkedDeque.java:1459: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return (sun.misc.Unsafe) f.get(null);
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/LinkedTransferQueue.java:1333: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return sun.misc.Unsafe.getUnsafe();
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/LinkedTransferQueue.java:1338: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] .PrivilegedExceptionAction<sun.misc.Unsafe>() {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/LinkedTransferQueue.java:1338: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] .PrivilegedExceptionAction<sun.misc.Unsafe>() {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/LinkedTransferQueue.java:1339: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] public sun.misc.Unsafe run() throws Exception {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/LinkedTransferQueue.java:1341: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] .Unsafe.class.getDeclaredField("theUnsafe");
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/jsr166y/LinkedTransferQueue.java:1343: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return (sun.misc.Unsafe) f.get(null);
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/cliffc_voltpatches/high_scale_lib/UtilUnsafe.java:19: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return Unsafe.getUnsafe();
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/cliffc_voltpatches/high_scale_lib/UtilUnsafe.java:21: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] final Field fld = Unsafe.class.getDeclaredField("theUnsafe");
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/cliffc_voltpatches/high_scale_lib/UtilUnsafe.java:23: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return (Unsafe) fld.get(UtilUnsafe.class);
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/DBBPool.java:67: warning: sun.nio.ch.DirectBuffer is internal proprietary API and may be removed in a future release
[javac] return ((DirectBuffer)b).address();
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/DBBPool.java:421: warning: sun.nio.ch.DirectBuffer is internal proprietary API and may be removed in a future release
[javac] final DirectBuffer dbuf = (DirectBuffer) buf;
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/DBBPool.java:421: warning: sun.nio.ch.DirectBuffer is internal proprietary API and may be removed in a future release
[javac] final DirectBuffer dbuf = (DirectBuffer) buf;
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/DBBPool.java:422: warning: sun.misc.Cleaner is internal proprietary API and may be removed in a future release
[javac] final Cleaner cleaner = dbuf.cleaner();
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/network/PicoNetwork.java:149: cannot find symbol
[javac] symbol : variable StandardSocketOptions
[javac] location: class org.voltcore.network.PicoNetwork
[javac] sc.setOption(StandardSocketOptions.TCP_NODELAY, true);
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/Bits.java:37: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return sun.misc.Unsafe.getUnsafe();
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/Bits.java:42: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] .PrivilegedExceptionAction<sun.misc.Unsafe>() {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/Bits.java:42: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] .PrivilegedExceptionAction<sun.misc.Unsafe>() {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/Bits.java:44: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] public sun.misc.Unsafe run() throws Exception {
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/Bits.java:46: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] .Unsafe.class.getDeclaredField("theUnsafe");
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/Bits.java:48: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] return (sun.misc.Unsafe) f.get(null);
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltcore/utils/Bits.java:60: warning: sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[javac] sun.misc.Unsafe unsafeTemp = null;
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltdb/jdbc/JDBC4Statement.java:777: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltdb/jdbc/JDBC4Statement.java:782: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltdb/jdbc/JDBC4ResultSet.java:1776: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltdb/jdbc/JDBC4ResultSet.java:1781: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltdb/parser/SQLLexer.java:688: cannot find symbol
[javac] symbol : method group(java.lang.String)
[javac] location: class java.util.regex.Matcher
[javac] String parentType = matcher.group("parenttype");
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltdb/parser/SQLLexer.java:689: cannot find symbol
[javac] symbol : method group(java.lang.String)
[javac] location: class java.util.regex.Matcher
[javac] String childType = matcher.group("childtype");
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltdb/utils/PosixAdvise.java:70: warning: sun.misc.SharedSecrets is internal proprietary API and may be removed in a future release
[javac] final long filedescriptor = SharedSecrets.getJavaIOFileDescriptorAccess().get(fd);
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltdb/utils/PosixAdvise.java:77: warning: sun.misc.SharedSecrets is internal proprietary API and may be removed in a future release
[javac] final long filedescriptor = SharedSecrets.getJavaIOFileDescriptorAccess().get(fd);
[javac] ^
[javac] /home/petr/WORKSPACE/voltdb-voltdb-5.1/obj/release/clientsrc/org/voltdb/utils/PosixAdvise.java:87: warning: sun.misc.SharedSecrets is internal proprietary API and may be removed in a future release
[javac] final long filedescriptor = SharedSecrets.getJavaIOFileDescriptorAccess().get(fd);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 8 errors
[javac] 64 warnings

BUILD FAILED
/home/petr/WORKSPACE/voltdb-voltdb-5.1/build.xml:955: The following error occurred while executing this line:
/home/petr/WORKSPACE/voltdb-voltdb-5.1/build-client.xml:306: The following error occurred while executing this line:
/home/petr/WORKSPACE/voltdb-voltdb-5.1/build-client.xml:31: Compile failed; see the compiler error output for details.

Total time: 31 seconds
jhugg
Apr 16, 2015
Can you give us a little bit of information about your environment?

What hardware?
What OS?
What JDK version?

Anything else that might be relevant.

Thanks.