cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5543) Ant issues when building gen-cql2-grammar
Date Tue, 02 Jun 2015 21:00:51 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-5543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14569755#comment-14569755
] 

Antoine Levy-Lambert commented on CASSANDRA-5543:
-------------------------------------------------

the interesting part in the attachment is that :
{code}
     [java] error(208): /home/ubuntu/cassandra/src/java/org/apache/cassandra/cql/Cql.g:654:1:
The following token definitions can never be matched because prior tokens match the same input:
T__93,T__94,T__97,T__98,T__101,T__105,T__107,K_WITH,K_USING,K_USE,K_FIRST,K_COUNT,K_SET,K_APPLY,K_BATCH,K_TRUNCATE,K_IN,K_CREATE,K_KEYSPACE,K_COLUMNFAMILY,K_INDEX,K_ON,K_DROP,K_INTO,K_TIMESTAMP,K_TTL,K_ALTER,K_ADD,K_TYPE,RANGEOP,FLOAT,COMPIDENT,UUID,MULTILINE_COMMENT
{code}

I do not know antlr (I think this is some antlr generation). Someone should study this Cql.g
to see whether it indeed does not comply with antlr's expectations and what to do about that.
The stack trace above is just saying something like "ant was executing an external java program
with the java task, and the external java program failed"
You could change the build file to make the <java/> invocation not fail on error but
this might be hiding the problem.

> 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
>         Attachments: 5543-ant.log
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message