Summary: | dev-java/swt-4.10-r2 : libjawt.so not found in the JDK being used for compilation! | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | drmccoy, fordfrog |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 796320 | ||
Bug Blocks: | |||
Attachments: |
emerge-info.txt
dev-java:swt-4.10:20210119-003405.log emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 emerge --info dev-java/openjdk:8 |
Description
Toralf Förster
2021-01-19 09:36:23 UTC
Created attachment 683668 [details]
emerge-info.txt
Created attachment 683671 [details]
dev-java:swt-4.10:20210119-003405.log
Created attachment 683674 [details]
emerge-history.txt
Created attachment 683677 [details]
environment
Created attachment 683680 [details]
etc.portage.tar.bz2
Created attachment 683683 [details]
logs.tar.bz2
Unable to duplicate this crash using the latest stable openjdk-bin-8.292_p10. Also unable to reproduce with openjdk-bin-11.0.11_p9-r1 The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a9c068b8c01c4806f2592527ec3465b403431ac commit 5a9c068b8c01c4806f2592527ec3465b403431ac Author: Wolfgang E. Sanyer <ezzieyguywuf@gmail.com> AuthorDate: 2021-05-03 19:34:20 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2021-05-16 19:28:49 +0000 dev-java/swt: update java dependencies Bug 766102 seems to be fixed with the latest stable openjdk-bin-8, however I think the bug remains open until the older open-jdk is removed from the tree. Signed-off-by: Wolfgang E. Sanyer <ezzieyguywuf@gmail.com> Bug: https://bugs.gentoo.org/766102 Closes: https://github.com/gentoo/gentoo/pull/20608/commits/a3aa8f14d78b836333dbf2fc6ea8a983d296afcb Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> dev-java/swt/{swt-4.10.ebuild => swt-4.10-r1.ebuild} | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) Getting the same error with dev-java/openjdk-8.292_p10. Noticed there was a USE named 'headless-awt' which I tried to enable, but dev-java/swt requires virtual/jdk[-headless-awt] so no luck trying if that could fix this error. If I only enabled the USE flag on dev-java/openjdk, the virtual naturally pulls in openjdk-bin without the flag enabled. the use flag must be disabled on the jdk that is used for compilation. otherwise the library is missing. Created attachment 725782 [details]
emerge --info dev-java/openjdk:8
I can confirm this with dev-java/openjdk-8.292_p10:
dev-java/openjdk-8.292_p10::gentoo was built with the following:
USE="alsa javafx jbootstrap pch source -cups -debug -doc -examples -headless-awt (-selinux)" ABI_X86="(64)"
I am having this issue too, using openjdk-bin-8.292_p10. I did some very minor digging, and apparently how libawt.so is detected in dev-java/swt-4.10-r2 in src_compile() is vastly changed from dev-java/swt-4.10-r1, and is most likely the reason why it fails to compile. For the record, I can successfully compile and install swt-4.10-r1, but swt-4.10-r2 always fails with the "missing libawt.so in JDK" error for me. it's an issue with openjdk-8 and openjdk-bin-8, they have wrong LDPATH in /usr/share/java-config-2/vm/openjdk-8 (/usr/share/java-config-2/vm/openjdk-bin-8 respectively). i added an workaround to the latest swt and when testing it, it worked for me. *** Bug 859253 has been marked as a duplicate of this bug. *** Same error reported for dev-java/swt-4.10-r2. Bug #859253 Updating title (In reply to Volkmar W. Pogatzki from comment #15) > Same error reported for dev-java/swt-4.10-r2. Bug #859253 Updating title. Closing this bug with reference to commit 49a1f153a7683d370c393f8faf8f5202c40fbdac Bug #859253 (In reply to Volkmar W. Pogatzki from comment #17) > Closing this bug with reference to commit > 49a1f153a7683d370c393f8faf8f5202c40fbdac Bug #859253 pls see bug 903107 |