[ https://issues.apache.org/jira/browse/CASSANDRA-5543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13736052#comment-13736052 ]
Dave Brosius commented on CASSANDRA-5543: ----------------------------------------- so... ant realclean ant is supposed to fail? any idea how you get it to fail? > Ant issues when building gen-cql2-grammar > ----------------------------------------- > > Key: CASSANDRA-5543 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5543 > Project: Cassandra > Issue Type: Bug > Affects Versions: 1.2.3 > Reporter: Joaquin Casares > Assignee: Dave Brosius > Priority: Trivial > > Below are the commands and outputs that were returned. > The first `ant` command fails on gen-cql2-grammar, but if I don't run `ant > realclean` then it works fine after a second pass. > {CODE} > ubuntu@ip-10-196-153-29:~/.ccm/repository/1.2.3$ ant realclean > Buildfile: /home/ubuntu/.ccm/repository/1.2.3/build.xml > clean: > [delete] Deleting directory /home/ubuntu/.ccm/repository/1.2.3/build/test > [delete] Deleting directory > /home/ubuntu/.ccm/repository/1.2.3/build/classes > [delete] Deleting directory /home/ubuntu/.ccm/repository/1.2.3/src/gen-java > [delete] Deleting: /home/ubuntu/.ccm/repository/1.2.3/build/internode.avpr > realclean: > [delete] Deleting directory /home/ubuntu/.ccm/repository/1.2.3/build > BUILD SUCCESSFUL > Total time: 0 seconds > {CODE} > {CODE} > ubuntu@ip-10-196-153-29:~/.ccm/repository/1.2.3$ ant > Buildfile: /home/ubuntu/.ccm/repository/1.2.3/build.xml > maven-ant-tasks-localrepo: > maven-ant-tasks-download: > [echo] Downloading Maven ANT Tasks... > [mkdir] Created dir: /home/ubuntu/.ccm/repository/1.2.3/build > [get] Getting: > http://repo2.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar > [get] To: > /home/ubuntu/.ccm/repository/1.2.3/build/maven-ant-tasks-2.1.3.jar > maven-ant-tasks-init: > [mkdir] Created dir: /home/ubuntu/.ccm/repository/1.2.3/build/lib > maven-declare-dependencies: > maven-ant-tasks-retrieve-build: > [artifact:dependencies] Downloading: asm/asm/3.2/asm-3.2-sources.jar from > repository central at http://repo1.maven.org/maven2 > .... > [artifact:dependencies] [INFO] Unable to find resource > 'hsqldb:hsqldb:java-source:sources:1.8.0.10' in repository java.net2 > (http://download.java.net/maven/2) > [artifact:dependencies] Building ant file: > /home/ubuntu/.ccm/repository/1.2.3/build/build-dependencies.xml > [copy] Copying 45 files to > /home/ubuntu/.ccm/repository/1.2.3/build/lib/jars > [copy] Copying 35 files to > /home/ubuntu/.ccm/repository/1.2.3/build/lib/sources > init: > [mkdir] Created dir: /home/ubuntu/.ccm/repository/1.2.3/build/classes/main > [mkdir] Created dir: > /home/ubuntu/.ccm/repository/1.2.3/build/classes/thrift > [mkdir] Created dir: /home/ubuntu/.ccm/repository/1.2.3/build/test/lib > [mkdir] Created dir: /home/ubuntu/.ccm/repository/1.2.3/build/test/classes > [mkdir] Created dir: /home/ubuntu/.ccm/repository/1.2.3/src/gen-java > check-avro-generate: > avro-interface-generate-internode: > [echo] Generating Avro internode code... > avro-generate: > build-subprojects: > check-gen-cli-grammar: > gen-cli-grammar: > [echo] Building Grammar > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cli/Cli.g > .... > check-gen-cql2-grammar: > gen-cql2-grammar: > [echo] Building Grammar > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cql/Cql.g > ... > [java] warning(200): > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cql/Cql.g:479:20: > Decision can match input such as "IDENT" using multiple alternatives: 1, 2 > [java] As a result, alternative(s) 2 were disabled for that input > [java] warning(200): > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cql/Cql.g:479:20: > Decision can match input such as "K_KEY" using multiple alternatives: 1, 2 > [java] As a result, alternative(s) 2 were disabled for that input > [java] warning(200): > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cql/Cql.g:479:20: > Decision can match input such as "QMARK" using multiple alternatives: 1, 2 > [java] As a result, alternative(s) 2 were disabled for that input > [java] warning(200): > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cql/Cql.g:479:20: > Decision can match input such as "FLOAT" using multiple alternatives: 1, 2 > [java] As a result, alternative(s) 2 were disabled for that input > [java] warning(200): > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cql/Cql.g:479:20: > Decision can match input such as "STRING_LITERAL" using multiple > alternatives: 1, 2 > [java] As a result, alternative(s) 2 were disabled for that input > [java] warning(200): > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cql/Cql.g:479:20: > Decision can match input such as "INTEGER" using multiple alternatives: 1, 2 > [java] As a result, alternative(s) 2 were disabled for that input > [java] warning(200): > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cql/Cql.g:479:20: > Decision can match input such as "UUID" using multiple alternatives: 1, 2 > [java] As a result, alternative(s) 2 were disabled for that input > [java] error(201): > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cql/Cql.g:479:20: > The following alternatives can never be matched: 2 > [java] > BUILD FAILED > /home/ubuntu/.ccm/repository/1.2.3/build.xml:208: Java returned: 1 > Total time: 1 minute 29 seconds > {CODE} > {CODE} > ubuntu@ip-10-196-153-29:~/.ccm/repository/1.2.3$ ant > Buildfile: /home/ubuntu/.ccm/repository/1.2.3/build.xml > maven-ant-tasks-localrepo: > maven-ant-tasks-download: > maven-ant-tasks-init: > maven-declare-dependencies: > maven-ant-tasks-retrieve-build: > init-dependencies: > [echo] Loading dependency paths from file: > /home/ubuntu/.ccm/repository/1.2.3/build/build-dependencies.xml > init: > check-avro-generate: > avro-interface-generate-internode: > avro-generate: > build-subprojects: > check-gen-cli-grammar: > gen-cli-grammar: > check-gen-cql2-grammar: > gen-cql2-grammar: > [echo] Building Grammar > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cql/Cql.g > ... > check-gen-cql3-grammar: > gen-cql3-grammar: > [echo] Building Grammar > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/cql3/Cql.g > ... > build-project: > [echo] apache-cassandra: /home/ubuntu/.ccm/repository/1.2.3/build.xml > [javac] Compiling 41 source files to > /home/ubuntu/.ccm/repository/1.2.3/build/classes/thrift > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] Compiling 736 source files to > /home/ubuntu/.ccm/repository/1.2.3/build/classes/main > [javac] > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/io/util/Memory.java:20: > warning: sun.misc.Unsafe is internal proprietary API and may be removed in a > future release > [javac] import sun.misc.Unsafe; > [javac] ^ > [javac] > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/io/util/Memory.java:29: > warning: sun.misc.Unsafe is internal proprietary API and may be removed in a > future release > [javac] private static final Unsafe unsafe; > [javac] ^ > [javac] > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/utils/FastByteComparisons.java:25: > warning: sun.misc.Unsafe is internal proprietary API and may be removed in a > future release > [javac] import sun.misc.Unsafe; > [javac] ^ > [javac] > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/utils/FastByteComparisons.java:114: > warning: sun.misc.Unsafe is internal proprietary API and may be removed in a > future release > [javac] static final Unsafe theUnsafe; > [javac] ^ > [javac] > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/io/util/Memory.java:35: > warning: sun.misc.Unsafe is internal proprietary API and may be removed in a > future release > [javac] Field field = > sun.misc.Unsafe.class.getDeclaredField("theUnsafe"); > [javac] ^ > [javac] > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/io/util/Memory.java:37: > warning: sun.misc.Unsafe is internal proprietary API and may be removed in a > future release > [javac] unsafe = (sun.misc.Unsafe) field.get(null); > [javac] ^ > [javac] > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/utils/FastByteComparisons.java:120: > warning: sun.misc.Unsafe is internal proprietary API and may be removed in a > future release > [javac] theUnsafe = (Unsafe) AccessController.doPrivileged( > [javac] ^ > [javac] > /home/ubuntu/.ccm/repository/1.2.3/src/java/org/apache/cassandra/utils/FastByteComparisons.java:125: > warning: sun.misc.Unsafe is internal proprietary API and may be removed in a > future release > [javac] Field f = > Unsafe.class.getDeclaredField("theUnsafe"); > [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 warnings > [copy] Copying 2 files to > /home/ubuntu/.ccm/repository/1.2.3/build/classes/main > createVersionPropFile: > [propertyfile] Creating new property file: > /home/ubuntu/.ccm/repository/1.2.3/build/classes/main/org/apache/cassandra/config/version.properties > build: > build-test: > [javac] Compiling 155 source files to > /home/ubuntu/.ccm/repository/1.2.3/build/test/classes > [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. > [copy] Copying 14 files to > /home/ubuntu/.ccm/repository/1.2.3/build/test/classes > stress-build: > [mkdir] Created dir: > /home/ubuntu/.ccm/repository/1.2.3/build/classes/stress > [javac] Compiling 22 source files to > /home/ubuntu/.ccm/repository/1.2.3/build/classes/stress > jar: > [mkdir] Created dir: > /home/ubuntu/.ccm/repository/1.2.3/build/classes/main/META-INF > [mkdir] Created dir: > /home/ubuntu/.ccm/repository/1.2.3/build/classes/thrift/META-INF > [copy] Copying 1 file to > /home/ubuntu/.ccm/repository/1.2.3/build/classes/main/META-INF > [copy] Copying 1 file to > /home/ubuntu/.ccm/repository/1.2.3/build/classes/thrift/META-INF > [copy] Copying 1 file to > /home/ubuntu/.ccm/repository/1.2.3/build/classes/main/META-INF > [copy] Copying 1 file to > /home/ubuntu/.ccm/repository/1.2.3/build/classes/thrift/META-INF > [jar] Building jar: > /home/ubuntu/.ccm/repository/1.2.3/build/apache-cassandra-thrift-1.2.3-SNAPSHOT.jar > [jar] Building jar: > /home/ubuntu/.ccm/repository/1.2.3/build/apache-cassandra-1.2.3-SNAPSHOT.jar > [jar] Building jar: > /home/ubuntu/.ccm/repository/1.2.3/build/apache-cassandra-clientutil-1.2.3-SNAPSHOT.jar > [mkdir] Created dir: > /home/ubuntu/.ccm/repository/1.2.3/build/classes/stress/META-INF > [mkdir] Created dir: /home/ubuntu/.ccm/repository/1.2.3/build/tools/lib > [jar] Building jar: > /home/ubuntu/.ccm/repository/1.2.3/build/tools/lib/stress.jar > BUILD SUCCESSFUL > Total time: 4 minutes 48 seconds > {CODE} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira