Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922116 - dev-java/caffeine-2.6.2 fails to compile method expireAfter in class Caffeine<K,V> cannot be applied to given types;
Summary: dev-java/caffeine-2.6.2 fails to compile method expireAfter in class Caffein...
Status: RESOLVED DUPLICATE of bug 919464
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-14 16:23 UTC by Silvio
Modified: 2024-01-14 16:25 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Silvio 2024-01-14 16:23:28 UTC
>>> Emerging (1 of 1) dev-java/caffeine-2.6.2::gentoo
 * caffeine-2.6.2-sources.jar BLAKE2B SHA512 size ;-) ...                        [ ok ]
 * Using: icedtea-bin-8
>>> Unpacking source...
>>> Unpacking caffeine-2.6.2-sources.jar to /var/tmp/portage/dev-java/caffeine-2.6.2/work
>>> Source unpacked in /var/tmp/portage/dev-java/caffeine-2.6.2/work
>>> Preparing source in /var/tmp/portage/dev-java/caffeine-2.6.2/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/caffeine-2.6.2/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/caffeine-2.6.2/work ...
javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /usr/share/jsr305/lib/jsr305.jar @sources.lst
./com/github/benmanes/caffeine/cache/SerializationProxy.java:71: error: method expireAfter in class Caffeine<K,V> cannot be applied to given types;
      builder.expireAfter(expiry);
             ^
  required: Expiry<? super K1,? super V1>
  found: Expiry<CAP#1,CAP#2>
  reason: cannot infer type-variable(s) K1,V1
    (argument mismatch; Expiry<CAP#1,CAP#2> cannot be converted to Expiry<? super K1,? super V1>)
  where K1,V1,V,K are type-variables:
    K1 extends Object declared in method <K1,V1>expireAfter(Expiry<? super K1,? super V1>)
    V1 extends V declared in method <K1,V1>expireAfter(Expiry<? super K1,? super V1>)
    V extends Object declared in class Caffeine
    K extends Object declared in class Caffeine
  where CAP#1,CAP#2 are fresh type-variables:
    CAP#1 extends Object from capture of ?
    CAP#2 extends Object from capture of ?
1 error
 * ERROR: dev-java/caffeine-2.6.2::gentoo failed (compile phase):
 *   ejavac failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2402:  Called java-pkg-simple_src_compile
 *   environment, line  900:  Called ejavac '-d' 'target/classes' '-encoding' 'UTF-8' '-classpath' '/usr/share/jsr305/lib/jsr305.jar' '@sources.lst'
 *   environment, line  640:  Called die
 * The specific snippet of code:
 *       "${args[@]}" || die "ejavac failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-java/caffeine-2.6.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/caffeine-2.6.2::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-8  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-3.16.0"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =caffeine-2.6.2
 * The complete build log is located at '/var/tmp/portage/dev-java/caffeine-2.6.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/caffeine-2.6.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/caffeine-2.6.2/work'
 * S: '/var/tmp/portage/dev-java/caffeine-2.6.2/work'

>>> Failed to emerge dev-java/caffeine-2.6.2, Log file:

>>>  '/var/tmp/portage/dev-java/caffeine-2.6.2/temp/build.log'

 * Messages for package dev-java/caffeine-2.6.2:

 * ERROR: dev-java/caffeine-2.6.2::gentoo failed (compile phase):
 *   ejavac failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2402:  Called java-pkg-simple_src_compile
 *   environment, line  900:  Called ejavac '-d' 'target/classes' '-encoding' 'UTF-8' '-classpath' '/usr/share/jsr305/lib/jsr305.jar' '@sources.lst'
 *   environment, line  640:  Called die
 * The specific snippet of code:
 *       "${args[@]}" || die "ejavac failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-java/caffeine-2.6.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/caffeine-2.6.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-java/caffeine-2.6.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/caffeine-2.6.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/caffeine-2.6.2/work'
 * S: '/var/tmp/portage/dev-java/caffeine-2.6.2/work'


Reproducible: Always
Comment 1 Silvio 2024-01-14 16:24:17 UTC
# emerge --info
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.38-r9, 6.6.8-gentoo x86_64)
=================================================================
System uname: Linux-6.6.8-gentoo-x86_64-Intel-R-_Core-TM-_i7-8565U_CPU_@_1.80GHz-with-glibc2.38
KiB Mem:    16238472 total,   7257064 free
KiB Swap:   16777212 total,  15654908 free
Timestamp of repository gentoo: Sat, 13 Jan 2024 11:00:01 +0000
Head commit of repository gentoo: bafae16c1d86a4da14ddbbfc588bc9cf7cda4fb0
Head commit of repository jgenco: 8fdb39feebe7c861382702e1fba68eaa156f23b4

Timestamp of repository nelson-graca: Wed, 10 Jan 2024 11:18:31 +0000
Head commit of repository nelson-graca: ededf6b16fa98348fb26f8288ef3a7d8bd2950cd

Timestamp of repository rion: Wed, 10 Jan 2024 11:18:22 +0000
Head commit of repository rion: 12e53590451144e38d4ba376ae0f052526715e99

Timestamp of repository steam-overlay: Wed, 10 Jan 2024 11:18:22 +0000
Head commit of repository steam-overlay: 5a5cfb1e6df6deb54c87a2f3ed61d85b2b849d68

sh bash 5.2_p21-r2
ld ld di GNU (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p21-r2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust:             1.74.1::gentoo
dev-util/cmake:            3.28.1-r1::gentoo
dev-util/meson:            1.3.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             11.4.1_p20231214::gentoo, 13.2.1_p20231216::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r2::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
sys-libs/libselinux:       3.5-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

jgenco
    location: /var/db/repos/jgenco
    sync-type: git
    sync-uri: https://github.com/jgenco/jgenco-overlay
    masters: gentoo
    volatile: False

local
    location: /usr/portage.local
    masters: gentoo
    volatile: True

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo
    volatile: False

nelson-graca
    location: /var/db/repos/nelson-graca
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/nelson-graca.git
    masters: gentoo
    volatile: False

rion
    location: /var/db/repos/rion
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/rion.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

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 /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="it en it_IT en_US"
MAKEOPTS="-j8"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dri3 dts dvd dvdr elogind encode exif ffmpeg fftw flac fortran gdbm gif gles2 gpm gtk gui hidpi iconv icu id3tag ipv6 javafx jpeg kde kdesu kwallet lcms libinput libnotify libtirpc mad mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls ntfs objc ogg opengl openmp opus pam pango pcre pcsc-lite pdf pipewire plasma png policykit ppds pulseaudio python qml qt5 readline s3tc samba screencast sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg test-rust theora tiff touchpad truetype udev udisks unicode upower usb uxa v4l vaapi vdpau vorbis vpx vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid xvmc zlib" ABI_X86="64 32" ADA_TARGET="gnat_2021" ALSA_CARDS="snd_hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3 glamor" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="joystick wacom synaptics evdev libinput" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_7 python3_8" RUBY_TARGETS="ruby31 ruby23 ruby25 ruby26" SANE_BACKENDS="*" VIDEO_CARDS="intel i965 i915 nvidia vesa v4l v4l2 modesetting fbdev iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Silvio 2024-01-14 16:25:10 UTC

*** This bug has been marked as a duplicate of bug 919464 ***