The package fails to compile: * Package: dev-java/bcutil-1.71 * Repository: gentoo * Maintainer: java@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Package: dev-java/bcutil-1.71 * Repository: gentoo * Maintainer: java@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Using: openjdk-17 >>> Unpacking source... >>> Unpacking bc-java-r1rv71.tar.gz to /var/tmp/portage/dev-java/bcutil-1.71/work >>> Source unpacked in /var/tmp/portage/dev-java/bcutil-1.71/work >>> Preparing source in /var/tmp/portage/dev-java/bcutil-1.71/work/bc-java-r1rv71/util ... ../test/libs/jna-platform-4.3.0.jar ../test/libs/jna-4.3.0.jar ../libs/mail.jar ../libs/junit.jar ../libs/jakarta.activation-api-2.0.0.jar ../libs/activation.jar ../libs/jakarta.mail-2.0.1.jar ../config/checkstyle/lib/methodchecker.jar >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-java/bcutil-1.71/work/bc-java-r1rv71/util ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-java/bcutil-1.71/work/bc-java-r1rv71/util ... javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /usr/share/bcprov/lib/bcprov.jar @sources.lst warning: [options] bootstrap class path not set in conjunction with -source 8 src/main/java/org/bouncycastle/oer/its/ieee1609dot2/Opaque.java:7: warning: [removal] AccessController in java.security has been deprecated and marked for removal import java.security.AccessController; ^ src/main/java/org/bouncycastle/oer/its/ItsUtils.java:4: warning: [removal] AccessController in java.security has been deprecated and marked for removal import java.security.AccessController; ^ src/main/java/org/bouncycastle/oer/OEROptional.java:4: warning: [removal] AccessController in java.security has been deprecated and marked for removal import java.security.AccessController; ^ src/main/java/org/bouncycastle/oer/its/ieee1609dot2/Opaque.java:65: warning: [removal] AccessController in java.security has been deprecated and marked for removal return AccessController.doPrivileged(new PrivilegedAction<T>() ^ src/main/java/org/bouncycastle/oer/its/ItsUtils.java:61: warning: [removal] AccessController in java.security has been deprecated and marked for removal return AccessController.doPrivileged(new PrivilegedAction<List<T>>() ^ src/main/java/org/bouncycastle/oer/OEROptional.java:71: warning: [removal] AccessController in java.security has been deprecated and marked for removal return AccessController.doPrivileged(new PrivilegedAction<T>() ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 7 warnings javac -source 9 -target 9 -d target/classes -encoding UTF-8 --module-path /usr/share/bcprov/lib/bcprov.jar --module-version 1.71 src/main/jdk1.9/module-info.java warning: [options] system modules path not set in conjunction with -source 9 src/main/jdk1.9/module-info.java:3: error: module not found: org.bouncycastle.provider requires org.bouncycastle.provider; ^ 1 error 1 warning * ERROR: dev-java/bcutil-1.71::gentoo failed (compile phase): * ejavac failed * * Call stack: * ebuild.sh, line 127: Called src_compile * environment, line 2366: Called java-pkg-simple_src_compile * environment, line 876: Called ejavac '-d' 'target/classes' '-encoding' 'UTF-8' '--module-path' '/usr/share/bcprov/lib/bcprov.jar' '--module-version' '1.71' 'src/main/jdk1.9/module-info.java' * environment, line 629: Called die * The specific snippet of code: * "${args[@]}" || die "ejavac failed" * * If you need support, post the output of `emerge --info '=dev-java/bcutil-1.71::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-java/bcutil-1.71::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM=openjdk-17 CLASSPATH="" JAVA_HOME="/usr/lib64/openjdk-17" JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="" and of course, the output of emerge --info =bcutil-1.71 * The complete build log is located at '/var/tmp/portage/dev-java/bcutil-1.71/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-java/bcutil-1.71/temp/environment'. * Working directory: '/var/tmp/portage/dev-java/bcutil-1.71/work/bc-java-r1rv71/util' * S: '/var/tmp/portage/dev-java/bcutil-1.71/work/bc-java-r1rv71/util' Reproducible: Always javac -source 9 -target 9 -d target/classes -encoding UTF-8 --module-path /usr/share/bcprov/lib/bcprov.jar --module-version 1.71 src/main/jdk1.9/module-info.java warning: [options] system modules path not set in conjunction with -source 9 Where this 9 comes from? I suspect there may be something with java-pkg-simple_src_compile?
This happens when dev-java/bcprov was compiled with system-vm 1.8. To avoid this, set system-vm to 11 or 17. ("eselect java-vm set system openjdk-11")
(In reply to Volkmar W. Pogatzki from comment #1) > This happens when dev-java/bcprov was compiled with system-vm 1.8. > To avoid this, set system-vm to 11 or 17. > ("eselect java-vm set system openjdk-11") If I set system-vm to either 11 or 17, I get this while trying to merge bcprov-1.71: >>> Emerging (1 of 5) dev-java/bcprov-1.71::gentoo * bc-java-r1rv71.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking bc-java-r1rv71.tar.gz to /var/tmp/portage/dev-java/bcprov-1.71/work >>> Source unpacked in /var/tmp/portage/dev-java/bcprov-1.71/work >>> Preparing source in /var/tmp/portage/dev-java/bcprov-1.71/work/bc-java-r1rv71/prov ... ../test/libs/jna-platform-4.3.0.jar ../test/libs/jna-4.3.0.jar ../libs/mail.jar ../libs/junit.jar ../libs/jakarta.activation-api-2.0.0.jar ../libs/activation.jar ../libs/jakarta.mail-2.0.1.jar ../config/checkstyle/lib/methodchecker.jar >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-java/bcprov-1.71/work/bc-java-r1rv71/prov ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-java/bcprov-1.71/work/bc-java-r1rv71/prov ... javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 @sources.lst Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. javac -source 9 -target 9 -d target/classes -encoding UTF-8 --module-version 1.71 src/main/jdk1.9/module-info.java javac: invalid source release: 9 Usage: javac <options> <source files> Despite the system-vm is set to 11 or 17, it starts compiling with 1.8. And than bails out with invalid source release: 9. I may have to temporary unmerge icedtea, to make it work? What do you think?
(In reply to Attila Tóth from comment #2) > [...] > If I set system-vm to either 11 or 17, I get this while trying to merge > bcprov-1.71: > [...] For bcprov see https://bugs.gentoo.org/847592#c5 (Set JAVA_PKG_DEBUG=true in /etc/portage/make.conf)
(In reply to Volkmar W. Pogatzki from comment #3) > (In reply to Attila Tóth from comment #2) > > [...] > > If I set system-vm to either 11 or 17, I get this while trying to merge > > bcprov-1.71: > > [...] > > For bcprov see https://bugs.gentoo.org/847592#c5 > (Set JAVA_PKG_DEBUG=true in /etc/portage/make.conf) Thank you for pointing this out!
Temporary unmerging icedtea let the ebuild and its dependecies compile.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75c1d546674404faca44134967e34837ce2b40d1 commit 75c1d546674404faca44134967e34837ce2b40d1 Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2022-06-05 11:46:52 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-06-06 07:42:23 +0000 dev-java/bcprov: add java-pkg-2_pkg_setup Bug: https://bugs.gentoo.org/847592 Closes: https://bugs.gentoo.org/849299 Closes: https://bugs.gentoo.org/847454 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Florian Schmaus <flow@gentoo.org> dev-java/bcprov/bcprov-1.71-r1.ebuild | 111 ++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+)