Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732784 - x11-libs/gtksourceview-4.6.1: fails to build with gcc-11
Summary: x11-libs/gtksourceview-4.6.1: fails to build with gcc-11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://gitlab.gnome.org/GNOME/gtksou...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2020-07-15 19:06 UTC by lekto
Modified: 2021-04-30 01:56 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,60.11 KB, text/x-log)
2020-07-15 19:06 UTC, lekto
Details
emerge --info (emerge.info,5.69 KB, application/x-info)
2020-07-15 19:06 UTC, lekto
Details
gtksourceview-4.6.1-workaround-gcc-11.patch (gtksourceview-4.6.1-workaround-gcc-11.patch,326 bytes, patch)
2020-09-02 06:50 UTC, Sergei Trofimovich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description lekto 2020-07-15 19:06:02 UTC
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);   \
      |     ^~~~~~~~~~~~~
Comment 1 lekto 2020-07-15 19:06:18 UTC
Created attachment 649356 [details]
emerge --info
Comment 2 Mart Raudsepp gentoo-dev 2020-07-29 19:09:18 UTC
This suggests a glib problem that would be applicable to many glib/gtk consuming packages.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2020-09-02 06:50:36 UTC
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.
Comment 4 Geoff Leach 2020-12-07 13:02:04 UTC
Thanks. -Werror=incompatible-pointer-types worked for me for sysprof-capture-3.36.0-r1 gcc-11.
Comment 5 Larry the Git Cow gentoo-dev 2021-04-29 03:29:53 UTC
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(+)
Comment 6 Larry the Git Cow gentoo-dev 2021-04-30 01:56:50 UTC
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(+)