https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-java/openjfx-11.0.11_p1 fails to compile (lto). Discovered on: amd64 (internal ref: lto_tinderbox) NOTE: This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Created attachment 791390 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: ../../../gstreamer-lite/gstreamer/gst/gst_private.h:36:10: fatal error: glib.h: No such file or directory FAILURE: Build failed with an exception. Package 'alsa', required by 'virtual:world', not found file or directory '/var/tmp/portage/dev-java/openjfx-11.0.11_p1/work/rt-11.0.11+1/buildSrc/src/main/java', not found file or directory '/var/tmp/portage/dev-java/openjfx-11.0.11_p1/work/rt-11.0.11+1/buildSrc/src/main/resources', not found file or directory '/var/tmp/portage/dev-java/openjfx-11.0.11_p1/work/rt-11.0.11+1/buildSrc/src/test/groovy', not found file or directory '/var/tmp/portage/dev-java/openjfx-11.0.11_p1/work/rt-11.0.11+1/buildSrc/src/test/java', not found file or directory '/var/tmp/portage/dev-java/openjfx-11.0.11_p1/work/rt-11.0.11+1/buildSrc/src/test/resources', not found file or directory '/var/tmp/portage/dev-java/openjfx-11.0.11_p1/work/rt-11.0.11+1/modules/javafx.base/src/main/resources', not found file or directory '/var/tmp/portage/dev-java/openjfx-11.0.11_p1/work/rt-11.0.11+1/modules/javafx.graphics/src/shaders/java', not found file or directory '/var/tmp/portage/dev-java/openjfx-11.0.11_p1/work/rt-11.0.11+1/modules/javafx.graphics/src/shaders/resources', not found ../../../gstreamer-lite/gstreamer/gst/gst_private.h:36:10: fatal error: glib.h: No such file or directory
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6da9779d9b80919be7a96f11a5316f74746d4d0f commit 6da9779d9b80919be7a96f11a5316f74746d4d0f Author: Sam James <sam@gentoo.org> AuthorDate: 2024-03-06 15:18:41 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-06 15:21:36 +0000 dev-java/openjfx: various fixes to 11.x I don't even know where to start with this, so I'll keep it brief before I pop several veins. * Filter LTO (bundled gstreamer breaks). * Waste several hours debugging broken arg handling, despite inventing a DSL for the build system, making the same errors as CMake. Most of the build failure bugs linked are actually because of whitespace _somewhere_ within {C,CXX,LD}FLAGS. Strip it. * Respect AR, CC, CXX. * Various Modern C fixes from Fedora (and are upstream). Bug: https://bugs.gentoo.org/713488 Bug: https://bugs.gentoo.org/857942 Closes: https://bugs.gentoo.org/715092 Closes: https://bugs.gentoo.org/719484 Closes: https://bugs.gentoo.org/799227 Closes: https://bugs.gentoo.org/915727 Closes: https://bugs.gentoo.org/919413 Signed-off-by: Sam James <sam@gentoo.org> dev-java/openjfx/files/11/0001-c99.patch | 22 ++ dev-java/openjfx/files/11/0002-c99.patch | 18 ++ dev-java/openjfx/files/11/0003-c99.patch | 19 ++ dev-java/openjfx/files/11/respect-cc.patch | 15 ++ .../files/11/strip-blank-elements-flags.patch | 29 +++ dev-java/openjfx/openjfx-11.0.11_p1-r2.ebuild | 231 +++++++++++++++++++++ 6 files changed, 334 insertions(+)
ci has reproduced this issue with version 11.0.11_p1-r2 - Updating summary.
ci has reproduced this issue with version 11.0.11_p1-r3 - Updating summary.
Unclear what this ever had to do with LTO, but the recent tinderbox reproducers happened despite the package having filter-lto.
it has dev-libs/glib:2 in the deps so it's already fixed imo-