Summary: | 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>' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ernsteiswuerfel <erhard_f> |
Component: | Current packages | Assignee: | Gentoo Games <games> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | erhard_f |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/wesnoth/wesnoth/issues/9546 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 836220 | ||
Attachments: |
build.log
emerge --info |
Created attachment 906305 [details]
emerge --info
|
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):