Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941781 - games-strategy/wesnoth-1.18.2 - fails to build with clang-19: ...//include/c++/v1/string_view:300:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
Summary: games-strategy/wesnoth-1.18.2 - fails to build with clang-19: ...//include/c+...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL: https://github.com/wesnoth/wesnoth/is...
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-libcxx
  Show dependency tree
 
Reported: 2024-10-18 20:06 UTC by ernsteiswuerfel
Modified: 2024-11-04 14:07 UTC (History)
1 user (show)

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


Attachments
build.log (wesnoth-1.18.2:20241018-181250.log,19.95 KB, text/plain)
2024-10-18 20:06 UTC, ernsteiswuerfel
Details
emerge --info (file_941781.txt,7.67 KB, text/plain)
2024-10-18 20:07 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-10-18 20:06:47 UTC
Created attachment 906304 [details]
build.log

[...]
[5/2344] /usr/lib/llvm/19/bin/clang -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"translations\" -DLUA_USE_POSIX -DWESNOTH_PATH=\"/usr/share/wesnoth\" -D_FORTIFY_SOURCE=2 -D_X11 -I/var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2/src -I/var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2_build/src -isystem /usr/include/pango-1.0 -isystem /usr/include/cairo -isystem /usr/include/libpng16 -isystem /usr/include/pixman-1 -isystem /usr/include/libmount -isystem /usr/include/uuid -isystem /usr/include/json-c -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/harfbuzz -isystem /usr/include/freetype2 -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/lib/libffi/include -isystem /usr/include/dbus-1.0 -isystem /usr/lib/dbus-1.0/include -isystem /usr/include/elogind -isystem /usr/include/SDL2 -isystem /usr/include/webp -isystem /usr/include/opus  -O2 -march=x86-64-v2 -pipe -fPIE -fstack-protector-strong -MD -MT src/CMakeFiles/wesnoth-common.dir/crypt_blowfish/crypt_blowfish.c.o -MF src/CMakeFiles/wesnoth-common.dir/crypt_blowfish/crypt_blowfish.c.o.d -o src/CMakeFiles/wesnoth-common.dir/crypt_blowfish/crypt_blowfish.c.o -c /var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2/src/crypt_blowfish/crypt_blowfish.c
[6/2344] /usr/lib/llvm/19/bin/clang++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"translations\" -DLUA_USE_POSIX -DWESNOTH_PATH=\"/usr/share/wesnoth\" -D_FORTIFY_SOURCE=2 -D_X11 -I/var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2/src -I/var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2_build/src -isystem /usr/include/pango-1.0 -isystem /usr/include/cairo -isystem /usr/include/libpng16 -isystem /usr/include/pixman-1 -isystem /usr/include/libmount -isystem /usr/include/uuid -isystem /usr/include/json-c -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/harfbuzz -isystem /usr/include/freetype2 -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/lib/libffi/include -isystem /usr/include/dbus-1.0 -isystem /usr/lib/dbus-1.0/include -isystem /usr/include/elogind -isystem /usr/include/SDL2 -isystem /usr/include/webp -isystem /usr/include/opus  -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -Qunused-arguments -Wno-unknown-warning-option -Wmismatched-tags -Wno-conditional-uninitialized -Wno-unused-lambda-capture -O2 -march=x86-64-v2 -pipe -fPIE -fstack-protector-strong -std=c++17 -MD -MT src/CMakeFiles/wesnoth-common.dir/filesystem.cpp.o -MF src/CMakeFiles/wesnoth-common.dir/filesystem.cpp.o.d -o src/CMakeFiles/wesnoth-common.dir/filesystem.cpp.o -c /var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2/src/filesystem.cpp
FAILED: src/CMakeFiles/wesnoth-common.dir/filesystem.cpp.o 
/usr/lib/llvm/19/bin/clang++ -DFIFODIR=\"/var/run/wesnothd\" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_HISTORY -DHAVE_LIBDBUS -DLOCALEDIR=\"translations\" -DLUA_USE_POSIX -DWESNOTH_PATH=\"/usr/share/wesnoth\" -D_FORTIFY_SOURCE=2 -D_X11 -I/var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2/src -I/var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2_build/src -isystem /usr/include/pango-1.0 -isystem /usr/include/cairo -isystem /usr/include/libpng16 -isystem /usr/include/pixman-1 -isystem /usr/include/libmount -isystem /usr/include/uuid -isystem /usr/include/json-c -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/harfbuzz -isystem /usr/include/freetype2 -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/lib/libffi/include -isystem /usr/include/dbus-1.0 -isystem /usr/lib/dbus-1.0/include -isystem /usr/include/elogind -isystem /usr/include/SDL2 -isystem /usr/include/webp -isystem /usr/include/opus  -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -Qunused-arguments -Wno-unknown-warning-option -Wmismatched-tags -Wno-conditional-uninitialized -Wno-unused-lambda-capture -O2 -march=x86-64-v2 -pipe -fPIE -fstack-protector-strong -std=c++17 -MD -MT src/CMakeFiles/wesnoth-common.dir/filesystem.cpp.o -MF src/CMakeFiles/wesnoth-common.dir/filesystem.cpp.o.d -o src/CMakeFiles/wesnoth-common.dir/filesystem.cpp.o -c /var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2/src/filesystem.cpp
In file included from /var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2/src/filesystem.cpp:22:
In file included from /var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2/src/filesystem.hpp:24:
In file included from /usr/include/c++/v1/fstream:193:
In file included from /usr/include/c++/v1/__locale:24:
In file included from /usr/include/c++/v1/string:647:
/usr/include/c++/v1/string_view:300:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
  300 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
      |                                          ^
/var/tmp/portage/games-strategy/wesnoth-1.18.2/work/wesnoth-1.18.2/src/filesystem.cpp:1117:26: note: in instantiation of template class 'std::basic_string_view<unsigned char>' requested here
 1117 |         utils::byte_string_view view = {file_contents.data(), file_contents.size()};
      |                                 ^
/usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declared here
   45 | struct char_traits;
      |        ^
1 error generated.
ninja: build stopped: subcommand failed.
 * ERROR: games-strategy/wesnoth-1.18.2::gentoo failed (compile phase):
Comment 1 ernsteiswuerfel archtester 2024-10-18 20:07:13 UTC
Created attachment 906305 [details]
emerge --info