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

Bug 891713

Summary: >=games-strategy/s25rttr-0.9.5 fails to compile with gcc-13.0.1
Product: Gentoo Linux Reporter: tt_1 <herrtimson>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/Return-To-The-Roots/libsiedler2/issues/20
See Also: https://github.com/Return-To-The-Roots/s25client/pull/1548
https://github.com/Return-To-The-Roots/libsiedler2/pull/21
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 865117    
Attachments: compressed build log
output from emerge --info

Description tt_1 2023-01-22 15:03:18 UTC
Created attachment 849003 [details]
compressed build log

the build failure is in libsiedler2: 

cat /tmp/s25rttr-gcc-13-build.log | grep error:
/var/tmp/portage/games-strategy/s25rttr-0.9.5/work/s25client_v0.9.5/external/libsiedler2/src/oem.cpp:11:25: error: ‘uint8_t’ was not declared in this scope
/var/tmp/portage/games-strategy/s25rttr-0.9.5/work/s25client_v0.9.5/external/libsiedler2/src/oem.cpp:11:37: error: template argument 1 is invalid
/var/tmp/portage/games-strategy/s25rttr-0.9.5/work/s25client_v0.9.5/external/libsiedler2/src/oem.cpp:11:39: error: scalar object ‘libsiedler2::ansi2oem_tab’ requires one element in initializer
/var/tmp/portage/games-strategy/s25rttr-0.9.5/work/s25client_v0.9.5/external/libsiedler2/src/oem.cpp:37:9: error: ‘uint32_t’ was not declared in this scope
/var/tmp/portage/games-strategy/s25rttr-0.9.5/work/s25client_v0.9.5/external/libsiedler2/src/oem.cpp:37:25: error: ‘x’ was not declared in this scope
/var/tmp/portage/games-strategy/s25rttr-0.9.5/work/s25client_v0.9.5/external/libsiedler2/src/oem.cpp:39:19: error: ‘uint8_t’ was not declared in this scope
/var/tmp/portage/games-strategy/s25rttr-0.9.5/work/s25client_v0.9.5/external/libsiedler2/src/oem.cpp:65:9: error: ‘uint32_t’ was not declared in this scope
/var/tmp/portage/games-strategy/s25rttr-0.9.5/work/s25client_v0.9.5/external/libsiedler2/src/oem.cpp:65:25: error: ‘x’ was not declared in this scope
/var/tmp/portage/games-strategy/s25rttr-0.9.5/work/s25client_v0.9.5/external/libsiedler2/src/oem.cpp:67:13: error: ‘uint8_t’ was not declared in this scope
/var/tmp/portage/games-strategy/s25rttr-0.9.5/work/s25client_v0.9.5/external/libsiedler2/src/oem.cpp:67:21: error: expected ‘)’ before ‘from’
/var/tmp/portage/games-strategy/s25rttr-0.9.5/work/s25client_v0.9.5/external/libsiedler2/src/oem.cpp:71:29: error: expected ‘)’ before ‘from’
Comment 1 tt_1 2023-01-22 15:04:27 UTC
Created attachment 849005 [details]
output from emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-22 19:14:42 UTC
I wasn't expecting you to report it upstream as I wanted to just handle it via a PR rather than cause any hassle for them. Anyway, I'll look at it now.
Comment 3 Larry the Git Cow gentoo-dev 2023-01-23 02:40:01 UTC
The bug has been closed via the following commit(s):

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

commit e4dcbf5e60b24ec0d33884abc026068cc3b94faf
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-23 01:54:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-23 02:32:49 +0000

    games-strategy/s25rttr: fix build w/ gcc 13
    
    Closes: https://bugs.gentoo.org/891713
    Signed-off-by: Sam James <sam@gentoo.org>

 .../s25rttr/files/s25rttr-0.9.5-gcc-13.patch       | 50 ++++++++++++++++++++++
 games-strategy/s25rttr/s25rttr-0.9.5.ebuild        |  3 +-
 2 files changed, 52 insertions(+), 1 deletion(-)