Issue
My build of clipit ends in error. Could someone try to replicate the error before I post an issue on nixpkgs?
I want to be sure that this is an actual issue and not some local issue resulting from my system configuration.
Thank you, in advance.
ps. Should this be marked as “Help” or “Development”?
How to replicate:
Build of clipit package on :
"nixpkgs": {
"locked": {
"lastModified": 1772963539,
"narHash": "sha256-9jVDGZnvCckTGdYT53d/EfznygLskyLQXYwJLKMPsZs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "9dcb002ca1690658be4a04645215baea8b95f31d",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
ends in error:
clipit> main.c: In function 'show_about_dialog':
clipit> main.c:329:25: warning: 'gtk_widget_render_icon_pixbuf' is deprecated: Use 'gtk_icon_theme_load_icon' instead [-Wdeprecated-declarations]
clipit> 329 | gtk_widget_render_icon_pixbuf(about_dialog, GTK_STOCK_ABOUT, GTK_ICON_SIZE_MENU));
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> In file included from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkapplication.h:27,
clipit> from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkwindow.h:33,
clipit> from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkdialog.h:32,
clipit> from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
clipit> from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtk.h:31,
clipit> from main.c:31:
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkwidget.h:1182:15: note: declared here
clipit> 1182 | GdkPixbuf *gtk_widget_render_icon_pixbuf (GtkWidget *widget,
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:329:25: warning: 'GtkStock' is deprecated [-Wdeprecated-declarations]
clipit> 329 | gtk_widget_render_icon_pixbuf(about_dialog, GTK_STOCK_ABOUT, GTK_ICON_SIZE_MENU));
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:366:5: warning: 'GtkStock' is deprecated [-Wdeprecated-declarations]
clipit> 366 | gtk_about_dialog_set_logo_icon_name((GtkAboutDialog*)about_dialog, GTK_STOCK_PASTE);
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c: In function 'show_actions_menu':
clipit> main.c:406:3: warning: 'gtk_image_menu_item_new_with_label' is deprecated: Use 'gtk_menu_item_new_with_label' instead [-Wdeprecated-declarations]
clipit> 406 | menu_item = gtk_image_menu_item_new_with_label(_("Actions using:"));
clipit> | ^~~~~~~~~
clipit> In file included from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtk.h:269:
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:80:12: note: declared here
clipit> 80 | GtkWidget* gtk_image_menu_item_new_with_label (const gchar *label);
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:407:3: warning: 'gtk_image_new_from_stock' is deprecated: Use 'gtk_image_new_from_icon_name' instead [-Wdeprecated-declarations]
clipit> 407 | menu_image = gtk_image_new_from_stock(GTK_STOCK_EXECUTE, GTK_ICON_SIZE_MENU);
clipit> | ^~~~~~~~~~
clipit> In file included from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkentry.h:42,
clipit> from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtktreeview.h:29,
clipit> from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkcombobox.h:27,
clipit> from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkappchooserbutton.h:29,
clipit> from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtk.h:42:
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkimage.h:122:12: note: declared here
clipit> 122 | GtkWidget* gtk_image_new_from_stock (const gchar *stock_id,
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:407:3: warning: 'GtkStock' is deprecated [-Wdeprecated-declarations]
clipit> 407 | menu_image = gtk_image_new_from_stock(GTK_STOCK_EXECUTE, GTK_ICON_SIZE_MENU);
clipit> | ^~~~~~~~~~
clipit> main.c:408:3: warning: 'gtk_image_menu_item_set_image' is deprecated [-Wdeprecated-declarations]
clipit> 408 | gtk_image_menu_item_set_image((GtkImageMenuItem*)menu_item, menu_image);
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:92:12: note: declared here
clipit> 92 | void gtk_image_menu_item_set_image (GtkImageMenuItem *image_menu_item,
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:451:12: warning: variable 'fread_return' set but not used [-Wunused-but-set-variable]
clipit> 451 | size_t fread_return;
clipit> | ^~~~~~~~~~~~
clipit> main.c:498:3: warning: 'gtk_image_menu_item_new_with_mnemonic' is deprecated: Use 'gtk_menu_item_new_with_mnemonic' instead [-Wdeprecated-declarations]
clipit> 498 | menu_item = gtk_image_menu_item_new_with_mnemonic(_("_Edit actions"));
clipit> | ^~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:82:12: note: declared here
clipit> 82 | GtkWidget* gtk_image_menu_item_new_with_mnemonic (const gchar *label);
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:499:3: warning: 'gtk_image_new_from_stock' is deprecated: Use 'gtk_image_new_from_icon_name' instead [-Wdeprecated-declarations]
clipit> 499 | menu_image = gtk_image_new_from_stock(GTK_STOCK_EDIT, GTK_ICON_SIZE_MENU);
clipit> | ^~~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkimage.h:122:12: note: declared here
clipit> 122 | GtkWidget* gtk_image_new_from_stock (const gchar *stock_id,
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:499:3: warning: 'GtkStock' is deprecated [-Wdeprecated-declarations]
clipit> 499 | menu_image = gtk_image_new_from_stock(GTK_STOCK_EDIT, GTK_ICON_SIZE_MENU);
clipit> | ^~~~~~~~~~
clipit> main.c:500:3: warning: 'gtk_image_menu_item_set_image' is deprecated [-Wdeprecated-declarations]
clipit> 500 | gtk_image_menu_item_set_image((GtkImageMenuItem*)menu_item, menu_image);
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:92:12: note: declared here
clipit> 92 | void gtk_image_menu_item_set_image (GtkImageMenuItem *image_menu_item,
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:505:3: warning: 'gtk_menu_popup' is deprecated: Use '(gtk_menu_popup_at_widget, gtk_menu_popup_at_pointer, gtk_menu_popup_at_rect)' instead [-Wdeprecated-declarations]
clipit> 505 | gtk_menu_popup((GtkMenu*)menu, NULL, NULL, NULL, NULL, 1, gtk_get_current_event_time());
clipit> | ^~~~~~~~~~~~~~
clipit> In file included from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtklabel.h:34,
clipit> from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkaccellabel.h:35,
clipit> from /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtk.h:33:
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkmenu.h:138:12: note: declared here
clipit> 138 | void gtk_menu_popup (GtkMenu *menu,
clipit> | ^~~~~~~~~~~~~~
clipit> main.c: In function 'selected_by_digit':
clipit> main.c:664:28: warning: passing argument 1 of 'gtk_widget_destroy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
clipit> 664 | gtk_widget_destroy(history_menu);
clipit> | ^~~~~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkwidget.h:619:65: note: expected 'GtkWidget *' {aka 'struct _GtkWidget *'} but argument is of type 'const GtkWidget *' {aka 'const struct _GtkWidget *'}
clipit> 619 | void gtk_widget_destroy (GtkWidget *widget);
clipit> | ~~~~~~~~~~~~~~~~~~~~~^~~~~~
inkscape> -- Performing Test Iconv_IS_BUILT_IN - Success
clipit> main.c: In function 'show_history_menu':
clipit> main.c:835:3: warning: 'gtk_menu_popup' is deprecated: Use '(gtk_menu_popup_at_widget, gtk_menu_popup_at_pointer, gtk_menu_popup_at_rect)' instead [-Wdeprecated-declarations]
clipit> 835 | gtk_menu_popup((GtkMenu*)menu, NULL, NULL, NULL, NULL, 1, gtk_get_current_event_time());
clipit> | ^~~~~~~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkmenu.h:138:12: note: declared here
clipit> 138 | void gtk_menu_popup (GtkMenu *menu,
clipit> | ^~~~~~~~~~~~~~
clipit> main.c: In function 'create_tray_menu':
clipit> main.c:863:17: warning: 'gtk_image_menu_item_new_from_stock' is deprecated: Use 'gtk_menu_item_new' instead [-Wdeprecated-declarations]
clipit> 863 | menu_item = gtk_image_menu_item_new_from_stock(GTK_STOCK_ABOUT, NULL);
clipit> | ^~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:84:12: note: declared here
clipit> 84 | GtkWidget* gtk_image_menu_item_new_from_stock (const gchar *stock_id,
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
inkscape> -- Found Iconv: built in to C library
clipit> main.c:863:17: warning: 'GtkStock' is deprecated [-Wdeprecated-declarations]
clipit> 863 | menu_item = gtk_image_menu_item_new_from_stock(GTK_STOCK_ABOUT, NULL);
clipit> | ^~~~~~~~~
clipit> main.c:867:17: warning: 'gtk_image_menu_item_new_with_mnemonic' is deprecated: Use 'gtk_menu_item_new_with_mnemonic' instead [-Wdeprecated-declarations]
clipit> 867 | menu_item = gtk_image_menu_item_new_with_mnemonic(_("_Manage history"));
clipit> | ^~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:82:12: note: declared here
clipit> 82 | GtkWidget* gtk_image_menu_item_new_with_mnemonic (const gchar *label);
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:868:17: warning: 'gtk_image_new_from_stock' is deprecated: Use 'gtk_image_new_from_icon_name' instead [-Wdeprecated-declarations]
clipit> 868 | menu_image = gtk_image_new_from_stock(GTK_STOCK_FIND, GTK_ICON_SIZE_MENU);
clipit> | ^~~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/gtkimage.h:122:12: note: declared here
clipit> 122 | GtkWidget* gtk_image_new_from_stock (const gchar *stock_id,
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:868:17: warning: 'GtkStock' is deprecated [-Wdeprecated-declarations]
clipit> 868 | menu_image = gtk_image_new_from_stock(GTK_STOCK_FIND, GTK_ICON_SIZE_MENU);
clipit> | ^~~~~~~~~~
clipit> main.c:869:17: warning: 'gtk_image_menu_item_set_image' is deprecated [-Wdeprecated-declarations]
clipit> 869 | gtk_image_menu_item_set_image((GtkImageMenuItem*)menu_item, menu_image);
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:92:12: note: declared here
clipit> 92 | void gtk_image_menu_item_set_image (GtkImageMenuItem *image_menu_item,
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:873:17: warning: 'gtk_image_menu_item_new_from_stock' is deprecated: Use 'gtk_menu_item_new' instead [-Wdeprecated-declarations]
clipit> 873 | menu_item = gtk_image_menu_item_new_from_stock(GTK_STOCK_PREFERENCES, NULL);
clipit> | ^~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:84:12: note: declared here
clipit> 84 | GtkWidget* gtk_image_menu_item_new_from_stock (const gchar *stock_id,
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:873:17: warning: 'GtkStock' is deprecated [-Wdeprecated-declarations]
clipit> 873 | menu_item = gtk_image_menu_item_new_from_stock(GTK_STOCK_PREFERENCES, NULL);
clipit> | ^~~~~~~~~
clipit> main.c:877:17: warning: 'gtk_image_menu_item_new_from_stock' is deprecated: Use 'gtk_menu_item_new' instead [-Wdeprecated-declarations]
clipit> 877 | menu_item = gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT, NULL);
clipit> | ^~~~~~~~~
clipit> /nix/store/j74izjk0yig20z0xg0zp4mc6i43jriid-gtk+3-3.24.51-dev/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:84:12: note: declared here
clipit> 84 | GtkWidget* gtk_image_menu_item_new_from_stock (const gchar *stock_id,
clipit> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clipit> main.c:877:17: warning: 'GtkStock' is deprecated [-Wdeprecated-declarations]
clipit> 877 | menu_item = gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT, NULL);
clipit> | ^~~~~~~~~
clipit> main.c: In function 'search_hotkey':
clipit> main.c:968:36: error: passing argument 2 of 'g_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types]
clipit> 968 | g_timeout_add(POPUP_DELAY, show_search, NULL);
clipit> | ^~~~~~~~~~~
clipit> | |
clipit> | gboolean (*)(void) {aka int (*)(void)}
clipit> In file included from /nix/store/jhb15l57qmqxck5ddd1dh2ys729vc8gb-glib-2.86.3-dev/include/glib-2.0/glib/giochannel.h:35,
clipit> from /nix/store/jhb15l57qmqxck5ddd1dh2ys729vc8gb-glib-2.86.3-dev/include/glib-2.0/glib.h:56,
clipit> from main.c:29:
clipit> /nix/store/jhb15l57qmqxck5ddd1dh2ys729vc8gb-glib-2.86.3-dev/include/glib-2.0/glib/gmain.h:935:54: note: expected 'GSourceFunc' {aka 'int (*)(void *)'} but argument is of type 'gboolean (*)(void)' {aka 'int (*)(void)'}
clipit> 935 | GSourceFunc function,
clipit> | ~~~~~~~~~~~~~~~~^~~~~~~~
clipit> In file included from main.c:41:
clipit> manage.h:27:10: note: 'show_search' declared here
clipit> 27 | gboolean show_search();
clipit> | ^~~~~~~~~~~
clipit> /nix/store/jhb15l57qmqxck5ddd1dh2ys729vc8gb-glib-2.86.3-dev/include/glib-2.0/glib/gmain.h:200:20: note: 'GSourceFunc' declared here
clipit> 200 | typedef gboolean (*GSourceFunc) (gpointer user_data);
clipit> | ^~~~~~~~~~~
gtksourceview> checking for CFPreferencesCopyAppValue... no
clipit> make[2]: *** [Makefile:455: main.o] Error 1
clipit> make[2]: Leaving directory '/build/source/src'
clipit> make[1]: *** [Makefile:449: all-recursive] Error 1
clipit> make[1]: Leaving directory '/build/source'
clipit> make: *** [Makefile:388: all] Error 2
error: Cannot build '/nix/store/f6ybail62vxa6qwvfks7nb5sazrbkps2-clipit-1.4.5.drv'.
Reason: builder failed with exit code 2.
Output paths:
/nix/store/6w4fb66n3ykiajbxws21p6hv340rb6lv-clipit-1.4.5
Last 25 log lines:
> | ^~~~~~~~~
> main.c: In function 'search_hotkey':
> main.c:968:36: error: passing argument 2 of 'g_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types]
> 968 | g_timeout_add(POPUP_DELAY, show_search, NULL);
> | ^~~~~~~~~~~
> | |
> | gboolean (*)(void) {aka int (*)(void)}
> In file included from /nix/store/jhb15l57qmqxck5ddd1dh2ys729vc8gb-glib-2.86.3-dev/include/glib-2.0/glib/giochannel.h:35,
> from /nix/store/jhb15l57qmqxck5ddd1dh2ys729vc8gb-glib-2.86.3-dev/include/glib-2.0/glib.h:56,
> from main.c:29:
> /nix/store/jhb15l57qmqxck5ddd1dh2ys729vc8gb-glib-2.86.3-dev/include/glib-2.0/glib/gmain.h:935:54: note: expected 'GSourceFunc' {aka 'int (*)(void *)'} but argument is of type 'gboolean (*)(void)' {aka 'int (*)(void)'}
> 935 | GSourceFunc function,
> | ~~~~~~~~~~~~~~~~^~~~~~~~
> In file included from main.c:41:
> manage.h:27:10: note: 'show_search' declared here
> 27 | gboolean show_search();
> | ^~~~~~~~~~~
> /nix/store/jhb15l57qmqxck5ddd1dh2ys729vc8gb-glib-2.86.3-dev/include/glib-2.0/glib/gmain.h:200:20: note: 'GSourceFunc' declared here
> 200 | typedef gboolean (*GSourceFunc) (gpointer user_data);
> | ^~~~~~~~~~~
> make[2]: *** [Makefile:455: main.o] Error 1
> make[2]: Leaving directory '/build/source/src'
> make[1]: *** [Makefile:449: all-recursive] Error 1
> make[1]: Leaving directory '/build/source'
> make: *** [Makefile:388: all] Error 2
For full logs, run:
nix log /nix/store/f6ybail62vxa6qwvfks7nb5sazrbkps2-clipit-1.4.5.drv
edit: added more of error log and made it more readable