cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arya Goudarzi <gouda...@gmail.com>
Subject Re: cannot build 1.1.2 from source
Date Tue, 17 Jul 2012 22:26:55 GMT
Thanks for your suggestion however, I am still unable to build 1.1.2.
I have found a version of antlr and libantlr installed by apt which
then I removed them, but that did not resolve the issue. After some
digging in Google, I found some people having similar problems with
antlr and they had suggested to increate the conversiontimeout, so I
added -Xconversiontimeout 200000 to build.xml as antlr parameter for
all 3 antlr related targets and that still didn't work. I have added
-d to ant and I can see it is using the provided jar, but no luck. Any
more tips would be appreciated.

Here is the antlr command from the debug output of ant:

Execute:Java13CommandLauncher: Executing
'/opt/java/64/jdk1.6.0_32/jre/bin/java' with arguments:
'-classpath'
'/home/arya/workspace/cassandra-1.1.2/lib/antlr-3.2.jar'
'org.antlr.Tool'
'/home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g'
'-fo'
'/home/arya/workspace/cassandra-1.1.2/src/gen-java/org/apache/cassandra/cli/'
'-Xconversiontimeout 200000'

On Tue, Jul 10, 2012 at 5:31 AM, Sylvain Lebresne <sylvain@datastax.com> wrote:
> I would check if you don't have a version of antlr install on you
> system that takes
> precedence over the one distributed with C* and happens to not be compatible.
>
> Because I don't remember there having been much change to the Cli between 1.1.1
> and 1.1.2 and the grammar nobody has had that problem so far.
>
> --
> Sylvain
>
> On Mon, Jul 9, 2012 at 8:07 PM, Arya Goudarzi <goudarzi@gmail.com> wrote:
>> Thanks for your response. Yes. I do that every time before I build.
>>
>> On Sun, Jul 8, 2012 at 11:51 AM, aaron morton <aaron@thelastpickle.com> wrote:
>>> Did you try running ant clean first ?
>>>
>>> Cheers
>>>
>>> -----------------
>>> Aaron Morton
>>> Freelance Developer
>>> @aaronmorton
>>> http://www.thelastpickle.com
>>>
>>> On 8/07/2012, at 1:57 PM, Arya Goudarzi wrote:
>>>
>>> Hi Fellows,
>>>
>>> I used to be able to build cassandra 1.1 up to 1.1.1 with the same set
>>> of procedures by running ant on the same machine, but now the stuff
>>> associated with gen-cli-grammar breaks the build. Any advice will be
>>> greatly appreciated.
>>>
>>> -Arya
>>>
>>> Source:
>>> source tarball for 1.1.2 downloaded from one of the mirrors in
>>> cassandra.apache.org
>>> OS:
>>> Ubuntu 10.04 Precise 64bit
>>> Ant:
>>> Apache Ant(TM) version 1.8.2 compiled on December 3 2011
>>> Maven:
>>> Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000)
>>> Java:
>>> java version "1.6.0_32"
>>> Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
>>> Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode)
>>>
>>>
>>>
>>> Buildfile: /home/arya/workspace/cassandra-1.1.2/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/arya/workspace/cassandra-1.1.2/build/build-dependencies.xml
>>>
>>> init:
>>>    [mkdir] Created dir:
>>> /home/arya/workspace/cassandra-1.1.2/build/classes/main
>>>    [mkdir] Created dir:
>>> /home/arya/workspace/cassandra-1.1.2/build/classes/thrift
>>>    [mkdir] Created dir: /home/arya/workspace/cassandra-1.1.2/build/test/lib
>>>    [mkdir] Created dir:
>>> /home/arya/workspace/cassandra-1.1.2/build/test/classes
>>>    [mkdir] Created dir: /home/arya/workspace/cassandra-1.1.2/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/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g
>>> ....
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:697:1:
>>> Multiple token rules can match input such as "'-'":
>>> IntegerNegativeLiteral, COMMENT
>>>     [java]
>>>     [java] As a result, token(s) COMMENT were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'I'": INCR, INDEX,
>>> Identifier
>>>     [java]
>>>     [java] As a result, token(s) INDEX,Identifier were disabled for that
>>> input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'0'..'9'": IP_ADDRESS,
>>> IntegerPositiveLiteral, DoubleLiteral, Identifier
>>>     [java]
>>>     [java] As a result, token(s)
>>> IntegerPositiveLiteral,DoubleLiteral,Identifier were disabled for that
>>> input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'T'": TRUNCATE, TTL,
>>> Identifier
>>>     [java]
>>>     [java] As a result, token(s) TTL,Identifier were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'A'": T__109,
>>> API_VERSION, AND, ASSUME, Identifier
>>>     [java]
>>>     [java] As a result, token(s) API_VERSION,AND,ASSUME,Identifier
>>> were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'E'": EXIT, Identifier
>>>     [java]
>>>     [java] As a result, token(s) Identifier were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'L'": LIST, LIMIT,
>>> Identifier
>>>     [java]
>>>     [java] As a result, token(s) LIMIT,Identifier were disabled for that
>>> input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'B'": BY, Identifier
>>>     [java]
>>>     [java] As a result, token(s) Identifier were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'O'": ON, Identifier
>>>     [java]
>>>     [java] As a result, token(s) Identifier were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'K'": KEYSPACE,
>>> KEYSPACES, Identifier
>>>     [java]
>>>     [java] As a result, token(s) KEYSPACES,Identifier were disabled
>>> for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:38:1:
>>> Multiple token rules can match input such as "'<'": T__113, T__115
>>>     [java]
>>>     [java] As a result, token(s) T__115 were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:693:1:
>>> Multiple token rules can match input such as "' '": DoubleLiteral, WS
>>>     [java]
>>>     [java] As a result, token(s) WS were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'Q'": QUIT, Identifier
>>>     [java]
>>>     [java] As a result, token(s) Identifier were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'S'": SET, SHOW, SCHEMA,
>>> Identifier
>>>     [java]
>>>     [java] As a result, token(s) SHOW,SCHEMA,Identifier were disabled
>>> for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:697:1:
>>> Multiple token rules can match input such as "'/'": T__105, COMMENT
>>>     [java]
>>>     [java] As a result, token(s) COMMENT were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'R'": T__124, Identifier
>>>     [java]
>>>     [java] As a result, token(s) Identifier were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:37:1:
>>> Multiple token rules can match input such as "'>'": T__112, T__114
>>>     [java]
>>>     [java] As a result, token(s) T__114 were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'H'": HELP, Identifier
>>>     [java]
>>>     [java] As a result, token(s) Identifier were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'C'": T__106, T__107,
>>> T__123, CONFIG, CONNECT, COUNT, CREATE, COLUMN, CONSISTENCYLEVEL,
>>> Identifier
>>>     [java]
>>>     [java] As a result, token(s)
>>> T__107,T__123,CONFIG,CONNECT,COUNT,CREATE,COLUMN,CONSISTENCYLEVEL,Identifier
>>> were disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'W'": T__110, WITH,
>>> Identifier
>>>     [java]
>>>     [java] As a result, token(s) WITH,Identifier were disabled for that
>>> input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'F'": FILE, FAMILY,
>>> Identifier
>>>     [java]
>>>     [java] As a result, token(s) FAMILY,Identifier were disabled for that
>>> input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'U'": USE, UPDATE,
>>> Identifier
>>>     [java]
>>>     [java] As a result, token(s) UPDATE,Identifier were disabled for that
>>> input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'D'": DEL, DESCRIBE,
>>> DECR, DROP, Identifier
>>>     [java]
>>>     [java] As a result, token(s) DESCRIBE,DECR,DROP,Identifier were
>>> disabled for that input
>>>     [java] warning(209):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:628:1:
>>> Multiple token rules can match input such as "'G'": GET, Identifier
>>>     [java]
>>>     [java] As a result, token(s) Identifier were disabled for that input
>>>     [java] error(208):
>>> /home/arya/workspace/cassandra-1.1.2/src/java/org/apache/cassandra/cli/Cli.g:697:1:
>>> The following token definitions can never be matched because prior
>>> tokens match the same input:
>>> T__107,T__114,T__115,T__123,CONFIG,CONNECT,COUNT,DESCRIBE,DECR,SHOW,KEYSPACES,API_VERSION,CREATE,DROP,COLUMN,FAMILY,WITH,AND,UPDATE,LIMIT,ASSUME,TTL,CONSISTENCYLEVEL,INDEX,SCHEMA,IntegerPositiveLiteral,COMMENT
>>>
>>> BUILD FAILED
>>> /home/arya/workspace/cassandra-1.1.2/build.xml:182: Java returned: 1
>>>
>>> Total time: 55 seconds
>>>
>>>

Mime
View raw message