Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713274 - dev-java/openjfx-11.0.7_p0 build error: error: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations]
Summary: dev-java/openjfx-11.0.7_p0 build error: error: ‘GTimeVal’ is deprecated: Use ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
: 713324 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-03-18 17:40 UTC by Johannes Hirte
Modified: 2020-03-19 18:10 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Hirte 2020-03-18 17:40:48 UTC
Building dev-java/openjfx-11.0.7_p0 fails with this error:

cc1plus: all warnings being treated as errors
Starting process 'command 'gcc''. Working directory: /var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics Command: gcc -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wno-error=cast-function-type -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -O2 -march=znver1 -mtune=znver1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -ftree-vectorize -fvect-cost-model -pipe -I/usr/lib64/openjdk-11/include -I/usr/lib64/openjdk-11/include/linux -c -ffunction-sections -fdata-sections -O2 -DNDEBUG -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/lib64/libffi/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Werror -I/var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics/build/gensrc/headers/javafx.graphics -o /var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics/build/native/glass/linux/glassgtk2/glass_window_ime.obj /var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics/src/main/native-glass/gtk/glass_window_ime.cpp
Successfully started process 'command 'gcc''
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from /var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics/src/main/native-glass/gtk/glass_window.h:28,
                 from /var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics/src/main/native-glass/gtk/glass_window_ime.cpp:27:
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: error: ‘GTypeDebugFlags’ is deprecated [-Werror=deprecated-declarations]
  236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
      |                                                                ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from /var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics/src/main/native-glass/gtk/glass_window.h:28,
                 from /var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics/src/main/native-glass/gtk/glass_window_ime.cpp:27:
/usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here
  685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36;
      |   ^~~~~~~~~~~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
                 from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:126,
                 from /var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics/src/main/native-glass/gtk/glass_window.h:28,
                 from /var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics/src/main/native-glass/gtk/glass_window_ime.cpp:27:
/usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: error: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations]
   73 |   GTimeVal last_popdown;
      |            ^~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from /var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics/src/main/native-glass/gtk/glass_window.h:28,
                 from /var/tmp/portage/dev-java/openjfx-11.0.7_p0/work/rt-11.0.7+0/modules/javafx.graphics/src/main/native-glass/gtk/glass_window_ime.cpp:27:
/usr/include/glib-2.0/glib/gtypes.h:549:26: note: declared here
  549 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
      |                          ^~~~~~~~
cc1plus: all warnings being treated as errors

> Task :graphics:ccLinuxGlassGlassgtk2 FAILED
:graphics:ccLinuxGlassGlassgtk2 (Thread[Task worker for ':' Thread 3,5,main]) completed. Took 7.783 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':graphics:ccLinuxGlassGlassgtk2'.
> java.util.concurrent.ExecutionException: org.gradle.process.internal.ExecException: Process 'command 'gcc'' finished with non-zero exit value 1


GTimeVal was deprecated in glib-2.61.2: https://tecnocode.co.uk/2019/08/24/gtimeval-deprecation-in-glib-2-61-2/

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2020-03-18 21:37:13 UTC
The bug has been closed via the following commit(s):

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

commit a1bc884157367d9a8781b578e4b8abb02e705d53
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-03-18 21:33:08 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-03-18 21:36:25 +0000

    dev-java/openjfx: append -Wno-error
    
    Closes: https://bugs.gentoo.org/713274
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/openjfx/openjfx-11.0.6_p2.ebuild | 4 +++-
 dev-java/openjfx/openjfx-11.0.7_p0.ebuild | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-03-19 07:47:48 UTC
*** Bug 713324 has been marked as a duplicate of this bug. ***
Comment 3 Dennis Schridde 2020-03-19 12:37:04 UTC
(In reply to Larry the Git Cow from comment #1)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=a1bc884157367d9a8781b578e4b8abb02e705d53
> 
> commit a1bc884157367d9a8781b578e4b8abb02e705d53
> Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
> AuthorDate: 2020-03-18 21:33:08 +0000
> Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
> CommitDate: 2020-03-18 21:36:25 +0000
> 
>     dev-java/openjfx: append -Wno-error

This does not work, because -Werror comes later in the command line than -Wno-error.
Comment 4 Larry the Git Cow gentoo-dev 2020-03-19 17:01:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23f4c05c9040ceb18749f0374d2fcd7c3691dee0

commit 23f4c05c9040ceb18749f0374d2fcd7c3691dee0
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-03-19 16:54:51 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-03-19 17:01:14 +0000

    dev-java/openjfx: remove more Werror
    
    Bug: https://bugs.gentoo.org/713274
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/openjfx/files/11/wno-error.patch | 43 +++++++++++++++++++++++++++++++
 dev-java/openjfx/openjfx-11.0.7_p0.ebuild |  1 +
 2 files changed, 44 insertions(+)
Comment 5 Georgy Yakovlev archtester gentoo-dev 2020-03-19 17:02:40 UTC
(In reply to Dennis Schridde from comment #3)
> (In reply to Larry the Git Cow from comment #1)
> > The bug has been closed via the following commit(s):
> > 
> > https://gitweb.gentoo.org/repo/gentoo.git/commit/
> > ?id=a1bc884157367d9a8781b578e4b8abb02e705d53
> > 
> > commit a1bc884157367d9a8781b578e4b8abb02e705d53
> > Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
> > AuthorDate: 2020-03-18 21:33:08 +0000
> > Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
> > CommitDate: 2020-03-18 21:36:25 +0000
> > 
> >     dev-java/openjfx: append -Wno-error
> 
> This does not work, because -Werror comes later in the command line than
> -Wno-error.

can you try again with the patch?
Comment 6 Johannes Hirte 2020-03-19 18:10:33 UTC
dev-java/openjfx-11.0.7_p0 builds now with dev-libs/glib-2.62.5