too long lines were shrinked: msgfmt: present charset "ISO-8859-16" is not a portable encoding name make: *** [Makefile:55: ro.mo] Error 1 [2/227] /usr/bin/x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/thirdparty/libsmacker -O2 -pipe -march=native -fno-diagnostics-color -fno-diagnostics-color -MD -MT src/thirdparty/CMakeFiles/smacker.dir/libsmacker/smacker.c.o -MF src/thirdparty/CMake [3/227] /usr/bin/x86_64-pc-linux-gnu-g++ -DWITH_IMAGE -I/usr/include/SDL2 -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/engine -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/thirdparty/libsmacker -O2 -pipe -march=native -fno-diagnostics-color -std= [4/227] /usr/bin/x86_64-pc-linux-gnu-g++ -DWITH_IMAGE -I/usr/include/SDL2 -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/engine -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/thirdparty/libsmacker -O2 -pipe -march=native -fno-diagnostics-color -std= [5/227] /usr/bin/x86_64-pc-linux-gnu-g++ -DWITH_IMAGE -I/usr/include/SDL2 -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/engine -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/thirdparty/libsmacker -O2 -pipe -march=native -fno-diagnostics-color -std= ninja: build stopped: subcommand failed. * ERROR: games-engines/fheroes2-1.0.5::gentoo failed (compile phase): * ninja -v -j5 -l0 failed ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_no_multilib_systemd-20230618-180609 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-13 * clang/llvm (if any): clang version 16.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/16/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/16 16.0.6 Python 3.11.4 Available Ruby profiles: [1] ruby31 (with Rubygems) * Available Rust versions: [1] rust-1.69.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17] *) Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm [2] openjdk-bin-17 php cli (if any): go version go1.20.5 linux/amd64 HEAD of ::gentoo commit 13be311ed58b7d1b50b7c6bb942e3c57c0aa9f51 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Mon Jun 19 23:46:57 2023 +0000 2023-06-19 23:46:56 UTC emerge -qpvO games-engines/fheroes2 [ebuild N ] games-engines/fheroes2-1.0.5 USE="-tools" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12"
Created attachment 864268 [details] emerge-info.txt
Created attachment 864269 [details] emerge-history.txt
Created attachment 864270 [details] environment
Created attachment 864271 [details] etc.clang.tar.xz
Created attachment 864272 [details] etc.portage.tar.xz
Created attachment 864273 [details] games-engines:fheroes2-1.0.5:20230620-002303.log
Created attachment 864274 [details] temp.tar.xz
new gettext?
Tangentially relevant: https://github.com/ihhub/fheroes2/issues/5735 though that was about some implementations of iconv which failed, which is called before msgfmt. I should check whether it works on musl though.
I asked Bruno Haible about this and he said: >The error message "msgfmt: present charset "ISO-8859-16" is not a portable encoding name" is clear. >The PO file should be converted to another encoding, e.g. through msgconv. >Too few platforms support this encoding, see https://www.haible.de/bruno/charsets/conversion-tables/ISO-8859-16.html
They actually convert it from UTF-8 to these encodings, because original game files' fonts use these encodings.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ae9e85dc71b138b604bf8491f2de8897ee13b2e commit 0ae9e85dc71b138b604bf8491f2de8897ee13b2e Author: Alexey Sokolov <alexey+gentoo@asokolov.org> AuthorDate: 2023-07-03 19:28:10 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-07-06 06:24:02 +0000 games-engines/fheroes2: fix build with gettext 0.22 Closes: https://bugs.gentoo.org/908863 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Closes: https://github.com/gentoo/gentoo/pull/31730 Signed-off-by: Sam James <sam@gentoo.org> games-engines/fheroes2/fheroes2-1.0.5.ebuild | 1 + games-engines/fheroes2/files/fheroes2-1.0.5-gettext.patch | 15 +++++++++++++++ 2 files changed, 16 insertions(+)