incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel Angel Martin junquera <mianmarjun.mailingl...@gmail.com>
Subject temporal solution to CASSANDRA-5543: BUILD FAILED at gen-cql2-grammar target
Date Fri, 27 Sep 2013 11:53:15 GMT
hi all:

Environment


   - apache-cassandra-2.0.1-src
   - EC2
      - Linux version 3.2.30-49.59.amzn1.x86_64 (mockbuild@gobi-build-31003)
      (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3)


When i try to build apache-cassandra-2.0.1-src in EC2 red had AMI, I  have
this error at  the target, *gen-cql2-grammar:*


gen-cql2-grammar:

    [echo] Building Grammar
/home/ec2-user/apache-cassandra/src/java/org/apache/cassandra/cql/Cql.g


….



 [java] warning(209):
/home/ec2-user/apache-cassandra/src/java/org/apache/cassandra/cql/Cql.g:638:1:
Multiple token rules can match input such as "'0'..'9'": INTEGER, FLOAT,
UUID

    [java]

    [java] As a result, token(s) FLOAT,UUID were disabled for that input

    [java] warning(209):
/home/ec2-user/apache-cassandra/src/java/org/apache/cassandra/cql/Cql.g:634:1:
Multiple token rules can match input such as "'I'": K_INSERT, K_IN,
K_INDEX, K_INTO, IDENT, COMPIDENT

    [java]

    [java] As a result, token(s) K_IN,K_INDEX,K_INTO,IDENT,COMPIDENT were
disabled for that input

    [java] warning(209):
/home/ec2-user/apache-cassandra/src/java/org/apache/cassandra/cql/Cql.g:634:1:
Multiple token rules can match input such as "{'R', 'r'}": K_REVERSED,
IDENT, COMPIDENT

    [java]

    [java] As a result, token(s) IDENT,COMPIDENT were disabled for that
input

    [java] warning(209):
/home/ec2-user/apache-cassandra/src/java/org/apache/cassandra/cql/Cql.g:634:1:
Multiple token rules can match input such as "'T'": K_LEVEL, K_TRUNCATE,
K_COLUMNFAMILY, K_TIMESTAMP, K_TTL, K_TYPE, IDENT, COMPIDENT

    [java]

    [java] As a result, token(s)
K_TRUNCATE,K_COLUMNFAMILY,K_TIMESTAMP,K_TTL,K_TYPE,IDENT,COMPIDENT were
disabled for that input

    [java] error(208):
/home/ec2-user/apache-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

BUILD FAILED

/home/ec2-user/apache-cassandra/build.xml:218: Java returned: 1





If I execute these targets in the next order first:



   - ant generate-cql-html
   - ant maven-ant-tasks-init

and then execute ant default target


   - ant



the project build succesfully.

Regards.




*note*:

I do not have this issue in my mac.




Miguel Angel Martín Junquera
Analyst Engineer.
miguelangel.martin@brainsins.com

Mime
View raw message