* ERROR: dev-java/swt-4.10::gentoo failed (compile phase): * cannot build AWT library * ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome_systemd-20210104-123916 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-10.2.0 * clang version 11.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/11/bin /usr/lib/llvm/11 11.0.1 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.9 (fallback) [3] python3.7 (fallback) [4] python2.7 (fallback) [5] pypy3 (fallback) Available Ruby profiles: (none found) Available Rust versions: [1] rust-1.48.0 * The following VMs are available for generation-2: 1) OpenJDK 8.272_p10 [openjdk-8] *) AdoptOpenJDK 8.272_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-8 [2] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.8.4 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Mon Jan 18 11:03:52 PM UTC 2021 emerge -qpvO dev-java/swt [ebuild N ] dev-java/swt-4.10 USE="cairo opengl -webkit"
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