Buildfile: build.xml -def-check: -check-boot.java.home: -def-pcompile: [mkdir] Created dir: /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/control/build/linux-amd64/langtools/build/toolclasses [javac] Compiling 2 source files to /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/control/build/linux-amd64/langtools/build/toolclasses [javac] ---------- [javac] 1. ERROR in /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/tools/CompileProperties/CompileProperties.java (at line 220) [javac] List<String> sortedKeys = new ArrayList<String>(); [javac] ^^^^ [javac] The type List is not generic; it cannot be parameterized with arguments <String> [javac] ---------- [javac] 2. ERROR in /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/t [javac] ools/CompileProperties/CompileProperties.java (at line 220) [javac] List<String> sortedKeys = new ArrayList<String>(); [javac] ^^^^^^ [javac] Syntax error, parameterized types are only available if source level is 5.0 [javac] ---------- [javac] 3. ERROR in /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/tools/CompileProperties/CompileProperties.java (at line 220) [javac] List<String> sortedKeys = new ArrayList [javac] <String>(); [javac] ^^^^^^^^^ [javac] The type ArrayList is not generic; it cannot be parameterized with arguments <String> [javac] ---------- [javac] 4. ERROR in /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/tools/CompileProperties/CompileProperties.java (at line 220) [javac] List<String> sortedKeys = new ArrayList [javac] <String>(); [javac] ^^^^^^ [javac] Syntax error, parameterized types are only available if source level is 5.0 [javac] ---------- [javac] 5. ERROR in /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/t [javac] ools/CompileProperties/CompileProperties.java (at line 221) [javac] for ( Object key : p.keySet() ) { [javac] ^^^^^^^^^^^^^^^^^^^^^^^ [javac] Syntax error, 'for each' statements are only available if source level is 5.0 [javac] ---------- [javac] 6. ERROR in /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/tools/CompileProperties/CompileProperties.java (at line 221) [javac] for ( Object key : p.keySet() ) { [javac] ^^^^^^^^^^ [javac] Can only iterate over an array or an instance of java.lang.Iterable [javac] ---------- [javac] ---------- [javac] 7. ERROR in /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/t [javac] ools/CompileProperties/CompilePropertiesTask.java (at line 60) [javac] List<String> mainOpts = new ArrayList<String>(); [javac] ^^^^ [javac] The type List is not generic; it cannot be parameterized with arguments <String> [javac] ---------- [javac] 8. ERROR in /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/tools/CompileProperties/CompilePropertiesTask.java (at line 60) [javac] List<String> mainOpts = new ArrayList<String>(); [javac] ^^^^^^ [javac] Syntax error, parameterized types are only available if source level is 5.0 [javac] ---------- [javac] 9. ERROR in /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/t [javac] ools/CompileProperties/CompilePropertiesTask.java (at line 60) [javac] List<String> mainOpts = new ArrayList<String>(); [javac] ^^^^^^^^^ [javac] The type ArrayList is not generic; it cannot be parameterized with arguments <String> [javac] ---------- [javac] 10. ERROR in /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/tools/CompileProperties/CompilePropertiesTask.java (at line 60) [javac] List<String> mainOpts = new ArrayLi [javac] st<String>(); [javac] ^^^^^^ [javac] Syntax error, parameterized types are only available if source level is 5.0 [javac] ---------- [javac] 11. ERROR in /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/ [javac] tools/CompileProperties/CompilePropertiesTask.java (at line 63) [javac] for (String path: s.getIncludedFiles()) { [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [javac] Syntax error, 'for each' statements are only available if source level is 5.0 [javac] ---------- [javac] 11 problems (11 errors) BUILD FAILED /var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make/build.xml:566: Compile failed; see the compiler error output for details.Total time: 2 seconds make[2]: *** [build] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/langtools/make' make[1]: *** [langtools-build] Error 2 make[1]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.3.1-r1/work/icedtea6-1.3.1/openjdk/control/make' make: *** [stamps/icedtea.stamp] Error 2 * * ERROR: dev-java/icedtea6-1.3.1-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4645: Called die * The specific snippet of code: * emake -j 1 || die "make failed" * The die message: * make failed GENTOO_VM=gcj-jdk CLASSPATH="" JAVA_HOME="" JAVACFLAGS="" COMPILER="" Reproducible: Always Portage 2.2_rc13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.27-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-glibc2.2.5 Timestamp of tree: Sun, 02 Nov 2008 19:07:07 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -msse3 -mfpmath=sse -O2 -fomit-frame-pointer -pipe" 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/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -msse3 -mfpmath=sse -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://gentoo.virginmedia.com/ http://mirror.qubenet.net/mirror/gentoo/ http://mirror.bytemark.co.uk/gentoo/" LDFLAGS="-Wl,-O1" LINGUAS="en_GB" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi adns aiglx alsa amd64 aoss apm arts asf berkdb bzip2 cairo cli cracklib crypt dbus directfb dri dvd fam fbconffmpeg fortran gcj gcrypt gdbm ggi gif glitz gnutls gpm gtk hal iconv isdnlog java jpeg jpeg2k kde kdeenablefinal laptop libcaca lm_sensorsmad matroska midi mmx mmxext mp3 mp4 mpeg mudflap multilib ncurses new-login nls nptl nptlonly nsplugin objc objc++ ogg opengl openmp pam pcap pcre pdf perl png pppd python qt3 qt4 rdesktop readline reflection samba session spell spl sqlite sse sse2 ssl ssse3 svg symlink sysfs tcpd threads tiff truetype unicode x264 xcomposite xml xorg xosd xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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_dbmauthn_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 synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="i810 vesa intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Same here on AMD64 (using paludis). Portage 2.2_rc13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.27-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-glibc2.2.5 Timestamp of tree: Sat, 08 Nov 2008 15:15:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r8 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" 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/overlays/zugaina /usr/local/overlays/paludis-extras /usr/local/overlays/sunrise /usr/local/overlays/gnome /usr/local/overlays/desktop-effects /usr/local/overlays/vmware /usr/local/overlays/ikelos /usr/local/overlays/java-overlay /usr/local/overlays/berkano /usr/local/overlays/myoverlay" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 amr bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt css cups dbus dri dts dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg flac fortran gdbm gif glitz gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kde kdehiddenvisibility ldap libnotify mad midi mikmod mmx mono mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pic png ppds pppd python qt3support qt4 quicktime readline reflection ruby samba sdl session spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb userlocales vcd vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="cmipci hdaintel" 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
Created attachment 171198 [details, diff] patch to fix the bug Now that ant-core-1.7.1-r2 respects JAVA_HOME when ANT_RESPECT_JAVA_HOME is set, all that's needed is to depend on this ant-core version and export the variable, which is what the proposed patch does. It also exports ANT_TASKS=none (documented in [1]) so that ant does not load any extra tasks - just ant-core is used and in DEPEND. Normally this is done in the eclass when ant is called through the eant() function in pure ant-based ebuilds. In my tests it avoided some (non-fatal but potentially confusing to user) error messages when some installed extra tasks depend on virtuals that are satisfied only by a JDK other than the jdk used in bootstrap. [1] http://www.gentoo.org/proj/en/java/ant-guide.xml
Thanks very much, the patch allows icedtea6 to build for me. One note, the second part of the patch ("bug #245428" onwards) is already in the icedtea6 1.6.1-r1 ebuild so it is not necessary. Just the updated dependency on the newer ant-core does the trick.
Created attachment 171273 [details, diff] updated patch > One note, the second part of the patch ("bug #245428" onwards) is already in the icedtea6 1.6.1-r1 ebuild so it is not necessary. I don't see it there? [1] Where do you see it? Anyway I have updated the patch so it matches also the fixed version of ant-core-1.7.0-r3 from the overlay. Note that >=ant-core-1.7.0-r3 would also wrongly match unfixed versions of 1.7.1 so it has to be like this. [1] https://overlays.gentoo.org/svn/proj/java/java-overlay/dev-java/icedtea6/icedtea6-1.3.1-r1.ebuild
(In reply to comment #4) > > One note, the second part of the patch ("bug #245428" onwards) is already in > the icedtea6 1.6.1-r1 ebuild so it is not necessary. > > I don't see it there? [1] Where do you see it? Sorry, my mistake. I was looking in the wrong version of the file.
This bug can be closed.
(In reply to comment #6) > This bug can be closed. > Thanks, closing as FIXED