Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 857942 - dev-java/openjfx-11.0.11_p1-r3 fails to compile: gst_private.h:36:10: fatal error: glib.h: No such file or directory
Summary: dev-java/openjfx-11.0.11_p1-r3 fails to compile: gst_private.h:36:10: fatal e...
Status: CONFIRMED
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:
Depends on:
Blocks: missing-depend
  Show dependency tree
 
Reported: 2022-07-14 11:45 UTC by Agostino Sarubbo
Modified: 2024-03-25 03:50 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,583.80 KB, text/plain)
2022-07-14 11:45 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-07-14 11:45:30 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-14 11:45:33 UTC
Created attachment 791390 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-14 11:45:36 UTC
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
Comment 3 Larry the Git Cow gentoo-dev 2024-03-06 15:21:56 UTC
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(+)
Comment 4 Agostino Sarubbo gentoo-dev 2024-03-06 15:33:34 UTC
ci has reproduced this issue with version 11.0.11_p1-r2 - Updating summary.
Comment 5 Agostino Sarubbo gentoo-dev 2024-03-12 07:39:38 UTC
ci has reproduced this issue with version 11.0.11_p1-r3 - Updating summary.
Comment 6 Eli Schwartz 2024-03-25 03:50:38 UTC
Unclear what this ever had to do with LTO, but the recent tinderbox reproducers happened despite the package having filter-lto.