incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Morton <aa...@thelastpickle.com>
Subject Re: temporal solution to CASSANDRA-5543: BUILD FAILED at gen-cql2-grammar target
Date Wed, 02 Oct 2013 03:17:02 GMT
> In the build file,  I see that cassandra uses the jar lib at the ${build.lib}  folder,
in this case antlr-3.2.jar
my bad. 

> >       • ant generate-cql-html
> >       • ant maven-ant-tasks-init
> > and then  execute ant default target
> >
> >
> >       • ant
Does it work if you use 

ant clean
ant build
ant artifacts 

Cheers

-----------------
Aaron Morton
New Zealand
@aaronmorton

Co-Founder & Principal Consultant
Apache Cassandra Consulting
http://www.thelastpickle.com

On 30/09/2013, at 11:10 PM, Miguel Angel Martin junquera <mianmarjun.mailinglist@gmail.com>
wrote:

> hi:
> 
> 
> 
> is that mean that antlr-3.2.jar is not the correct version?
> 
> what is the correct version?
> 
> In the build file,  I see that cassandra uses the jar lib at the ${build.lib}  folder,
in this case antlr-3.2.jar
> 
> 
> ...
>  
>  <target name="gen-cql2-grammar" depends="check-gen-cql2-grammar" unless="cql2current">
>       <echo>Building Grammar ${build.src.java}/org/apache/cassandra/cql/Cql.g 
...</echo>
>       <java classname="org.antlr.Tool"
>             classpath="${build.lib}/antlr-3.2.jar"
>             fork="true"
>             failonerror="true">
>          <arg value="${build.src.java}/org/apache/cassandra/cql/Cql.g" />
>          <arg value="-fo" />
>          <arg value="${build.src.gen-java}/org/apache/cassandra/cql/" />
>       </java>
>     </target>
> 
> ...
> 
> 
> 
> thanks in advance
> 
> 
> 
> Miguel Angel Martín Junquera
> Analyst Engineer.
> miguelangel.martin@brainsins.com
> 
> 
> 
> 2013/9/30 Aaron Morton <aaron@thelastpickle.com>
> It's an error in the antlr compilation, check the antlr versions.
> 
> Cheers
> 
> -----------------
> Aaron Morton
> New Zealand
> @aaronmorton
> 
> Co-Founder & Principal Consultant
> Apache Cassandra Consulting
> http://www.thelastpickle.com
> 
> On 27/09/2013, at 11:53 PM, Miguel Angel Martin junquera <mianmarjun.mailinglist@gmail.com>
wrote:
> 
> >
> >
> >
> >
> > 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