emerge of azureus fails with error message: javac is not available for emul-linux-x86-java-1.6 on x86_64 Reproducible: Always Steps to Reproduce: 1. emerge azureus Actual Results: >>> Source unpacked. >>> Compiling source in /var/tmp/portage/net-p2p/azureus-3.0.3.4/work ... * javac is not available for emul-linux-x86-java-1.6 on x86_64 * IMPORTANT: some Java tools are not available on some VMs on some architectures * * ERROR: net-p2p/azureus-3.0.3.4 failed. * Call stack: * ebuild.sh, line 46: Called src_compile * environment, line 3990: Called ejavac 'src_compile' 'src_compile' '-J-Xmx256m' '-encoding' 'latin1' '-classpath' * environment, line 965: Called die * The specific snippet of code: * ${compiler_executable} ${javac_args} "${@}" || diefunc "$FUNCNAME" "$LINENO" "$?" "ejavac failed" * The die message: * ejavac 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/net-p2p/azureus-3.0.3.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-p2p/azureus-3.0.3.4/temp/environment'. * !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH="." JAVA_HOME="/opt/blackdown-jdk-1.4.2.03" JAVACFLAGS="" COMPILER="javac" and of course, the output of emerge --info * Messages for package net-p2p/azureus-3.0.3.4: # emerge --info Portage 2.1.4_rc8 (default-linux/amd64/2007.0/desktop, gcc-4.2.2, glibc-2.7-r0, 2.6.2 2-gentoo-r6 x86_64) ================================================================= System uname: 2.6.22-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+ Timestamp of tree: Fri, 07 Dec 2007 16:00:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.3 dev-lang/python: 2.5.1-r4 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 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /et c/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetc h" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distr ibutions/gentoo" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --for ce --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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 asf berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt dbus dts dvd dvdr dvdread eds emboss encode evo fam firefox f lac gdbm gif glut gnome gpm gstreamer gtk hal iconv ipod isdnlog java jpeg kde mad mi di mikmod mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg openal o pengl openmp pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection rtc samba sdl session spell spl sse sse2 ssl svg tcpd theora threads tiff timidity truetype truetype-fonts type1-fonts unicode vorbis wma x264 xml xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10 k1x 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_ba sic 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_loc k deflate dir disk_cache env expires ext_filter file_cache filter headers include inf o log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling sta tus unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="joystick ke yboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 l cdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_C ARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I had a similar problem with emerging azureus (javac is not available for sun-jre-bin-1.6 on i686). Emerging with GENTOO_VM="sun-jdk-1.6" emerge -av azureus worked for me.
The ebuild was missing a call to java-pkg-2_pkg_setup so the VM wasn't switched. This is fixed in 3.0.4.2.