User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.2 (like Gecko) Build Identifier: I tried to emerge ant-core-1.6.5-r14 after switching to the new java system. (Need this version which is masked ~amd64 for emerging eclipse-sdk-3.2.1). Emerge fails with the following error: >>> Compiling source in /var/tmp/portage/ant-core-1.6.5-r14/work/apache-ant-1.6.5 ... ... Bootstrapping Ant Distribution ... Compiling Ant Classes Exception in thread "main" java.lang.OutOfMemoryError at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:111) at java.util.jar.JarFile.<init>(JarFile.java:127) at java.util.jar.JarFile.<init>(JarFile.java:65) at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:578) at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:545) at sun.misc.URLClassPath$3.run(URLClassPath.java:323) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.URLClassPath.getLoader(URLClassPath.java:312) at sun.misc.URLClassPath.getLoader(URLClassPath.java:289) at sun.misc.URLClassPath.getResource(URLClassPath.java:159) at java.net.URLClassLoader$1.run(URLClassLoader.java:191) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) ... Failed compiling Ant classes ! Bootstrap FAILED !!! ERROR: dev-java/ant-core-1.6.5-r14 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile ant-core-1.6.5-r14.ebuild, line 42: Called die !!! failed to build !!! If you need support, post the topmost build error, and the call stack if relevant. !!! When you file a bug report, please include the following information: GENTOO_VM=blackdown-jdk-1.4.2 CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-1.4.2.03" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="" Reproducible: Always Steps to Reproduce: 1. Put "dev-java/ant-core ~amd64" in /etc/portage/package (and several other masked packages needed for the new java system. 2. emerge ant-core Actual Results: Produces error message (see above), emerge fails. Expected Results: Emerge ant-core correctly. Portage 2.1.1-r1 (default-linux/amd64/2005.1, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r9 x86_64) ================================================================= System uname: 2.6.16-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.5 Last Sync: Wed, 04 Oct 2006 21:20:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.3.5-r2, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2" CHOST="x86_64-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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=k8 -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/" LC_ALL="de_DE.utf8" LINGUAS="de pl" MAKEOPTS="-j3" 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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="amd64 X alsa arts audiofile berkdb bitmap-fonts bluetooth cdr cli crypt cups dlloader dri dvd eds elibc_glibc emboss encode foomaticdb fortran gif gpm gstreamer gtk2 hal imlib input_devices_keyboard input_devices_mouse isdnlog java jpeg kde kernel_linux linguas_de linguas_pl lirc lirc_devices_hauppauge lzw lzw-tiff mad mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin ogg opengl pam pcre perl png pppd python qt qt4 quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU video_cards_fbdev video_cards_nvidia video_cards_vga vorbis xorg xpm xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Can you try the following? a) BOOTJAVAC_OPTS="-J-Xmx256m" ANT_OPTS="-Xmx256m" emerge ant-core b) emerge =sun-jdk-1.5* JAVA_PKG_FORCE_VM="sun-jdk-1.5" emerge ant-core
(In reply to comment #1) a) Results in the same error as reported above. b) Resolves the problem! The compiler issues a few warnings similar to the following: src/main/org/apache/tools/zip/ZipEntry.java:425: warning: non-varargs call of varargs method with inexact argument type for last parameter; But otherwise everything goes well! Many thanks for the quick reply!!! The same problem occours with ant-tasks-1.6.5-r2 - same solution. Should I file a seperate bug report?
(In reply to comment #2) > The same problem occours with ant-tasks-1.6.5-r2 - same solution. > Should I file a seperate bug report? No, looks like a general problem with blackdown, but dunno why you get it with every package and some only with azureus etc, and why didn't the solution a) help. In any case, you can workaround by editing /etc/java-config-2/build/jdk.conf and uncommenting the line "#*=sun-jdk". This will ensure building with sun-jdk whenever possible.
Either is is a ant-1.6 bug or a blackdown one, eitherway WONTFIX oR CANTFIX.