Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 770508 - sys-devel/gettext-0.21[java] with >=dev-java/openjdk-15 - ERROR in install phase /var/tmp/portage/sys-devel/gettext-0.21/image/usr/share/gettext/*.jar does not exist
Summary: sys-devel/gettext-0.21[java] with >=dev-java/openjdk-15 - ERROR in install ph...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
: 847538 854786 (view as bug list)
Depends on:
Blocks: jdk17
  Show dependency tree
 
Reported: 2021-02-14 14:01 UTC by jospezial
Modified: 2022-06-29 19:45 UTC (History)
5 users (show)

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


Attachments
build.log.bz2 (build.log.bz2,60.77 KB, application/x-bzip)
2021-02-14 14:10 UTC, jospezial
Details
/var/tmp/portage/sys-devel/gettext-0.21-r1/temp/class-version-verify.log (class-version-verify.log.txt,390 bytes, text/plain)
2022-06-28 07:54 UTC, Volkmar W. Pogatzki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2021-02-14 14:01:11 UTC
* 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=""
Comment 1 jospezial 2021-02-14 14:10:23 UTC
Created attachment 686691 [details]
build.log.bz2
Comment 2 jospezial 2021-02-14 14:14:17 UTC
[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
Comment 3 Brian McKee 2022-01-04 04:31:28 UTC
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.
Comment 4 Errelin 2022-01-06 02:06:43 UTC
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.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-28 07:23:51 UTC
*** Bug 854786 has been marked as a duplicate of this bug. ***
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-28 07:24:01 UTC
*** Bug 847538 has been marked as a duplicate of this bug. ***
Comment 7 Volkmar W. Pogatzki 2022-06-28 07:54:51 UTC
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
Comment 8 Mike Gilbert gentoo-dev 2022-06-28 16:50:17 UTC
(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.
Comment 9 Mike Gilbert gentoo-dev 2022-06-28 16:54:40 UTC
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
Comment 10 Volkmar W. Pogatzki 2022-06-28 16:59:53 UTC
Bug #846782 references to dev-java/ant-core having the same problem.
Comment 11 Volkmar W. Pogatzki 2022-06-28 17:18:17 UTC
(In reply to Volkmar W. Pogatzki from comment #10)
> Bug #846782 references to dev-java/ant-core having the same problem.

Sorry, different matter.
Comment 12 Mike Gilbert gentoo-dev 2022-06-28 17:33:45 UTC
Works fine with openjdk-11. According to comment 0, it fails with openjdk-15. Updating the whiteboard to reflect that.
Comment 13 Larry the Git Cow gentoo-dev 2022-06-29 08:42:12 UTC
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(-)
Comment 14 Mike Gilbert gentoo-dev 2022-06-29 12:10:11 UTC
Restricting to JDK 1.8 is not really a "fix", and it is overly restrictive anyway.
Comment 15 Larry the Git Cow gentoo-dev 2022-06-29 12:15:16 UTC
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(-)
Comment 16 Volkmar W. Pogatzki 2022-06-29 13:47:19 UTC
(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
Comment 17 Larry the Git Cow gentoo-dev 2022-06-29 19:45:36 UTC
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(-)