^ <scratch space>:8:6: note: expanded from here GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\"" ^ /var/tmp/portage/x11-libs/gtk+-2.24.33-r2/work/gtk+-2.24.33/gtk/gtkscale.c:1474:50: error: incompatible function pointer types passing 'GCompareFunc' (aka 'int (*)(const void *, const void *)') to parameter of type 'GCompareDataFunc' (aka 'int (*)(const void *, const void *, void *)') [-Werror,-Wincompatible-function-pointer-types] (GCompareFunc) compare_marks, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome-j4-20221109-090003 ------------------------------------------------------------------- GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe" GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle" CC=clang CXX=clang++ gcc-config -l: [1] x86_64-pc-linux-gnu-12 * clang/llvm (if any): clang version 15.0.4 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/15 15.0.4 Python 3.10.8 Available Rust versions: [1] rust-bin-1.64.0 * php cli (if any): HEAD of ::gentoo commit 13b7b1255ae6125608899908b118a34f8a8347f1 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed Nov 9 14:16:53 2022 +0000 2022-11-09 14:16:52 UTC emerge -qpvO x11-libs/gtk+ [ebuild R ] x11-libs/gtk+-3.24.34-r1 USE="X colord cups introspection sysprof wayland (-aqua) -broadway -examples -gtk-doc -test -vim-syntax -xinerama" ABI_X86="(64) -32 (-x32)"
Created attachment 830115 [details] emerge-info.txt
Created attachment 830117 [details] emerge-history.txt
Created attachment 830119 [details] environment
Created attachment 830121 [details] etc.clang.tar.bz2
Created attachment 830123 [details] etc.portage.tar.bz2
Created attachment 830125 [details] logs.tar.bz2
Created attachment 830127 [details] temp.tar.bz2
Created attachment 830129 [details] var.tmp.clang.tar.bz2
Created attachment 830131 [details] x11-libs:gtk+-2.24.33-r2:20221109-152137.log.bz2
So the problem is: > /var/tmp/portage/x11-libs/gtk+-2.24.33-r2/work/gtk+-2.24.33/gtk/gtkscale.c:1474:50: error: incompatible function pointer types passing > 'GCompareFunc' (aka 'int (*)(const void *, const void *)') to parameter of type > 'GCompareDataFunc' (aka 'int (*)(const void *, const void *, void *)') > [-Werror,-Wincompatible-function-pointer-types] compare_marks is declared as > static gint > compare_marks (gconstpointer a, gconstpointer b, gpointer data) g_slist_insert_sorted_with_data takes a GCompareDataFunc: > GSList* g_slist_insert_sorted_with_data (GSList *list, > gpointer data, > GCompareDataFunc func, > gpointer user_data) G_GNUC_WARN_UNUSED_RESULT; The problem appears to be a stray (and unnecessary) cast to GCompareFunc: > priv->marks = g_slist_insert_sorted_with_data (priv->marks, mark, > (GCompareFunc) compare_marks, > GINT_TO_POINTER ( > gtk_range_get_inverted (GTK_RANGE (scale)) > )); We can fix that easily enough, but this is not really the only problem, is it? I see * /var/tmp/portage/x11-libs/gtk+-2.24.33-r2/work/gtk+-2.24.33/gtk/gtkcellrendererspin.c:210:26: warning: assignment to 'GtkAdjustment *' {aka 'struct _GtkAdjustment *'} from incompatible pointer type 'GObject *' {aka 'struct _GObject *'} [-Wincompatible-pointer-types] * /var/tmp/portage/x11-libs/gtk+-2.24.33-r2/work/gtk+-2.24.33/gtk/gtkcomboboxtext.c:278:27: warning: assignment to 'GObject *' {aka 'struct _GObject *'} from incompatible pointer type 'GtkBuildable *' {aka 'struct _GtkBuildable *'} [-Wincompatible-pointer-types] * /var/tmp/portage/x11-libs/gtk+-2.24.33-r2/work/gtk+-2.24.33/gtk/gtkimmodule.c:665:49: warning: passing argument 3 of 'g_hash_table_lookup_extended' from incompatible pointer type [-Wincompatible-pointer-types] * /var/tmp/portage/x11-libs/gtk+-2.24.33-r2/work/gtk+-2.24.33/gtk/gtklabel.c:1339:27: warning: assignment to 'GObject *' {aka 'struct _GObject *'} from incompatible pointer type 'GtkBuildable *' {aka 'struct _GtkBuildable *'} [-Wincompatible-pointer-types] [...] * /var/tmp/portage/x11-libs/gtk+-2.24.33-r2/work/gtk+-2.24.33/gtk/gtktoolpalette.c:737:16: warning: assignment to 'GtkToolItemGroup *' {aka 'struct _GtkToolItemGroup *'} from incompatible pointer type 'GtkWidget *' {aka 'struct _GtkWidget *'} [-Wincompatible-pointer-types] * /var/tmp/portage/x11-libs/gtk+-2.24.33-r2/work/gtk+-2.24.33/gtk/gtktreeview.c:14150:37: warning: assignment to 'GtkWidget *' {aka 'struct _GtkWidget *'} from incompatible pointer type 'GtkEntry *' {aka 'struct _GtkEntry *'} [-Wincompatible-pointer-types] * /usr/include/glib-2.0/gobject/gobject.h:548:28: warning: returning 'GtkWidget *' {aka 'struct _GtkWidget *'} from a function with incompatible return type 'GObject *' {aka 'struct _GObject *'} [-Wincompatible-pointer-types] * /var/tmp/portage/x11-libs/gtk+-2.24.33-r2/work/gtk+-2.24.33/gtk/gtkwidget.c:10682:27: warning: assignment to 'GObject *' {aka 'struct _GObject *'} from incompatible pointer type 'GtkBuildable *' {aka 'struct _GtkBuildable *'} [-Wincompatible-pointer-types] * /usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wincompatible-pointer-types] * /var/tmp/portage/x11-libs/gtk+-2.24.33-r2/work/gtk+-2.24.33/modules/other/gail/gailtreeview.c:998:34: warning: assignment to 'AtkObject *' {aka 'struct _AtkObject *'} from incompatible pointer type 'GailCell *' {aka 'struct _GailCell *'} [-Wincompatible-pointer-types] * /var/tmp/portage/x11-libs/gtk+-2.24.33-r2/work/gtk+-2.24.33/modules/printbackends/cups/gtkprintbackendcups.c:3482:17: warning: assignment to 'GtkPrinterCups *' {aka 'struct _GtkPrinterCups *'} from incompatible pointer type 'GtkPrinter *' {aka 'struct _GtkPrinter *'} [-Wincompatible-pointer-types] I'd really rather not get 1 bug for each of these. I suspect we need to disable the compiler error for dead packages like gtk+:2.