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

Bug 791145

Summary: games-util/antimicro-2.23 fails to compile with gcc-11
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2021-05-19 20:11:34 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-util/antimicro-2.23 fails to compile with gcc-11.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-19 20:11:37 UTC
Created attachment 709929 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-05-19 20:11:39 UTC
Possible context of error(s):

/var/tmp/portage/games-util/antimicro-2.23/work/antimicro-2.23/src/mainwindow.cpp:367:19: error: ordered comparison of pointer with integer zero (‘QMap<int, InputDevice*>*’ and ‘int’)
Comment 3 Larry the Git Cow gentoo-dev 2021-06-13 17:58:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92ba03cd5810614dd2175279b149858d4d1b5d5a

commit 92ba03cd5810614dd2175279b149858d4d1b5d5a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-13 15:31:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-13 17:13:49 +0000

    games-util/antimicro: fix build with GCC 11
    
    Comparing pointer with 0. Check the size of the underlying structure
    instead.
    
    Closes: https://bugs.gentoo.org/791145
    Signed-off-by: Sam James <sam@gentoo.org>

 games-util/antimicro/antimicro-2.23.ebuild                   |  1 +
 .../antimicro/files/antimicro-2.23-gcc11-ptr-compare.patch   | 12 ++++++++++++
 2 files changed, 13 insertions(+)