Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284399 - Jaxme-0.3.1-r4 fails to build "eant failed" with kaffe
Summary: Jaxme-0.3.1-r4 fails to build "eant failed" with kaffe
Status: RESOLVED WONTFIX
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: 309459
  Show dependency tree
 
Reported: 2009-09-10 04:05 UTC by bugzilla.5.kyoo
Modified: 2010-03-15 08:25 UTC (History)
3 users (show)

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


Attachments
depgraph showing what pulls in kaffe (depgraph.txt,2.68 KB, text/plain)
2009-12-22 21:04 UTC, Joe Harvell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugzilla.5.kyoo 2009-09-10 04:05:40 UTC
When I attempt to build jaxme-0.3.1-r4, it dies, saying "eant failed"

build output:
>>> Emerging (23 of 31) dev-java/jaxme-0.3.1-r4
 * ws-jaxme-0.3.1-src.tar.gz RMD160 SHA1 SHA256 size ;-) ...             [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * Using: kaffe
>>> Unpacking source...
>>> Unpacking ws-jaxme-0.3.1-src.tar.gz to /var/tmp/portage/dev-java/jaxme-0.3.1-r4/work
tar: A lone zero block at 14573
 * Applying jaxme-0.3.1-gentoo.patch ...                                  [ ok ]
 * Applying jaxme-0.3.1-base64.diff ...                                   [ ok ]
removed `src/documentation/lib/jimi-1.0.jar'
removed `ant-1.5.4.jar'
removed `junit.jar'
removed `log4j-1.2.8.jar'
removed `xercesImpl.jar'
removed `xml-apis.jar'
removed `xmldb-api-20021118.jar'
removed `xmldb-api-sdk-20021118.jar'
Rewriting attributes
Rewriting build.xml
Rewriting attributes
Rewriting buildapi.xml
Rewriting attributes
Rewriting buildjm.xml
Rewriting attributes
Rewriting buildjs.xml
Rewriting attributes
Rewriting buildpm.xml
Rewriting attributes
Rewriting buildxs.xml
Rewriting attributes
Rewriting src/webapp/build.xml
Rewriting attributes
Rewriting src/test/jaxb/build.xml
>>> Source unpacked in /var/tmp/portage/dev-java/jaxme-0.3.1-r4/work
>>> Compiling source in /var/tmp/portage/dev-java/jaxme-0.3.1-r4/work/ws-jaxme-0.3.1 ...
 * Disabling all optional ANT_TASKS
java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher not found in java.lang.ClassLoader$1{urls=[file:/usr/share/ant-core/lib/ant-launcher.jar/,file:/opt/kaffe-1.1.7/lib/tools.jar/], parent=null}
 * 
 * ERROR: dev-java/jaxme-0.3.1-r4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4252:  Called java-pkg-2_src_compile
 *             environment, line 2321:  Called eant 'jar' '-f' 'build.xml' '-Dbuild.apidocs=dist/doc/api'
 *             environment, line  915:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *  The die message:
 *   eant failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/jaxme-0.3.1-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/jaxme-0.3.1-r4/temp/environment'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=kaffe  CLASSPATH="" JAVA_HOME="/opt/kaffe-1.1.7"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"

emerge --info:
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-tuxonice-r5 i686)
=================================================================
System uname: Linux-2.6.30-tuxonice-r5-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-1.12.11.1
Timestamp of tree: Sun, 06 Sep 2009 18:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
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/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/mnt/vurstfine/distfiles"
FEATURES="autoclean distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://gentoo.llarian.net/pub/gentoo ftp://mirror.datapipe.net/gentoo http://mirror.mcs.anl.gov/pub/gentoo/ ftp://mirror.fslutd.org/linux/distributions/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://gentoo.mirrors.pair.com "
LANG="C"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/java-overlay /usr/local/portage/layman/java-gcj-overlay /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aac acl acpi aim alsa avahi berkdb bzip2 cdr cli cracklib crypt cups dri dvb dvd dvdr dvdread encode flac fortran ftp gdbm gif gimp gnome gpm gstreamer gtk hal iconv ipod ipv6 isdnlog java javascript jpeg jpeg2k lm_sensors mad matroska md5sum midi mmp3 mmx mp2 mp3 mpeg mplayer msn mudflap musicbrainz ncurses nls nocd nptl nptlonly nvidia ogg openal opengl openmp pam pcre pdf perl pic png pppd python quicktime readline reflection rss sdl session spell spl sse sse2 sse3 ssl svg sysfs tcpd theora timidity truetype unicode usb vcd videos vorbis win32codecs x86 xine xorg xscreensaver xulrunner xvid yahoo zeroconf zlib" ALSA_CARDS="ca0106 ac97" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always

Steps to Reproduce:
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-11-07 17:39:25 UTC
Please try some other jdk than kaffe, which is known to work badly
Comment 2 renato gallo 2009-12-04 20:41:08 UTC
(In reply to comment #1)
> Please try some other jdk than kaffe, which is known to work badly
> 

what is pulling in kaffe when I have selected another vm ?
# eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea6-bin
  [2]   kaffe
  [3]   sun-jdk-1.6  system-vm
  [4]   sun-jre-bin-1.6
Comment 3 Joe Harvell 2009-12-22 20:53:07 UTC
I think the problem is the extra forward slash at the end of each component of the "urls."

java.lang.ClassLoader$1{urls=[file:/usr/share/ant-core/lib/ant-launcher.jar/,file:/opt/kaffe-1.1.7/lib/tools.jar/],
parent=null}
Comment 4 Joe Harvell 2009-12-22 20:55:48 UTC
I have the same problem with dev-java/jdbc-mysql-5.1.10, including the unwanted dependency on kaffe.  When I uninstall kaffe and then do an emerge -1av =dev-java/jdbc-mysql-5.1.10, it pulls in kaffe.
Comment 5 Joe Harvell 2009-12-22 21:03:48 UTC
It looks like the reason kaffe is getting pulled in is the following variable from the ebuild.

JAVA_PKG_NV_DEPEND="
        || ( =virtual/jdk-1.5* =virtual/jdk-1.4* )"
Comment 6 Joe Harvell 2009-12-22 21:04:50 UTC
Created attachment 213813 [details]
depgraph showing what pulls in kaffe

equery command is: equery depgraph --depth=2 =dev-java/jdbc-mysql-5.1.10
Comment 7 Dominik "Socek" Długajczyk 2010-01-13 21:06:57 UTC
The sun-jdk wont be pulled down beacouse of the license. When I do this:
echo "dev-java/sun-jdk dlj-1.1" >> /etc/portage/package.license 
everything goes ok without the "kaffe" package.
Can anybody else check it?
Comment 8 Alistair Bush (RETIRED) gentoo-dev 2010-03-15 08:25:34 UTC
kaffe is package masked for removal.  closing as wontfix.