The build.xml file of log4j-1.2.12 specifies the compiler parameter "-source 1.1", while blackdown-jdk-1.4.2.02 supports 1.2, 1.3, 1.4 and jikes supports only 1.3 and 1.4 Reproducible: Always Steps to Reproduce: 1.emerge =blackdown-jdk-1.4.2.02 2.(optional) emerge jikes 3.emerge =dev-java/log4j-1.2.12 Actual Results: with javac: [javac] Compiling 158 source files to /var/tmp/portage/log4j-1.2.12/work/logging-log4j-1.2.12/dist/classes [javac] javac: invalid source release: 1.1 [javac] Usage: javac <options> <source files> ... BUILD FAILED with jikes: [javac] Compiling 158 source files to /var/tmp/portage/log4j-1.2.12/work/logging-log4j-1.2.12/dist/classes [javac] use: jikes [options] [@files] file.java... [javac] For more help, try -help or -version. [javac] Error: "-source" only recognizes Java releases 1.3 (JLS 2 features) and 1.4 (assert statement). BUILD FAILED Expected Results: log4j compiles emerge --info Portage 2.0.53_rc4 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r6_1 i686) ================================================================= System uname: 2.6.12-gentoo-r6_1 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.12.0_pre8 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.13 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-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/hal/fdi /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="de_DE@euro" LC_ALL="de_DE@euro" LINGUAS="de en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex 3dnowext 7zip X a52 aac apache2 apm arts avi bash-completion berkdb bitmap-fonts bzip2 bzlib cdr crypt cups dba dts dv dvb dvd dvdr dvdread eds emboss fam fbcon foomaticdb gd gdbm gif gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jikes jpeg junit libg++ libwww mad matroska mikmod mmx mmx2 mmxext mng motif mozilla mozsvg mp3 mpeg mysql ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl pam pdflib perl php png python qt quicktime readline real samba scanner sdl session slang source speex ssl svg tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts usb userlocales vcd vorbis win32codecs wmf xine xml xml2 xmms xprint xsl xv xvid zlib linguas_de linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS installed java: blackdown-jdk-1.4.2.02, jikes-1.22-r1 possible workaround: replace the line <property name="javac.source" value="1.1"/> with a correct version or add appropriate definitions to the ant command line
Created attachment 69989 [details, diff] Ebuild Patch which adds correct -source parameters Ebuild Patch which adds correct -source parameters (1.2 for javac, 1.3 for jikes)
search for dupes