Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560042 - dev-java/guava-13.0.1-r1: .../Types.java:338: error: TypeVariableImpl is not abstract and does not override abstract method getAnnotatedBounds() in TypeVariable
Summary: dev-java/guava-13.0.1-r1: .../Types.java:338: error: TypeVariableImpl is not ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 12:50 UTC by Toralf Förster
Modified: 2015-09-12 09:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-java:guava-13.0.1-r1:20150909-052117.log (dev-java:guava-13.0.1-r1:20150909-052117.log,5.90 KB, text/plain)
2015-09-09 12:50 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,516.84 KB, text/plain)
2015-09-09 12:50 UTC, Toralf Förster
Details
info.txt (info.txt,6.16 KB, text/plain)
2015-09-11 15:29 UTC, Toralf Förster
Details
dev-java:guava-13.0.1-r2:20150911-152652.log (dev-java:guava-13.0.1-r2:20150911-152652.log,5.86 KB, text/plain)
2015-09-11 15:29 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,572.39 KB, text/plain)
2015-09-11 15:29 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2015-09-09 12:50:17 UTC
ejavac -d target/classes -encoding UTF-8 -classpath /usr/share/jsr305/lib/jsr305.jar @sources.lst
warning: [options] bootstrap class path not set in conjunction with -source 1.6
com/google/common/primitives/UnsignedBytes.java:25: warning: Unsafe is internal proprietary API and may be removed in a future release
import sun.misc.Unsafe;
               ^
com/google/common/reflect/Types.java:338: error: TypeVariableImpl is not abstract and does not override abstract method getAnnotatedBounds() in TypeVariable
  private static final class TypeVariableImpl<D extends GenericDeclaration>
                       ^
com/google/common/primitives/UnsignedBytes.java:319: warning: Unsafe is internal proprietary API and may be removed in a future release
      static final Unsafe theUnsafe;
                   ^


$ cat ./info.txt
  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-hardened-unstable_20150829-185715) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

  Portage 2.2.20.1 (python 3.4.3-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.21-r1, 4.1.6-hardened x86_64)
=================================================================
System uname: Linux-4.1.6-hardened-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16164628 total,   1211992 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 09 Sep 2015 04:15:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.3 [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r3::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-r1::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

local
    location: /usr/local/portage
    masters: gentoo

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 9999

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/fax /usr/lib64/tomoyo/conf /usr/share/config /usr/share/maven-bin-3.2/conf /var/lib/hsqldb /var/spool/fax/etc /var/yp/Makefile"
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="-march=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--color=n --nospinner --tree --quiet-build --accept-properties=-interactive --accept-restrict=-fetch"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox 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://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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="acl aes-ni amd64 apache2 berkdb bzip2 cairo cgi cgoups clang cli consolekit cracklib crypt curl cxx dot dri drmkms ecc ffmpeg fontconfig fpm gdbm gif gnome-keyring gnuplot gpg gudev hardened hdf5 iconv icu introspection ipv6 jpeg justify kvm logrotate minizip mmx mmxext mod modules mssql multilib ncurses nls nptl obj objc ogg openmp openmpi pam pax_kernel pcre pcre16 pdo pie png pulseaudio pyqt4 readline scrypt sddm seccomp semantic-desktop session smartcard sockets spice sqlite sse sse2 ssh-askpass ssl ssp system-icu system-jpeg system-libvpx tcl tcpd uml unicode urandom usbredir uxa v4l2 vaapi video vpx webkit wxwidgets x264 xattr xkb xmlreader xtpax xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" 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="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 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 en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Toralf Förster gentoo-dev 2015-09-09 12:50:20 UTC
Created attachment 411418 [details]
dev-java:guava-13.0.1-r1:20150909-052117.log
Comment 2 Toralf Förster gentoo-dev 2015-09-09 12:50:22 UTC
Created attachment 411420 [details]
emerge-history.txt
Comment 3 Patrice Clement (RETIRED) gentoo-dev 2015-09-10 16:47:52 UTC
commit cb6db33 (HEAD, origin/master, origin/HEAD, master)
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Thu Sep 10 16:44:57 2015 +0000

    dev-java/guava: Raise {jre,jdk} reqs to 1.7. Drop ppc64. Fixes bug 560042.
    
    Package-Manager: portage-2.2.18
    Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

 create mode 100644 dev-java/guava/guava-13.0.1-r2.ebuild

You need at least Java 7 to compile this package. Give it another try.
Comment 4 Toralf Förster gentoo-dev 2015-09-10 19:02:55 UTC
ok

just FWIW:


# eselect java-vm list
Available Java Virtual Machines:
  [1]   cacao
  [2]   jamvm
  [3]   oracle-jdk-bin-1.7
  [4]   oracle-jdk-bin-1.8  system-vm
  [5]   oracle-jre-bin-1.8


It seems that the package dev-java/freemarker wanted version 13, b/c
 other versions were already emerged :

 # qlop --gauge --human --list --unlist guava
Sun Aug 30 09:59:31 2015 >>> dev-java/guava-07
Sun Aug 30 12:13:04 2015 >>> dev-java/guava-18.0
guava: Sun Aug 30 09:59:11 2015: 20 seconds
guava: Sun Aug 30 12:12:44 2015: 20 seconds
guava: 2 times


1441776049: Started emerge on: Sep 09, 2015 07:20:49
1441776049:  *** emerge --quiet-build=y --oneshot --color=n --accept-properties=-interactive --update --accept-restrict=-fetch --tree --nospinner dev-java/freemarker
1441776077:  >>> emerge (1 of 3) dev-java/guava-13.0.1-r1 to /
1441776077:  === (1 of 3) Cleaning (dev-java/guava-13.0.1-r1::/usr/portage/dev-java/guava/guava-13.0.1-r1.ebuild)
1441776077:  === (1 of 3) Compiling/Merging (dev-java/guava-13.0.1-r1::/usr/portage/dev-java/guava/guava-13.0.1-r1.ebuild)
1441776092:  *** Finished. Cleaning up...
1441776092:  *** exiting unsuccessfully with status '1'.
1441776092:  *** terminating.
Comment 5 Patrice Clement (RETIRED) gentoo-dev 2015-09-10 20:20:56 UTC
Guava rdeps:

[22:12:31] [  willikins ] monsieurp: Reverse RDEPEND for dev-java/guava: dev-java/guice-4.0 dev-java/jython-2.5.3-r3 dev-java/jython-2.7.0 dev-java/maven-bin-3.2.3 dev-java/reflections-0.9.9 dev-util/checkstyle-5.4 dev-util/checkstyle-5.5

is freemarker depending on Guava?:
monsieurp@epsilon ~/gentoo/dev-java/freemarker $ grep guava *.ebuild
monsieurp@epsilon ~/gentoo/dev-java/freemarker $ echo $?
1

Hence the question that springs to mind: why is your script emerging freemarker when you're emerging guava? I'm a bit confused here.
Comment 6 Toralf Förster gentoo-dev 2015-09-11 11:58:36 UTC
(In reply to Patrice Clement from comment #5)
> 
> Hence the question that springs to mind: why is your script emerging
> freemarker when you're emerging guava? I'm a bit confused here.
Hi Patrice,

my script follows the rule "Don't be evil !" - double swear !! ;-)
details are in [1]. It is emerge which want emerge guava :

tor-relay / # emerge -p freemarker

These are the packages that would be merged, in reverse order:

Calculating dependencies  ..... . .... done!
[ebuild  N     ] dev-java/freemarker-2.3.13-r2  USE="-doc -source"
[ebuild  N     ]  dev-java/jython-2.7.0  USE="readline -doc -examples -source {-test}"
[ebuild  NS    ]   dev-java/guava-13.0.1-r2 [07, 18.0] USE="-doc -source"





[1] http://www.zwiebeltoralf.de/tinderbox/index.html -> job.sh
Comment 7 Patrice Clement (RETIRED) gentoo-dev 2015-09-11 14:11:03 UTC
OK well now it makes more sense :)

Anyway..

1441776077:  === (1 of 3) Compiling/Merging (dev-java/guava-13.0.1-r1::/usr/portage/dev-java/guava/guava-13.0.1-r1.ebuild)
1441776092:  *** Finished. Cleaning up...
1441776092:  *** exiting unsuccessfully with status '1'.

For some reason, emerge is trying to build guava-r1. Please give it another try with r2 and let me know. Thanks.
Comment 8 Toralf Förster gentoo-dev 2015-09-11 15:27:53 UTC
nope :
1441985178: Started emerge on: Sep 11, 2015 17:26:18
1441985178:  *** emerge --nospinner --quiet-build=y --oneshot --update --accept-properties=-interactive --accept-restrict=-fetch --color=n --tree dev-java/freemarker
1441985212:  >>> emerge (1 of 3) dev-java/guava-13.0.1-r2 to /
1441985212:  === (1 of 3) Cleaning (dev-java/guava-13.0.1-r2::/usr/portage/dev-java/guava/guava-13.0.1-r2.ebuild)
1441985212:  === (1 of 3) Compiling/Merging (dev-java/guava-13.0.1-r2::/usr/portage/dev-java/guava/guava-13.0.1-r2.ebuild)
1441985231:  *** Finished. Cleaning up...
1441985231:  *** exiting unsuccessfully with status '1'.
1441985231:  *** terminating.
Comment 9 Toralf Förster gentoo-dev 2015-09-11 15:29:11 UTC
Created attachment 411624 [details]
info.txt


  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-hardened-unstable_20150829-185715) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

  Portage 2.2.20.1 (python 3.4.3-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.21-r1, 4.1.6-hardened x86_64)
Comment 10 Toralf Förster gentoo-dev 2015-09-11 15:29:13 UTC
Created attachment 411626 [details]
dev-java:guava-13.0.1-r2:20150911-152652.log
Comment 11 Toralf Förster gentoo-dev 2015-09-11 15:29:16 UTC
Created attachment 411628 [details]
emerge-history.txt
Comment 12 Mark Nowiasz 2015-09-12 08:00:06 UTC
Excuse me, but why is this bug marked as resolved? It still fails building using jdk 1.8.0

com/google/common/reflect/Types.java:338: error: TypeVariableImpl is not abstract and does not override abstract method getAnnotatedBounds() in TypeVariable
  private static final class TypeVariableImpl<D extends GenericDeclaration>
Comment 13 Mark Nowiasz 2015-09-12 08:25:58 UTC
Apparently there is no way to compile guava (at least not < 15) using 1.8.x:

https://github.com/google/guava/issues/1738

So - how do I proceed? There's a dependency on guava:13 in jython, and everytime I emerge -uDN guava breaks (no matter if -r1 or -r2). So the only workaround would be to temporarily switch to Java 7 (e.g. icedtea-bin-7), manually 

emerge -1 =dev-java/guava-13.0.1-r2

and switching back to 1.8 afterwards. Using this method guava:13 installs just fine.

Anyway, still surprised that this bug has been marked as "RESOLVED FIXED" when it clearly isn't (at least if you use java 1.8, that is).
Comment 14 Patrice Clement (RETIRED) gentoo-dev 2015-09-12 09:29:19 UTC
Sorry about the noise generated by this bug. I am going to revert the changes made to this ebuild so far and set up a hard dependency on virtual/{jdk,jre}:1.7 like it was in place before. There's a link in all guava ebuilds mentioning a problem with Java 8 which leads to a 404 page.. I thought the problem was solved by now but the fix only exists in the latest iteration of guava (19-rc1). I tried putting an ebuild together and unfortunately, it doesn't compile with Java 8 either. Not sure if this rc is stable yet. We'll have to make do with Java 7 for the time being until Guava developers release a Guava version that works with Java 8...
Comment 15 Patrice Clement (RETIRED) gentoo-dev 2015-09-12 09:33:34 UTC
commit e25cca8 (HEAD, origin/master, origin/HEAD, master)
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Sat Sep 12 09:32:09 2015 +0000

    dev-java/guava: Revert all changes made so far and set up a hard dependency on Java 7. Fixes bug 560042.
    
    Package-Manager: portage-2.2.18
    Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

 delete mode 100644 dev-java/guava/guava-13.0.1-r1.ebuild
 delete mode 100644 dev-java/guava/guava-13.0.1-r2.ebuild
 create mode 100644 dev-java/guava/guava-13.0.1-r3.ebuild

Give it both another try but it should work now. You'll need Java 7 though.