Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 906987

Summary: dev-java/openjdk-17.0.8.1_p1 fails to compile (MUSL-SYSTEM): attachListener_linux.cpp:448:17: error: aggregate AttachListener::vm_start()::stat64 st has incomplete type and cannot be defined
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Java team <java>
Status: CONFIRMED ---    
Severity: normal CC: gentoo, java, sam, vimproved
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/openjdk/jdk/pull/16329
https://bugs.openjdk.org/browse/JDK-8318696
https://bugs.openjdk.org/browse/JDK-8280747
https://bugs.openjdk.org/browse/JDK-8062658
https://bugs.openjdk.org/browse/JDK-8324153
https://bugs.openjdk.org/browse/JDK-8165620
https://github.com/gentoo/gentoo/pull/36389
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 903611, 907680    
Attachments: build.log.xz

Description Agostino Sarubbo gentoo-dev 2023-05-23 11:44:29 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-java/openjdk-17.0.6_p10-r1 fails to compile (MUSL-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Comment 1 Agostino Sarubbo gentoo-dev 2023-05-23 11:44:32 UTC
Created attachment 862262 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2023-05-23 11:44:33 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


checking for jtreg test harness... no, not found
configure: Could not find //usr/lib/x86_64-linux-gnu/libfreetype.so. Ignoring location.
configure: Could not find //usr/lib64/libfreetype.so. Ignoring location.
/var/tmp/portage/dev-java/openjdk-17.0.6_p10-r1/work/jdk17u-jdk-17.0.6-ga/src/hotspot/os/linux/attachListener_linux.cpp:448:17: error: aggregate 'AttachListener::vm_start()::stat64 st' has incomplete type and cannot be defined
Comment 3 Agostino Sarubbo gentoo-dev 2024-02-06 09:12:58 UTC
tinderbox_musl has reproduced this issue with version 17.0.8.1_p1 - Updating summary.
Comment 4 Larry the Git Cow gentoo-dev 2024-03-03 16:46:08 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8422ed33a957db3439be1e36bee4ed455c6f50f

commit d8422ed33a957db3439be1e36bee4ed455c6f50f
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-03-03 16:45:22 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-03-03 16:45:57 +0000

    dev-java/openjdk: Apply musl-1.2.4 largefile workaround
    
    Bug: https://bugs.gentoo.org/906987
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 dev-java/openjdk/openjdk-11.0.20.1_p1.ebuild | 3 +++
 dev-java/openjdk/openjdk-17.0.8.1_p1.ebuild  | 3 +++
 dev-java/openjdk/openjdk-21.0.1_p12.ebuild   | 3 +++
 3 files changed, 9 insertions(+)
Comment 5 Volkmar W. Pogatzki 2024-04-28 12:39:57 UTC
Does it work now? Can this bug be closed on removal of 17.0.10_p7?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-28 12:43:12 UTC
(In reply to Volkmar W. Pogatzki from comment #5)
> Does it work now? Can this bug be closed on removal of 17.0.10_p7?

A proper fix would backport the upstream patches, not add the temporary workaround, so no.
Comment 7 Larry the Git Cow gentoo-dev 2024-05-09 11:42:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a91ff9237d9ef2048a5c530659bbf32fcba5775

commit 3a91ff9237d9ef2048a5c530659bbf32fcba5775
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-04-23 17:10:21 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2024-05-09 11:42:05 +0000

    dev-java/openjdk: add 8.412_p08, 11.0.23_p9, 17.0.11_p9, 21.0.3_p9
    
    Bug: https://bugs.gentoo.org/906987
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 dev-java/openjdk/Manifest                  |   4 +
 dev-java/openjdk/openjdk-11.0.23_p9.ebuild | 311 ++++++++++++++++++++++++++++
 dev-java/openjdk/openjdk-17.0.11_p9.ebuild | 320 +++++++++++++++++++++++++++++
 dev-java/openjdk/openjdk-21.0.3_p9.ebuild  | 319 ++++++++++++++++++++++++++++
 dev-java/openjdk/openjdk-8.412_p08.ebuild  | 283 +++++++++++++++++++++++++
 5 files changed, 1237 insertions(+)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-10 01:48:21 UTC
I don't, at a glance, see the patches backported upstream in 8.x. Dunno about the others.