Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787299 - games-strategy/s25rttr-0.9.0_pre20200723-r100 - /.../XMIDI_TrackConverter.h: error: size_t does not name a type (maybe gcc-11 related)
Summary: games-strategy/s25rttr-0.9.0_pre20200723-r100 - /.../XMIDI_TrackConverter.h: ...
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: PATCH
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-05-01 08:56 UTC by Toralf Förster
Modified: 2021-05-11 17:41 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.44 KB, text/plain)
2021-05-01 08:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,255.04 KB, text/plain)
2021-05-01 08:56 UTC, Toralf Förster
Details
environment (environment,120.81 KB, text/plain)
2021-05-01 08:56 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,12.80 KB, application/x-bzip)
2021-05-01 08:56 UTC, Toralf Förster
Details
games-strategy:s25rttr-0.9.0_pre20200723-r100:20210430-222010.log (games-strategy:s25rttr-0.9.0_pre20200723-r100:20210430-222010.log,138.99 KB, text/plain)
2021-05-01 08:56 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.42 KB, application/x-bzip)
2021-05-01 08:56 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,134.91 KB, application/x-bzip)
2021-05-01 08:56 UTC, Toralf Förster
Details
missing-include.patch (upstream) (s25rttr-0.9.0_pre20200723-missing-include.patch,676 bytes, patch)
2021-05-07 07:30 UTC, Andrey Volkov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-05-01 08:56:10 UTC
In file included from /var/tmp/portage/games-strategy/s25rttr-0.9.0_pre20200723-r100/work/s25client-f0b97b120140c96bbeacae9c22633f899931db69/external/libsiedler2/src/XMIDI_TrackConverter.cpp:18:
/var/tmp/portage/games-strategy/s25rttr-0.9.0_pre20200723-r100/work/s25client-f0b97b120140c96bbeacae9c22633f899931db69/external/libsiedler2/include/libsiedler2/XMIDI_TrackConverter.h:84:5: error: ‘size_t’ does not name a type
   84 |     size_t position;
      |     ^~~~~~
/var/tmp/portage/games-strategy/s25rttr-0.9.0_pre20200723-r100/work/s25client-f0b97b120140c96bbeacae9c22633f899931db69/external/libsiedler2/include/libsiedler2/XMIDI_TrackConverter.h:25:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
   24 | #include <vector>

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20210424-085324

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.51.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri Apr 30 22:05:17 UTC 2021

emerge -qpvO games-strategy/s25rttr
[ebuild  N    ] games-strategy/s25rttr-0.9.0_pre20200723-r100  USE="-test" LUA_SINGLE_TARGET="lua5-1 -lua5-2 -lua5-3"
Comment 1 Toralf Förster gentoo-dev 2021-05-01 08:56:11 UTC
Created attachment 704796 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-01 08:56:13 UTC
Created attachment 704799 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-01 08:56:14 UTC
Created attachment 704802 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-01 08:56:15 UTC
Created attachment 704805 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-01 08:56:17 UTC
Created attachment 704808 [details]
games-strategy:s25rttr-0.9.0_pre20200723-r100:20210430-222010.log
Comment 6 Toralf Förster gentoo-dev 2021-05-01 08:56:18 UTC
Created attachment 704811 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-05-01 08:56:20 UTC
Created attachment 704814 [details]
temp.tar.bz2
Comment 8 Andrey Volkov 2021-05-07 07:30:49 UTC
Created attachment 706464 [details, diff]
missing-include.patch (upstream)

Fixed upstream
https://github.com/Return-To-The-Roots/libsiedler2/commit/cb2994d5bb6407d4b12f681268e6b123d9b366f5
Comment 9 Andrey Volkov 2021-05-07 19:52:56 UTC
One more step for gcc-11 to compile.

Error message:

games-strategy-s25rttr-0.9.0_pre20200723-r100/work/s25client-f0b97b120140c96bbeacae9c22633f899931db69/libs/s25main/ingameWindows/iwTools.cpp:84:77:   required from here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/type_traits:2885:14: error: noexcept-expression evaluates to 'false' because of a call to 'iwTools::iwTools(const GameWorldViewer&, GameCommandFactory&)::<lambda(auto:2)> [with auto:2 = ToolNote]' [-Werror=noexcept]
 2885 |       return noexcept(std::declval<_Fn>()(std::declval<_Args>()...));


Workaround:

Set -std explicitly to old gcc-10 default.
CXXFLAGS+=' -std=gnu++14'
Comment 10 Larry the Git Cow gentoo-dev 2021-05-11 17:41:35 UTC
The bug has been closed via the following commit(s):

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

commit 314021bd92f94f189fb7d8e7f39d236f701ff0e6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-11 17:41:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-11 17:41:25 +0000

    games-strategy/s25rttr: fix GCC 11 build
    
    Closes: https://bugs.gentoo.org/787299
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/s25rttr-0.9.0_pre20200723-gcc11-include.patch      | 12 ++++++++++++
 games-strategy/s25rttr/s25rttr-0.9.0_pre20200723-r100.ebuild |  6 +++++-
 2 files changed, 17 insertions(+), 1 deletion(-)