I have by default selected Sun JRE 1.6. This cause error while emerging of eclipse-ecj-3.3.0-r1: "selected VM does not have javac". Manual changing System VM to sun-jdk-1.6 by java-config fixes error. Reproducible: Always Steps to Reproduce: 1. install >=sun-jre-bin-1.5 2. select it via java-config 3. try emerge eclipse-ecj-3.3.0-r1 Actual Results: >>> Emerging (1 of 1) dev-java/eclipse-ecj-3.3.0-r1 to / * ecjsrc.zip RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking ecjsrc.zip ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking ecjsrc.zip to /var/tmp/portage/dev-java/eclipse-ecj-3.3.0-r1/work * Applying eclipse-ecj-3.3.0-gcj.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/dev-java/eclipse-ecj-3.3.0-r1/work ... * bootstrapping ecj with javac * javac is not available for sun-jre-bin-1.6 on x86_64 * IMPORTANT: some Java tools are not available on some VMs on some architectures * * ERROR: dev-java/eclipse-ecj-3.3.0-r1 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * eclipse-ecj-3.3.0-r1.ebuild, line 50: Called die * The specific snippet of code: * ${javac} $(find org/ -name '*.java') || die "${MY_PN} bootstrap failed!" * The die message: * ecj bootstrap 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/eclipse-ecj-3.3.0-r1/temp/build.log'. * !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH="." JAVA_HOME="/home/bsa/.gentoo/java-config-2/current-user-vm" JAVACFLAGS="" COMPILER="" and of course, the output of emerge --info Expected Results: OK Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64) ================================================================= System uname: 2.6.23-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ Timestamp of tree: Mon, 21 Jan 2008 22:30:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" 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" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/pam.d /etc/revdep-rebuild /etc/ssh /etc/ssl /etc/terminfo /etc/udev /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch prelink sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" LANG="ru_RU.UTF-8" LINGUAS="ru en" MAKEOPTS="-j8 -s" PKGDIR="/mnt/gentoo-profile/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" USE="X a52 acpi aiglx alsa amd64 arts avi bash-completion berkdb bitmap-fonts branding browserplugin bzip2 cdr cg cli cracklib crypt cups curl dbus devil dga diet disk-partition dri dts dvd dvdr dvdread esd expat ffmpeg firefox flac freetype ftp fuse gdbm gif glitz glut gmp gnome gpm graphviz gs gstreamer gtk gtk2 hal iconv idn imagemagick imlib isdnlog java javascript jpeg jpeg2k kde kdeenablefinal lcms libnotify lm_sensors logrotate mad mbox midi mikmod mmap mmx mng motif mozilla mp3 mpeg mplayer mudflap nas nasm ncurses network network-cron nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl openmp oss pam pch pcre pdf perl png pppd python qt quicktime radio rar readline reflection rtc samba sdl session slang slp spell spl srt sse sse2 ssl stl subversion svg tcpd theora threads tiff timidity truetype truetype-fonts type1-fonts unicode usb userlocales v4l2 vboxbfe vim-syntax vorbis wmf xine xml xml2 xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="ru en" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Yeah it inherits wrong eclass. Should be java-pkg-2 instead of java-utils-2. Should be revbumped to fix, people might have installed with wrong bytecode. My home desktop isn't responding, can't fix it myself right now.
Fixed in 3.3.0-r2, thanks.