Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 801277 - dev-java/swt-4.10-r1 - * libjawt.so not found in the JDK being used for compilation!
Summary: dev-java/swt-4.10-r1 - * libjawt.so not found in the JDK being used for comp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 903107
Blocks:
  Show dependency tree
 
Reported: 2021-07-09 07:13 UTC by Toralf Förster
Modified: 2023-09-16 09:31 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.44 KB, text/plain)
2021-07-09 07:13 UTC, Toralf Förster
Details
dev-java:swt-4.10-r1:20210709-071150.log (dev-java:swt-4.10-r1:20210709-071150.log,1.98 KB, text/plain)
2021-07-09 07:13 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,98.21 KB, text/plain)
2021-07-09 07:13 UTC, Toralf Förster
Details
environment (environment,143.28 KB, text/plain)
2021-07-09 07:13 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.49 KB, application/x-bzip)
2021-07-09 07:13 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,1.93 KB, application/x-bzip)
2021-07-09 07:13 UTC, Toralf Förster
Details
build.log (ppc64) (swt-4.10-r1:20210714-222052.log,2.30 KB, text/plain)
2021-07-14 23:58 UTC, ernsteiswuerfel
Details
build.log (ppc64, 4.10-r2) (swt-4.10-r2:20210717-200412.log,2.29 KB, text/plain)
2021-07-17 21:07 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-07-09 07:13:11 UTC
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/swt-4.10-r1/work ...
 * libjawt.so not found in the JDK being used for compilation!
 * ERROR: dev-java/swt-4.10-r1::gentoo failed (compile phase):
 *   cannot build AWT library
 * 
 * Call stack:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-j3-20210707-200943

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.1.0 *
/usr/lib/llvm/12
12.0.0
Python 3.9.6
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php7.3
  [2]   php7.4 *
  [3]   php8.0
  HEAD of ::gentoo
commit 241a2501ec840b47ce306588ecfaa86806c8ccd2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Jul 9 06:37:24 2021 +0000

    2021-07-09 06:37:20 UTC

emerge -qpvO dev-java/swt
[ebuild  N    ] dev-java/swt-4.10-r1  USE="cairo opengl -webkit"
Comment 1 Toralf Förster gentoo-dev 2021-07-09 07:13:12 UTC
Created attachment 722863 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-07-09 07:13:14 UTC
Created attachment 722866 [details]
dev-java:swt-4.10-r1:20210709-071150.log
Comment 3 Toralf Förster gentoo-dev 2021-07-09 07:13:15 UTC
Created attachment 722869 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-07-09 07:13:17 UTC
Created attachment 722872 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-07-09 07:13:18 UTC
Created attachment 722875 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-07-09 07:13:19 UTC
Created attachment 722878 [details]
logs.tar.bz2
Comment 7 ernsteiswuerfel archtester 2021-07-14 23:58:18 UTC
Created attachment 723919 [details]
build.log (ppc64)

Same on ppc64.
Comment 8 Volkmar W. Pogatzki 2021-07-15 08:07:58 UTC
Reproducible with openjdk-bin[headless-awt] which seems to be default in stage tarballs.
Comment 9 Larry the Git Cow gentoo-dev 2021-07-16 06:29:57 UTC
The bug has been closed via the following commit(s):

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

commit 8d042dab2a9e0106ea309e343dafdf58b9cb55f3
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2021-07-15 12:50:16 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2021-07-16 06:24:28 +0000

    dev-java/swt: jdk[-headless-awt]
    
    Closes: https://bugs.gentoo.org/801277
    Package-Manager: Portage-3.0.20, Repoman-3.0.2
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/21651
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/swt/swt-4.10-r2.ebuild | 174 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 174 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit 2267a9aff4d5f488c7c86c2fa809aa33961fa81d
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2021-07-15 11:47:59 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2021-07-16 06:24:23 +0000

    virtual/jdk: introduce headless-awt flag
    
    Bug: https://bugs.gentoo.org/801277
    Package-Manager: Portage-3.0.20, Repoman-3.0.2
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 virtual/jdk/jdk-1.8.0-r6.ebuild | 16 ++++++++++++++++
 virtual/jdk/jdk-11-r2.ebuild    | 14 ++++++++++++++
 virtual/jdk/metadata.xml        |  3 +++
 3 files changed, 33 insertions(+)
Comment 10 ernsteiswuerfel archtester 2021-07-17 21:07:06 UTC
Created attachment 724588 [details]
build.log (ppc64, 4.10-r2)

Sorry to hijack the bug but unfortunately -r2 does not fix the problem on ppc64. Still getting this:

[...]
>>> Preparing source in /var/tmp/portage/dev-java/swt-4.10-r2/work ...
 * Applying swt-4.10-as-needed-and-flag-fixes.patch ...                                          [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/swt-4.10-r2/work ...
Rewriting attributes
Rewriting ./build.xml
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/swt-4.10-r2/work ...
 * libjawt.so not found in the JDK being used for compilation!
 * ERROR: dev-java/swt-4.10-r2::gentoo failed (compile phase):
 *   cannot build AWT library
 * 
 * Call stack:
 *     ebuild.sh, line 127:  Called src_compile
 *   environment, line 3621:  Called die
 * The specific snippet of code:
 *                       die "cannot build AWT library";
 * 
 * If you need support, post the output of `emerge --info '=dev-java/swt-4.10-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/swt-4.10-r2::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-8  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-3.16.0"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =swt-4.10


 # emerge -pv swt

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-java/java-config-2.3.1:2::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild  N     ] dev-java/javatoolkit-0.6.7::gentoo  PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild  N     ] dev-java/icedtea-bin-3.16.0:8::gentoo  USE="alsa (big-endian) pulseaudio -cups -doc -examples -gtk -headless-awt (-selinux) -source" 0 KiB
[ebuild  N     ] dev-java/icedtea-sound-1.0.1::gentoo  USE="doc -test" 0 KiB
[ebuild  N     ] dev-java/openjdk-8.292_p10:8::gentoo  USE="alsa jbootstrap pch -cups -debug -doc -examples -headless-awt (-javafx) (-selinux) -source" 0 KiB
[ebuild  N     ] dev-java/ant-core-1.10.9::gentoo  USE="-doc -source" 0 KiB
[ebuild  N    ~] dev-java/swt-4.10-r2:4.10::gentoo  USE="cairo opengl -webkit" 0 KiB


 # find / -name libjawt.so
/opt/icedtea-bin-3.16.0/lib/ppc64/libjawt.so
/opt/icedtea-bin-3.16.0/jre/lib/ppc64/libjawt.so
/usr/lib64/openjdk-8/lib/ppc64/libjawt.so
/usr/lib64/openjdk-8/jre/lib/ppc64/libjawt.so
Comment 11 Miroslav Šulc gentoo-dev 2021-07-18 06:16:56 UTC
should be fixed now
Comment 12 ernsteiswuerfel archtester 2021-07-18 21:52:33 UTC
(In reply to Miroslav Šulc from comment #11)
> should be fixed now
Yes, now it builds ok on ppc64. Thanks!