Java 8 has become more picky requiring classes that are indirectly referenced during compilation. Probably as a result of new type inference features. See here for a discussion: http://stackoverflow.com/questions/26799874/java-8-interface-class-loader-changes As a result dev-java/ant-apache-xalan2 fails to compile because the class org.apache.xml.serializer.SerializerTrace can't be found. That package lives in dev-java/xalan-serializer, which isn't required by dev-java/ant-apache-xalan2. Reproducible: Always Steps to Reproduce: 1. Set your system JVM to Oracle's Java 8. 2. Try to emerge dev-java/ant-apache-xalan2 The error message: >>> Compiling source in /var/tmp/portage/dev-java/ant-apache-xalan2-1.9.2/work/apache-ant-1.9.2 ... * Disabling all optional ANT_TASKS Buildfile: /var/tmp/portage/dev-java/ant-apache-xalan2-1.9.2/work/apache-ant-1.9.2/build.xml check_for_optional_packages: prepare: [mkdir] Created dir: /var/tmp/portage/dev-java/ant-apache-xalan2-1.9.2/work/apache-ant-1.9.2/build [mkdir] Created dir: /var/tmp/portage/dev-java/ant-apache-xalan2-1.9.2/work/apache-ant-1.9.2/build/classes [mkdir] Created dir: /var/tmp/portage/dev-java/ant-apache-xalan2-1.9.2/work/apache-ant-1.9.2/build/lib [copy] Copying 8 files to /var/tmp/portage/dev-java/ant-apache-xalan2-1.9.2/work/apache-ant-1.9.2/build/classes [copy] Copying 2 files to /var/tmp/portage/dev-java/ant-apache-xalan2-1.9.2/work/apache-ant-1.9.2/build/classes build-dep: [javac.ant] Compiling 1 source file to /var/tmp/portage/dev-java/ant-apache-xalan2-1.9.2/work/apache-ant-1.9.2/build/classes [javac.ant] /var/tmp/portage/dev-java/ant-apache-xalan2-1.9.2/work/apache-ant-1.9.2/src/main/org/apache/tools/ant/taskdefs/optional/Xalan2TraceSupport.java:46: error: cannot access SerializerTrace [javac.ant] ((TransformerImpl) t).getTraceManager().addTraceListener(tl); [javac.ant] ^ [javac.ant] class file for org.apache.xml.serializer.SerializerTrace not found [javac.ant] 1 error BUILD FAILED /var/tmp/portage/dev-java/ant-apache-xalan2-1.9.2/work/apache-ant-1.9.2/build.xml:537: Compile failed; see the compiler error output for details. Total time: 1 second * ERROR: dev-java/ant-apache-xalan2-1.9.2::gentoo failed (compile phase): * eant failed * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 3919: Called ant-tasks_src_compile * environment, line 387: Called eant '-Dbuild.dep=apache-xalan2' 'jar-dep' * environment, line 630: Called die * The specific snippet of code: * ant ${antflags} "${@}" || die "eant failed" emerge --info: Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r2, 3.10.79-gentoojgibson x86_64) ================================================================= System uname: Linux-3.10.79-gentoojgibson-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.2 KiB Mem: 3920160 total, 912416 free KiB Swap: 6000272 total, 5801368 free Timestamp of repository gentoo: Sun, 02 Aug 2015 08:15:01 +0000 sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.3_p33-r2::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r1::gentoo, 3.4.1::gentoo dev-util/cmake: 3.2.2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.24-r3::gentoo sys-devel/gcc: 4.3.4::gentoo, 4.4.4-r2::gentoo, 4.6.4::gentoo, 4.8.4::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage priority: -1000 seden location: /var/lib/layman/seden masters: gentoo priority: 0 jgibson_custom location: /usr/local/portage masters: gentoo priority: 1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE AdobeFlash-10.3 AdobeFlash-11.x PUEL" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=core2" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo" LANG="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi aim alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli cracklib crypt cups cvs cxx dri dvd dvdr emacs encrypt exif fam flac fortran ftp fuse gdbm gif gimp git gpm gtk gzip hal iconv imap ipv6 jabber java java5 java6 jce jpeg jpeg2k kerberos lame ldap lm_sensors midi mmx mmxext mng modules mp3 mp4 mpeg mplayer msn multilib ncurses nls nptl nsplugin ntfs ogg openal opengl openmp oracle osc oscar pam pcre pda pdf png posix postgres ppds quicktime readline rss sdl session smartcard smp spell sse sse2 sse4_1 ssl ssse3 subversion svg syslog system-sqlite tcpd theora threads threadsafe tiff timidity truetype udev unicode usb vcd videos vorbis win32codecs wmf x264 xattr xcb xcomposite xine xinerama xml xpm xscreensaver xulrunner xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="hda-intel" 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 cgi cgid 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 proxy proxy_ajp" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" NETBEANS_MODULES="apisupport groovy harness ide java nb websvccommon ergonomics profiler" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev radeon radeonsi vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 408192 [details, diff] Patch for Java 8 compilation bug
This is fixed in -r1. I'll close this when it goes stable.
Done.