Summary: | sys-apps/baobab-43.0 fails to compile (MUSL-CLANG-SYSTEM): baobab-cellrenderers.c:429:45: error: incompatible function pointer types assigning to void ()(GtkCellRenderer , GtkSnapshot , GtkWidget , const GdkRectangle , const GdkRectangle , GtkCellRendere | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | CONFIRMED --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: |
build.log
Tempoaray patch |
Description
Agostino Sarubbo
2023-03-01 08:07:37 UTC
Created attachment 855348 [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: FAILED: src/baobab.p/meson-generated_baobab-cellrenderers.c.o Program appstream-util found: NO src/baobab.p/baobab-cellrenderers.c:429:45: error: incompatible function pointer types assigning to 'void (*)(GtkCellRenderer *, GtkSnapshot *, GtkWidget *, const GdkRectangle *, const GdkRectangle *, GtkCellRendererState)' (aka 'void (*)(struct _GtkCellRenderer *, struct _GdkSnapshot *, struct _GtkWidget *, const struct _cairo_rectangle_int *, const struct _cairo_rectangle_int *, GtkCellRendererState)') from 'void (*)(GtkCellRenderer *, GtkSnapshot *, GtkWidget *, GdkRectangle *, GdkRectangle *, GtkCellRendererState)' (aka 'void (*)(struct _GtkCellRenderer *, struct _GdkSnapshot *, struct _GtkWidget *, struct _cairo_rectangle_int *, struct _cairo_rectangle_int *, GtkCellRendererState)') [-Wincompatible-function-pointer-types] I cannot reproduce this. I'm using > CHOST="x86_64-pc-linux-gnu" > CC="${CHOST}-clang" > CXX="${CHOST}-clang++" > CFLAGS="${__COMMON_FLAGS}" > CFLAGS="${CFLAGS} -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types" I tried with vala-0.56.4 (which is what this was reported with) and vala-0.56.7. I tried baobab-43.0 and baobab-44.0. And from the log, the line that fails > ((GtkCellRendererClass *) klass)->snapshot = (void (*) (GtkCellRenderer*, GtkSnapshot*, GtkWidget*, GdkRectangle*, GdkRectangle*, GtkCellRendererState)) baobab_cell_renderer_name_real_snapshot; is exactly the same on my system. I should note that I'm testing with clang-15.0.7 with those CFLAGS, not real clang-16. I wonder if this one got fixed by Vala changes then? Your test env sounds fine (In reply to Matt Turner from comment #3) > I cannot reproduce this. > > I'm using > > > CHOST="x86_64-pc-linux-gnu" > > CC="${CHOST}-clang" > > CXX="${CHOST}-clang++" > > CFLAGS="${__COMMON_FLAGS}" > > CFLAGS="${CFLAGS} -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types" > > I tried with vala-0.56.4 (which is what this was reported with) and > vala-0.56.7. I tried baobab-43.0 and baobab-44.0. > > And from the log, the line that fails > > > ((GtkCellRendererClass *) klass)->snapshot = (void (*) (GtkCellRenderer*, GtkSnapshot*, GtkWidget*, GdkRectangle*, GdkRectangle*, GtkCellRendererState)) baobab_cell_renderer_name_real_snapshot; > > is exactly the same on my system. I can reproduce the bug even on sys-apps/baobab-44 Created attachment 861549 [details, diff]
Tempoaray patch
I'm not sure how to apply this patch but it seems to fix the error.
|