I just tried building dev-java/libreadline-java using blackdown java and it failed. Portage 2.1.1_pre5-r3 (default-linux/x86/no-nptl, gcc-4.1.1/vanilla, glibc-2.3.6-r4, 2.6.17-suspend2-r4 i686) ================================================================= System uname: 2.6.17-suspend2-r4 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz Gentoo Base System version 1.12.4 Last Sync: Mon, 21 Aug 2006 14:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: 0.4.2-r1 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-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -mtune=pentium-m -mfpmath=sse -O3 -fomit-frame-pointer -pipe -msse3" 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/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/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium-m -mtune=pentium-m -mfpmath=sse -O3 -fomit-frame-pointer -pipe -msse3 -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch prelink sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--sort-common -s" LINGUAS="en" 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 /usr/portage/local/layman/liquidx /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/musicbrainz /usr/portage/local/layman/nx /usr/portage/local/layman/nxsty-glibc /usr/portage/local/layman/nxsty-binutils /usr/portage/local/layman/sunrise" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac acpi alsa apm arts avi bash-completion berkdb bitmap-fonts bluetooth cdrw cli crypt css cups dbus dlloader dri dvd dvdr dvdrw elibc_glibc emboss encode fam fbcon flac foomaticdb gdbm gif gnutls gpm gstreamer gtk gtk2 hal imlib input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics isdnlog jabber java jpeg kde kdeenablefinal kdexdeltas kernel_linux libg++ libwww linguas_en logrotate mikmod mmx motif mp3 mpeg msn musicbrainz ncurses nls nsplugin offensive ogg opengl oss pam pcre pda pdflib perl pic png pnp pppd python qt qt3 qt4 quicktime readline reflection rss samba sdl session spell spl sse sse2 ssl symlink tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev userland_GNU userlocales vcd video_cards_i810 video_cards_nv video_cards_nvidia vorbis xcomposite xinerama xml xmms xorg xscreensaver xv zeroconf zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Paranormal abilities missing, reopen once you've posted some build errors.
I lost the output from this, but the only way around it was to install =sun-jdk-1.4* and re-emerge it.
Tried with blackdown-jdk-1.4.2.03 and it worked.
dev-java/blackdown-jdk-1.4.2.03-r12 Osiris ~ # java-config -L 1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] (/usr/share/java-config-2/vm/blackdown-jdk-1.4.2) *) Sun JDK 1.5.0.08 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5) Osiris ~ # java-config -S 1 Osiris ~ # java-config -L *) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] (/usr/share/java-config-2/vm/blackdown-jdk-1.4.2) 2) Sun JDK 1.5.0.08 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5) Osiris ~ # emerge dev-java/libreadline-java Calculating dependencies... done! >>> Emerging (1 of 1) dev-java/libreadline-java-0.8.0-r1 to / * libreadline-java-0.8.0-src.tar.gz MD5 ;-) ... [ ok ] * libreadline-java-0.8.0-src.tar.gz RMD160 ;-) ... [ ok ] * libreadline-java-0.8.0-src.tar.gz SHA1 ;-) ... [ ok ] * libreadline-java-0.8.0-src.tar.gz SHA256 ;-) ... [ ok ] * libreadline-java-0.8.0-src.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking libreadline-java-0.8.0-src.tar.gz ;-) ... [ ok ] * Using Generation-1 System VM: sun-jdk-1.4 [ ok ] >>> Unpacking source... >>> Unpacking libreadline-java-0.8.0-src.tar.gz to /mnt/sda6/var/portage/libreadline-java-0.8.0-r1/work * Applying termcap-to-ncurses.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /mnt/sda6/var/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0 ... mkdir ./build cd src ; make JAVAC="javac" JC_FLAGS="" java make[1]: Entering directory `/mnt/sda6/var/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src' javac -d ../build `find . -name "*.java"` Home for VM 'sun-jdk-1.4' does not exist: /usr/lib/jvm/sun-jdk-1.4/ Invalid value for GENTOO_VM: sun-jdk-1.4 make[1]: *** [java] Error 1 make[1]: Leaving directory `/mnt/sda6/var/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src' make: *** [build-java] Error 2 !!! ERROR: dev-java/libreadline-java-0.8.0-r1 failed. Call stack: ebuild.sh, line 1543: Called dyn_compile ebuild.sh, line 938: Called src_compile libreadline-java-0.8.0-r1.ebuild, line 30: Called die !!! failed to compile !!! If you need support, post the topmost build error, and the call stack if relevant.
Setting java-config -S has no effect on generation-1 system jdk. You need to set it with java-config-1 -S. Now you left it set to sun-jdk-1.4 which you don't have (that's why it tries to use it), means your generation-1 system jdk is invalid. Follow http://www.gentoo.org/proj/en/java/java-upgrade.xml properly.
Please, read the docs before filing bugs. Thanks!
java-config-1 -L [blackdown-jdk-1.4.2.03] "Blackdown JDK 1.4.2.03" (/etc/env.d/java/20blackdown-jdk-1.4.2.03) Also, I have NEVER had sun-jdk-1.4 installed on this computer until I had this problem. I have read the docs, and followed them to the letter. The problem persists
(In reply to comment #7) > java-config-1 -L > [blackdown-jdk-1.4.2.03] "Blackdown JDK 1.4.2.03" > (/etc/env.d/java/20blackdown-jdk-1.4.2.03) Yeah, so you *don't* have any generation-1 VM set. Which is exactly your problem. > Also, I have NEVER had sun-jdk-1.4 installed on this computer until I had this > problem. I have read the docs, and followed them to the letter. The problem > persists So read them one more time.
http://overlays.gentoo.org/proj/java/wiki/Common_Problems#javaconfig1LlistsnoVMasusedjavacheckenvironmentsaysNoGeneration1SystemVMissetnomatterwhatIdo Problem was with java-config.
I dont see how I *don't* have one set when I have set it 10 times. Regardless, I have found a solution no thanks to you. (In reply to comment #8) > (In reply to comment #7) > > java-config-1 -L > > [blackdown-jdk-1.4.2.03] "Blackdown JDK 1.4.2.03" > > (/etc/env.d/java/20blackdown-jdk-1.4.2.03) > > Yeah, so you *don't* have any generation-1 VM set. Which is exactly your > problem. > > > Also, I have NEVER had sun-jdk-1.4 installed on this computer until I had this > > problem. I have read the docs, and followed them to the letter. The problem > > persists > > So read them one more time. > >
(In reply to comment #10) > I dont see how I *don't* have one set when I have set it 10 times. Cause if you did have one set, it would look like this: <snip> [blackdown-jdk-1.4.2.03] "Blackdown JDK 1.4.2.03" (/etc/env.d/java/20blackdown-jdk-1.4.2.03) * </snip> Note the * there, it's important. Also, kindly follow the java-check-environment advice next time, instead of filing bugs. And, mixing unstable java with stable system (or even a package.masked one) is really a bad idea if you don't have any clue. Thanks.