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>
Status: RESOLVED FIXED    
Severity: normal CC: Adrian.Bassett, gentoo, harrisl, herrtimson, mattst88, sam, steffen.weber
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=732784
Whiteboard:
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
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

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

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
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

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: 

https://gitlab.gnome.org/GNOME/gtksourceview/-/issues/179
Comment 4 thulle 2021-04-29 10:37:53 UTC
The committed patch in the upstream issue solved it here.
Direct link:

https://gitlab.gnome.org/GNOME/gtksourceview/-/commit/d1ed58b2ab82bd5be55881088fc17ff1527511db.diff
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):

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(+)