Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 786630

Summary: x11-libs/gtksourceview-4.8.1 fails to compile
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Severity: normal CC: Adrian.Bassett, gentoo, harrisl, herrtimson, mattst88, sam,
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2021-04-29 05:56:34 UTC

Issue: x11-libs/gtksourceview-4.8.1 fails to compile.
Discovered on: amd64 (internal ref: ci)

This machine uses GCC-11:
If you think it is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-04-29 05:56:37 UTC
Created attachment 703524 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-04-29 05:56:38 UTC
Possible context of error(s):

/usr/include/glib-2.0/glib/gatomic.h:117:5: error: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Werror=incompatible-pointer-types]
Comment 3 tt_1 2021-04-29 07:47:55 UTC
Upstream issue:
Comment 4 thulle 2021-04-29 10:37:53 UTC
The committed patch in the upstream issue solved it here.
Direct link:
Comment 5 Larry the Git Cow gentoo-dev 2021-04-30 01:56:49 UTC
The bug has been closed via the following commit(s):

commit 284fa7b9c84407be55015e601768262d5c2c0f0d
Author:     Matt Turner <>
AuthorDate: 2021-04-30 01:54:50 +0000
Commit:     Matt Turner <>
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.
    Signed-off-by: Matt Turner <>

 ...ble-Werror-for-incompatible-pointer-types.patch | 33 ++++++++++++++++++++++
 x11-libs/gtksourceview/gtksourceview-4.8.1.ebuild  |  4 +++
 2 files changed, 37 insertions(+)