Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190564 - [java-experimental] dev-java/gant ebuild failure
Summary: [java-experimental] dev-java/gant ebuild failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-28 19:48 UTC by corey
Modified: 2009-07-29 12:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description corey 2007-08-28 19:48:02 UTC
Unable to emerge the gant-0.3.0.ebuild from the java overlay:

compile:
  ...
  [groovyc] Can't find/access AST Node typeorg.codehaus.groovy.antlr.GroovySourceAST

BUILD FAILED
/var/tmp/portage/dev-java/gant-0.3.0/work/gant-0.3.0/build.xml:55: BUG! exception in phase 'parsing' in source unit '/var/tmp/portage/dev-java/gant-0.3.0/work/gant-0.3.0/source/gant/Gant.groovy' antlr.CommonAST cannot be cast to org.codehaus.groovy.antlr.GroovySourceAST


 * ERROR: dev-java/gant-0.3.0 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   gant-0.3.0.ebuild, line 43:   Called eant '-Dgentoo.classpath=/usr/share/junit/lib/junit.jar' '-Dgentoo.jars=/usr/share/asm-2.2/lib/asm-commons.jar,/usr/share/antlr/lib/antlr.jar,/usr/share/asm-2.2/lib/asm-util.jar,/usr/share/asm-2.2/lib/asm-attrs.jar,/usr/share/asm-2.2/lib/asm.jar,/usr/share/asm-2.2/lib/asm-analysis.jar,/usr/share/asm-2.2/lib/asm-xml.jar,/usr/share/groovy-1/lib/groovy.jar,/usr/share/asm-2.2/lib/asm-tree.jar'



GENTOO_VM=sun-jdk-1.6  CLASSPATH="." JAVA_HOME="/opt/sun-jdk-1.6.0.02"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"

Portage 2.1.3.6 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 28 Aug 2007 18:00:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
Comment 1 Jean-Noël Rivasseau (RETIRED) gentoo-dev 2007-08-29 08:37:18 UTC
I cannot reproduce on my amd64 machine with Sun JDK 1.5, where it emerges perfectly...

I noticed you used JDK 1.6, could you try with JDK 1.5?
Comment 2 corey 2007-08-29 09:34:29 UTC


Tried again w/ Sun JDK 1.5.0.12:


>>> Emerging (1 of 1) dev-java/gant-0.3.0 to /
<snip>
 * Using: sun-jdk-1.5
<snip>
compile:
<snip>
  [groovyc] Can't find/access AST Node typeorg.codehaus.groovy.antlr.GroovySourceAST

BUILD FAILED
/var/tmp/portage/dev-java/gant-0.3.0/work/gant-0.3.0/build.xml:55: BUG! exception in phase 'parsing' in source unit '/var/tmp/portage/dev-java/gant-0.3.0/work/gant-0.3.0/source/gant/Gant.groovy' antlr.CommonAST


Even un-merged everything, and tried again from scratch - same thing.

Found this:

http://jira.codehaus.org/browse/GROOVY-991

... appears to be related.

What version of antlr are you using?

I've got:

dev-java/antlr-2.7.7


Comment 3 Jean-Noël Rivasseau (RETIRED) gentoo-dev 2007-08-29 10:15:57 UTC
OK I found the problem and was even able to reproduce it.

Just put JAVA_PKG_STRICT=1 on your make.conf and try again - it will work.

This was due to a conflicting version of antlr pulled in by ANT_TASKS.
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-08-29 10:22:55 UTC
You can fix the ebuild by adding an explicit 'ANT_TASKS=none eant foo'

Comment 5 corey 2007-08-29 10:38:52 UTC
Thanks guys!  Works great now, using sun-jdk 1.6 also.

--- gant-0.3.0.ebuild.orig      2007-08-29 03:41:37.000000000 -0700
+++ gant-0.3.0.ebuild   2007-08-29 03:40:47.000000000 -0700
@@ -40,7 +40,7 @@
 src_compile() {
        gentoo_jars="$(java-pkg_getjars asm-2.2,groovy-1,antlr)"

-       eant -Dgentoo.classpath=`java-pkg_getjars --build-only junit` "-Dgentoo.jars=${gentoo_jars//:/,}"
+       ANT_TASKS="none" eant -Dgentoo.classpath=`java-pkg_getjars --build-only junit` "-Dgentoo.jars=${gentoo_jars//:/,}"
 }

 src_install() {
Comment 6 Alistair Bush (RETIRED) gentoo-dev 2009-07-29 12:45:48 UTC
Bumped to 1.6.1.  please reopen if you can reproduce still.