I’m attempting to build the 1.0 version of JOGL (JSR-231) and am running into issues on linux (both a64 and x86)
I’ve tried using Ant 1.7 as well as Ant 1.6.5 and 1.6.3 and Antlr 2.7.7 and 2.7.5
I’ve noticed that if I repeat the build command it seems to get further along, and if I run it a 3rd time it completes successfully.
I set my PATH to include both Ant and Java, unset CLASSPATH and launch Ant from the jogl/make directory with this command
/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/install/unknown/share/ant/bin/ant --execdebug -Duser.home=/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231 linux.amd64
I get the following (abbreviated) output when trying to build JOGL on linux a64 (and similar messages on linux x86)
BUILD FAILED
/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/jogl/make/build.xml:1591: The following error occurred while executing this line:
/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/jogl/make/build.xml:1518: The following error occurred while executing this line:
/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/jogl/make/build.xml:496: The following error occurred while executing this line:
/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/gluegen/make/build.xml:121: The following error occurred while executing this line:
/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/gluegen/make/build.xml:94: ANTLR signaled an error: ANTLR Parser Generator Version 2.7.7 (20070414) 1989-2005
error: cannot find/copy importVocab file /mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/gluegen/build/gensrc/java/com/sun/gluegen/cgram/STDCTokenTypes.txt
The first time I run the build I see the following (abbreviated output):
antlr.jar.validate:
java.class.path.validate:
validate:
[mkdir] Created dir: /mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/gluegen/build/gensrc/java
[mkdir] Created dir: /mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/gluegen/build/classes
gluegen.build:
[mkdir] Created dir: /mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/gluegen/build/gensrc/java/com/sun/gluegen/cgram
[copy] Copying 5 files to /mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/gluegen/build/gensrc/java/com/sun/gluegen/cgram
generate.c.grammar:
Warning: Reference antlr.classpath has not been set at runtime, but was found during
build file parsing, attempting to resolve. Future versions of Ant may support
referencing ids defined in non-executed targets.
[antlr] ANTLR Parser Generator Version 2.7.7 (20070414) 1989-2005
...
generate.c.grammar.glib:
Warning: Reference antlr.classpath has not been set at runtime, but was found during
build file parsing, attempting to resolve. Future versions of Ant may support
referencing ids defined in non-executed targets.
[antlr] ANTLR Parser Generator Version 2.7.7 (20070414) 1989-2005
[antlr] error: cannot find/copy importVocab file /mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/gluegen/build/gensrc/java/com/sun/gluegen/cgram/STDCTokenTypes.txt
...
The second invocation gets further, but still fails when processing generate.c.grammar.glib:
...
generate.c.grammar.glib:
Warning: Reference antlr.classpath has not been set at runtime, but was found during
build file parsing, attempting to resolve. Future versions of Ant may support
referencing ids defined in non-executed targets.
[antlr] ANTLR Parser Generator Version 2.7.7 (20070414) 1989-2005
[antlr] warning: rule HeaderParser.declSpecifiers has different signature than GnuCTreeParser.declSpecifiers
[antlr] warning: rule HeaderParser.storageClassSpecifier has different signature than GnuCTreeParser.storageClassSpecifier
[antlr] warning: rule HeaderParser.functionStorageClassSpecifier has different signature than GnuCTreeParser.functionStorageClassSpecifier
[antlr] warning: rule HeaderParser.typeQualifier has different signature than GnuCTreeParser.typeQualifier
...
[antlr] warning: rule HeaderParser.parameterDeclaration has different signature than GnuCTreeParser.parameterDeclaration
[antlr] warning: rule HeaderParser.nonemptyAbstractDeclarator has different signature than GnuCTreeParser.nonemptyAbstractDeclarator
[antlr] error: cannot find/copy importVocab file
...
BUILD FAILED
/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/jogl/make/build.xml:1591: The following error occurred while executing this line:
/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/jogl/make/build.xml:1518: The following error occurred while executing this line:
/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/jogl/make/build.xml:496: The following error occurred while executing this line:
/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/gluegen/make/build.xml:135: The following error occurred while executing this line:
/mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/gluegen/make/build.xml:94: ANTLR signaled an error: ANTLR Parser Generator Version 2.7.7 (20070414) 1989-2005
warning: rule HeaderParser.declSpecifiers has different signature than GnuCTreeParser.declSpecifiers
warning: rule HeaderParser.storageClassSpecifier has different signature than GnuCTreeParser.storageClassSpecifier
warning: rule HeaderParser.functionStorageClassSpecifier has different signature than GnuCTreeParser.functionStorageClassSpecifier
warning: rule HeaderParser.typeQualifier has different signature than GnuCTreeParser.typeQualifier
...
warning: rule HeaderParser.parameterTypeList has different signature than GnuCTreeParser.parameterTypeList
warning: rule HeaderParser.parameterDeclaration has different signature than GnuCTreeParser.parameterDeclaration
warning: rule HeaderParser.nonemptyAbstractDeclarator has different signature than GnuCTreeParser.nonemptyAbstractDeclarator
error: cannot find/copy importVocab file /mathworks/devel/sandbox/rquist/Amake.3p-tmw/3p/derived/glnxa64/JSR-231/gluegen/build/gensrc/java/com/sun/gluegen/cgram/GnuCTreeParserTokenTypes.txt
...
The third time I run the command it completes successfully.
Any ideas?
Is there a “known good” combination of Ant, Antlr, etc to build the 1.0 version of JSR-231?
Thanks in advance