Created attachment 649354 [details] build.log In file included from /usr/include/glib-2.0/glib/gthread.h:32, from /usr/include/glib-2.0/glib/gasyncqueue.h:32, from /usr/include/glib-2.0/glib.h:32, from /usr/include/gtk-3.0/gdk/gdkconfig.h:13, from /usr/include/gtk-3.0/gdk/gdk.h:30, from /usr/include/gtk-3.0/gtk/gtk.h:30, from ../gtksourceview-4.6.1/gtksourceview/gtksourcebuffer.h:32, from ../gtksourceview-4.6.1/gtksourceview/gtksourcebuffer.c:29: ../gtksourceview-4.6.1/gtksourceview/gtksourcebuffer.c: In function ‘gtk_source_buffer_get_type’: /usr/include/glib-2.0/glib/gatomic.h:112:5: error: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Werror=incompatible-pointer-types] 112 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \ | ^~~~~~~~~~~~~
Created attachment 649356 [details] emerge --info
This suggests a glib problem that would be applicable to many glib/gtk consuming packages.
Created attachment 657864 [details, diff] gtksourceview-4.6.1-workaround-gcc-11.patch To workaround the build failure of gtksourceview one can drop -Werror=incompatible-pointer-types to get past build failure. Attached example gtksourceview-4.6.1-workaround-gcc-11.patch patch.
Thanks. -Werror=incompatible-pointer-types worked for me for sysprof-capture-3.36.0-r1 gcc-11.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2793b324e60b68cb3c47633348cd8d4b1bde577b commit 2793b324e60b68cb3c47633348cd8d4b1bde577b Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2021-04-29 03:22:44 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2021-04-29 03:28:19 +0000 x11-libs/gtksourceview: Version bump to 4.8.1 Closes: https://bugs.gentoo.org/732784 Signed-off-by: Matt Turner <mattst88@gentoo.org> x11-libs/gtksourceview/Manifest | 1 + x11-libs/gtksourceview/gtksourceview-4.8.1.ebuild | 70 +++++++++++++++++++++++ 2 files changed, 71 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=284fa7b9c84407be55015e601768262d5c2c0f0d commit 284fa7b9c84407be55015e601768262d5c2c0f0d Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2021-04-30 01:54:50 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2021-04-30 01:55:59 +0000 x11-libs/gtksourceview: Add patch to build with GCC-11 I mistakenly thought this patch was included in the v4.8.1 release when I added it and closed bug #732784. Closes: https://bugs.gentoo.org/732784 Closes: https://bugs.gentoo.org/786630 Signed-off-by: Matt Turner <mattst88@gentoo.org> ...ble-Werror-for-incompatible-pointer-types.patch | 33 ++++++++++++++++++++++ x11-libs/gtksourceview/gtksourceview-4.8.1.ebuild | 4 +++ 2 files changed, 37 insertions(+)