Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 791145 - games-util/antimicro-2.23 fails to compile with gcc-11
Summary: games-util/antimicro-2.23 fails to compile with gcc-11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-05-19 20:11 UTC by Agostino Sarubbo
Modified: 2021-06-13 21:17 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,170.40 KB, text/plain)
2021-05-19 20:11 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
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(+)