The emerge error message is: src/moditect/module-info.java:4: error: module not found: org.codehaus.stax2 requires org.codehaus.stax2; See build log for details Reproducible: Always Steps to Reproduce: 1. Make openjdk-bin-11 the system-vm 2. emerge -u jackson-dataformat-xml 3. Actual Results: Snippet from emerge output, full log will be attached. javac -source 9 -target 9 -d target/classes -encoding UTF-8 --module-path /usr/share/jackson-annotations-2/lib/jackson-annotations.jar:/usr/share/jackson-core/lib/jackson-core.jar:/usr/share/jackson-databind/lib/jackson-databind.jar:/usr/share/stax2-api/lib/stax2-api.jar:/usr/share/woodstox-core/lib/woodstox-core.jar:/usr/share/msv/lib/msv.jar:/usr/share/relaxng-datatype/lib/relaxng-datatype.jar:/usr/share/xsdlib/lib/xsdlib.jar:/usr/share/xerces-2/lib/xerces.jar:/usr/share/xml-commons-external-1.4/lib/xml-commons-external.jar:/usr/share/xml-commons-resolver/lib/xml-commons-resolver.jar:/usr/share/iso-relax/lib/iso-relax.jar:/usr/share/ant-core/lib/ant.jar:/usr/share/ant-core/lib/ant-bootstrap.jar:/usr/share/ant-core/lib/ant-launcher.jar --module-version 2.13.2 src/moditect/module-info.java warning: [options] bootstrap class path not set in conjunction with -source 9 src/moditect/module-info.java:4: error: module not found: org.codehaus.stax2 requires org.codehaus.stax2; ^ 1 error 1 warning emerge terminates. Expected Results: updated package installed GENTOO_VM=openjdk-bin-11 CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-11.0.14_p9" JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="" owl ~ # emerge --info '=dev-java/jackson-dataformat-xml-2.13.2::gentoo' Portage 3.0.30 (python 3.9.11-final-0, default/linux/amd64/17.1/desktop, gcc-11.2.1, glibc-2.34-r10, 5.4.72-gentoo-f2 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.4.72-gentoo-f2-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-glibc2.34 KiB Mem: 8067720 total, 3352364 free KiB Swap: 2097148 total, 2097148 free Timestamp of repository gentoo: Fri, 29 Apr 2022 10:30:01 +0000 Head commit of repository gentoo: 7429e7aa0fde1090aeb569650abd41b39f2ab8b3 sh bash 5.1_p16 ld GNU ld (Gentoo 2.37_p1 p2) 2.37 app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r9::gentoo dev-lang/python: 3.9.11::gentoo, 3.10.3::gentoo dev-lang/rust: 1.59.0::gentoo dev-util/cmake: 3.22.2::gentoo dev-util/meson: 0.60.3::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.15.1-r2::gentoo, 1.16.5::gentoo sys-devel/binutils: 2.37_p1-r2::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 13.0.1::gentoo sys-devel/gcc: 11.2.1_p20220115::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/lld: 13.0.1::gentoo sys-devel/llvm: 13.0.1::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.34-r10::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/php/fpm-php8.0/ext-active/ /etc/php/phpdbg-php8.0/ext-active/ /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=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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://gentoo.mirrors.tera-byte.com/ http://gentoo.gossamerhost.com http://gentoo.osuosl.org/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" 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 alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus doc dri dts dvd dvdr elogind encode exif flac fontconfig fortran gcj gdbm gif gpm gtk gui guile iconv icu ipv6 java jpeg kpathsea lcms libglvnd libnotify libtirpc mad mmx mng mp3 mp4 mpeg multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr sse sse2 ssl startup-notification svg tcltk tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel" 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="karbon sheets words" CAMERAS="konica minolta 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 greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat 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, LANG, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS owl ~ #
Created attachment 775533 [details] Emerge log
Bug 841752 is likely related.
I can reproduce this error: 1. compile dev-java/stax2-api with jdk:1.8 2. switch to jdk::11 or jdk:17 3. compile dev-java/jackson-dataformat-xml
Based on the reference to bug 841785 I re-emerged dev-java/stax2-api with java 11 set as the system-vm. emerge -u jackson-dataformat-xml then completed successfully. The output showed that both source 1.8 and source 9 parts of the build were completed. I assume that my particular issue is solved. Since this package is installed as dependency of a dependency of...., I have no idea what I would need to do to exercise the code.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fa86151f851ffabf65b67616ed3eb253a32c075 commit 2fa86151f851ffabf65b67616ed3eb253a32c075 Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2022-05-04 20:01:09 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-05-04 20:03:01 +0000 dev-java/jackson-dataformat-xml: depend on stax2-api with module-info compiled Only starting with stax2-api-4.2.1-r1 the resulting stax2-api.jar will have a module-info.java compiled in (as module-info.class), which fixes bug #841744. Closes: https://bugs.gentoo.org/841755 Signed-off-by: Florian Schmaus <flow@gentoo.org> dev-java/jackson-dataformat-xml/jackson-dataformat-xml-2.13.2-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41073ec3914bf2d59fd3abec24911de94462f004 commit 41073ec3914bf2d59fd3abec24911de94462f004 Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2022-05-04 08:22:59 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-05-04 20:03:01 +0000 dev-java/jackson-dataformat-xml: dependency update Bug: https://bugs.gentoo.org/841755 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/25316 Signed-off-by: Florian Schmaus <flow@gentoo.org> .../jackson-dataformat-xml-2.13.2-r1.ebuild | 110 +++++++++++++++++++++ 1 file changed, 110 insertions(+)