This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 107378 - Cannot build cnd - antlr "Invalid rule option"
Summary: Cannot build cnd - antlr "Invalid rule option"
Status: RESOLVED DUPLICATE of bug 109212
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-20 09:38 UTC by fordfrog
Modified: 2007-08-23 16:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fordfrog 2007-06-20 09:38:48 UTC
When compiling cnd, I get this:

antlr:
    [mkdir] Created dir:
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/generated
    [antlr] ANTLR Parser Generator   Version 2.7.7 (20070428)   1989-2005
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:499:26:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:500:26:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:501:26:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:510:19:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:518:18:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:519:19:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:520:19:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:521:19:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:522:19:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:524:18:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:526:24:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:536:22:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:540:21:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:544:21:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:548:27:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:553:20:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:573:28:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:577:23:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:591:18:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:593:15:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:595:25:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:601:23:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:608:22:
Invalid rule option: constText
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:615:21:
Invalid rule option: checkSkip
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:727:30:
Invalid subrule option: combineChars
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:800:38:
Invalid subrule option: combineChars
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:802:38:
Invalid subrule option: combineChars
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:804:38:
Invalid subrule option: combineChars
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:882:27:
Invalid subrule option: combineChars
    [antlr]
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g:883:27:
Invalid subrule option: combineChars
    [antlr] Exiting due to errors.
  [nbmerge] Failed to build target: all-cnd/apt

BUILD FAILED
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/nbbuild/build.xml:654: The following
error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/nbbuild/build.xml:649: The following
error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/nbbuild/build.xml:699: The following
error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.0_alpha10_pre20070619185104/work/netbeans-src/cnd/apt/build.xml:45: ANTLR returned: 1
Comment 1 Alexander Simon 2007-06-20 10:01:51 UTC
CND uses own (patched) ANTLR. Log should print following ANTLR version:
Created dir: /export/home/as204739/src/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/generated
ANTLR Parser Generator   Version Sun-2.7.7(NoEx) (2006-01-29)   1989-2005
ANTLR Parser Generator   Version Sun-2.7.7(NoEx) (2006-01-29)   1989-2005
...
ANTLR located under cnd/antlr folder
Comment 2 fordfrog 2007-06-20 10:54:08 UTC
I'm really not sure what to do about it. Does it need this?
http://www.netbeans.org/source/browse/antlr/

I'm trying to package nb 6.0 for Gentoo Linux distribution and this is blocker for me now.
Comment 3 Alexander Simon 2007-06-20 11:18:22 UTC
try
http://www.netbeans.org/source/browse/cnd/antlr/
for cnd build.
Comment 4 fordfrog 2007-06-20 12:55:10 UTC
Thanks. I packaged that antlr separately and put that on ant's cp (and ant-antlr too as nb antlr does not contain antlr
task definition) and now it compiles.

(I compiled just 'ide' and 'cnd' clusters (the needed deps from cluster.properties) and now cannot run netbeans because
it cannot find some license class.)
Comment 5 Vladimir Voskresensky 2007-08-23 16:23:19 UTC

*** This issue has been marked as a duplicate of 109212 ***