* ERROR: sys-devel/gettext-0.21::gentoo failed (install phase): * /var/tmp/portage/sys-devel/gettext-0.21/image/usr/share/gettext/*.jar does not exist * * Call stack: * ebuild.sh, line 125: Called src_install * environment, line 3298: Called multilib-minimal_src_install * environment, line 2735: Called multilib_src_install_all * environment, line 3196: Called java-pkg_dojar '/var/tmp/portage/sys-devel/gettext-0.21/image/usr/share/gettext/*.jar' * environment, line 1407: Called die * The specific snippet of code: * die "${jar} does not exist"; * GENTOO_VM=openjdk-bin-15 CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-15.0.1_p9" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
Created attachment 686691 [details] build.log.bz2
[ebuild rR ] sys-devel/gettext-0.21::gentoo USE="acl cxx git java ncurses nls openmp -cvs -doc -emacs -static-libs" ABI_X86="32 (64) (-x32)" 0 KiB
For those who find this later: You have to make sure your system vm is not 11, 16 or 17. openjdk-bin-8 is the only one that worked for me.
I can confirm (partially) that Brian McKee is right. Since an application on my machine strictly requires Java VM 11+, I locally installed openjdk-bin-17 from pre-built binary. sys-dev/gettext failed to be emerged. I switched back to openjdk-bin:8 from gentoo repo and the compilation succeeds.
*** Bug 854786 has been marked as a duplicate of this bug. ***
*** Bug 847538 has been marked as a duplicate of this bug. ***
Created attachment 788303 [details] /var/tmp/portage/sys-devel/gettext-0.21-r1/temp/class-version-verify.log * Incorrect bytecode version found * in file: /var/tmp/portage/sys-devel/gettext-0.21-r1/image/usr/share/gettext/gettext.jar * See /var/tmp/portage/sys-devel/gettext-0.21-r1/temp/class-version-verify.log for more details. * ERROR: sys-devel/gettext-0.21-r1::gentoo failed (install phase): * Incorrect bytecode found * * Call stack: * ebuild.sh, line 127: Called src_install * environment, line 3299: Called multilib-minimal_src_install * environment, line 2738: Called multilib_src_install_all * environment, line 3196: Called java-pkg_dojar '/var/tmp/portage/sys-devel/gettext-0.21-r1/image/usr/share/gettext/gettext.jar' '/var/tmp/portage/sys-devel/gettext-0.21-r1/image/usr/share/gettext/libintl.jar' * environment, line 1470: Called java-pkg_verify-classes '/var/tmp/portage/sys-devel/gettext-0.21-r1/image/usr/share/gettext/gettext.jar' * environment, line 2555: Called die * The specific snippet of code: * die "Incorrect bytecode found"; * * If you need support, post the output of `emerge --info '=sys-devel/gettext-0.21-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/gettext-0.21-r1::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM=openjdk-11 CLASSPATH="" JAVA_HOME="/usr/lib64/openjdk-11" JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="" and of course, the output of emerge --info =gettext-0.21 * The complete build log is located at '/var/tmp/portage/sys-devel/gettext-0.21-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gettext-0.21-r1/temp/environment'. * Working directory: '/var/tmp/portage/sys-devel/gettext-0.21-r1/work/gettext-0.21' * S: '/var/tmp/portage/sys-devel/gettext-0.21-r1/work/gettext-0.21' >>> Failed to emerge sys-devel/gettext-0.21-r1, Log file: >>> '/var/tmp/portage/sys-devel/gettext-0.21-r1/temp/build.log' * Messages for package sys-devel/gettext-0.21-r1: * Incorrect bytecode version found * in file: /var/tmp/portage/sys-devel/gettext-0.21-r1/image/usr/share/gettext/gettext.jar * See /var/tmp/portage/sys-devel/gettext-0.21-r1/temp/class-version-verify.log for more details. * ERROR: sys-devel/gettext-0.21-r1::gentoo failed (install phase): * Incorrect bytecode found
(In reply to Volkmar W. Pogatzki from comment #7) This appears to be a different error from the one being addressed in this bug report.
From gettext-tools/config.log with openjdk-17 selected: configure:7306: checking for Java compiler configure:7429: /usr/lib64/openjdk-17/bin/javac -d . conftest.java configure:7458: /usr/lib64/openjdk-17/bin/javac -target 11 -d . conftest.java warning: target release 11 conflicts with default source release 17 configure:7487: /usr/lib64/openjdk-17/bin/javac -target 11 -source 1.6 -d . conftest.java warning: [options] bootstrap class path not set in conjunction with -source 6 error: Source option 6 is no longer supported. Use 7 or later. configure:7698: javac -d . conftest.java configure:7727: javac -target 11 -d . conftest.java warning: target release 11 conflicts with default source release 17 configure:7756: javac -target 11 -source 1.6 -d . conftest.java warning: [options] bootstrap class path not set in conjunction with -source 6 error: Source option 6 is no longer supported. Use 7 or later. configure:7793: result: no
Bug #846782 references to dev-java/ant-core having the same problem.
(In reply to Volkmar W. Pogatzki from comment #10) > Bug #846782 references to dev-java/ant-core having the same problem. Sorry, different matter.
Works fine with openjdk-11. According to comment 0, it fails with openjdk-15. Updating the whiteboard to reflect that.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d17387e195c838d9784a24dde1666e9a01730b07 commit d17387e195c838d9784a24dde1666e9a01730b07 Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2022-06-28 10:12:30 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-29 08:41:57 +0000 sys-devel/gettext: restrict to jdk:1.8 Closes: https://bugs.gentoo.org/770508 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/26113 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gettext/{gettext-0.21-r1.ebuild => gettext-0.21-r2.ebuild} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Restricting to JDK 1.8 is not really a "fix", and it is overly restrictive anyway.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9c52f3ff59beedb1bfd032d68981988337fdf74 commit e9c52f3ff59beedb1bfd032d68981988337fdf74 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2022-06-29 12:12:01 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2022-06-29 12:12:58 +0000 Revert "sys-devel/gettext: restrict to jdk:1.8" This package works with JDK 11, so restricting it to 1.8 makes no sense. Reverts: d17387e195c838d9784a24dde1666e9a01730b07 Bug: https://bugs.gentoo.org/770508 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-devel/gettext/{gettext-0.21-r2.ebuild => gettext-0.21-r1.ebuild} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
(In reply to Larry the Git Cow from comment #15) > [...] > This package works with JDK 11, so restricting it to 1.8 makes no sense. > With jdk-11 it would run into bug #855134
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6cbc5e4640c6ad90a0c539a9125954d4cb8e0a7 commit c6cbc5e4640c6ad90a0c539a9125954d4cb8e0a7 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2022-06-29 17:27:00 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2022-06-29 19:44:37 +0000 sys-devel/gettext: ensure libintl.jar gets build with desired target Closes: https://bugs.gentoo.org/770508 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-devel/gettext/gettext-0.21-r1.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e227bcf7752f4e1389bfb61373136a1956632eb2 commit e227bcf7752f4e1389bfb61373136a1956632eb2 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2022-06-29 15:32:55 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2022-06-29 19:44:34 +0000 sys-devel/gettext: pass JAVACFLAGS in JAVAC variable Also avoid building java classes multiple times when muiltilib is enabled. Bug: https://bugs.gentoo.org/770508 Closes: https://bugs.gentoo.org/855134 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-devel/gettext/gettext-0.21-r1.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)