Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910521 - games-strategy/wesnoth-1.16.9 - .../work/wesnoth-1.16.9/src/color_range.cpp:24: [...] /usr/include/boost/functional.hpp:45:24: error: no member named 'unary_function' in namespace 'std'
Summary: games-strategy/wesnoth-1.16.9 - .../work/wesnoth-1.16.9/src/color_range.cpp:2...
Status: UNCONFIRMED
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:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-07-18 22:20 UTC by ernsteiswuerfel
Modified: 2023-09-30 19:21 UTC (History)
0 users

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


Attachments
build.log (wesnoth-1.16.9:20230718-232211.log,27.70 KB, text/plain)
2023-07-18 22:20 UTC, ernsteiswuerfel
Details
emerge --info (file_910521.txt,7.48 KB, text/plain)
2023-07-18 22:20 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2023-07-18 22:20:17 UTC
Created attachment 865767 [details]
build.log

Builds fine with clang-15 but fails with clang-16.

[...]
[28/591] /usr/lib/llvm/16/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.16.9/work/wesnoth-1.16.9/src -I/var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9_build/src -isystem /usr/include/freetype2 -isystem /usr/include/harfbuzz -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/pango-1.0 -isystem /usr/lib/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/uuid -isystem /usr/include/json-c -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/libpng16 -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/dbus-1.0/include -isystem /usr/include/SDL2 -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   -I/usr/include/SDL2 -D_REENTRANT -MD -MT src/CMakeFiles/wesnoth-common.dir/color.cpp.o -MF src/CMakeFiles/wesnoth-common.dir/color.cpp.o.d -o src/CMakeFiles/wesnoth-common.dir/color.cpp.o -c /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/color.cpp
[29/591] /usr/lib/llvm/16/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.16.9/work/wesnoth-1.16.9/src -I/var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9_build/src -isystem /usr/include/freetype2 -isystem /usr/include/harfbuzz -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/pango-1.0 -isystem /usr/lib/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/uuid -isystem /usr/include/json-c -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/libpng16 -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/dbus-1.0/include -isystem /usr/include/SDL2 -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   -I/usr/include/SDL2 -D_REENTRANT -MD -MT src/CMakeFiles/wesnoth-common.dir/color_range.cpp.o -MF src/CMakeFiles/wesnoth-common.dir/color_range.cpp.o.d -o src/CMakeFiles/wesnoth-common.dir/color_range.cpp.o -c /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/color_range.cpp
FAILED: src/CMakeFiles/wesnoth-common.dir/color_range.cpp.o 
/usr/lib/llvm/16/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.16.9/work/wesnoth-1.16.9/src -I/var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9_build/src -isystem /usr/include/freetype2 -isystem /usr/include/harfbuzz -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/pango-1.0 -isystem /usr/lib/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/uuid -isystem /usr/include/json-c -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/libpng16 -isystem /usr/include/pixman-1 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/dbus-1.0/include -isystem /usr/include/SDL2 -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   -I/usr/include/SDL2 -D_REENTRANT -MD -MT src/CMakeFiles/wesnoth-common.dir/color_range.cpp.o -MF src/CMakeFiles/wesnoth-common.dir/color_range.cpp.o.d -o src/CMakeFiles/wesnoth-common.dir/color_range.cpp.o -c /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/color_range.cpp
In file included from /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/color_range.cpp:24:
In file included from /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/map/map.hpp:21:
In file included from /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/terrain/translation.hpp:24:
In file included from /usr/include/boost/multi_array.hpp:34:
In file included from /usr/include/boost/multi_array/multi_array_ref.hpp:32:
/usr/include/boost/functional.hpp:45:24: error: no member named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
            using std::unary_function;
                  ~~~~~^
/usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
^
In file included from /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/color_range.cpp:24:
In file included from /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/map/map.hpp:21:
In file included from /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/terrain/translation.hpp:24:
In file included from /usr/include/boost/multi_array.hpp:34:
In file included from /usr/include/boost/multi_array/multi_array_ref.hpp:32:
/usr/include/boost/functional.hpp:46:24: error: no member named 'binary_function' in namespace 'std'; did you mean '__binary_function'?
            using std::binary_function;
                  ~~~~~^
/usr/include/c++/v1/__functional/binary_function.h:49:1: note: '__binary_function' declared here
using __binary_function = __binary_function_keep_layout_base<_Arg1, _Arg2, _Result>;
^
In file included from /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/color_range.cpp:24:
In file included from /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/map/map.hpp:21:
In file included from /var/tmp/portage/games-strategy/wesnoth-1.16.9/work/wesnoth-1.16.9/src/terrain/translation.hpp:24:
In file included from /usr/include/boost/multi_array.hpp:34:
In file included from /usr/include/boost/multi_array/multi_array_ref.hpp:32:
/usr/include/boost/functional.hpp:180:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
        : public boost::functional::detail::unary_function<typename unary_traits<Predicate>::argument_type,bool>
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/usr/include/boost/functional.hpp:214:45: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
        : public boost::functional::detail::binary_function<
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
/usr/include/boost/functional.hpp:252:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
        : public boost::functional::detail::unary_function<
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/usr/include/boost/functional.hpp:299:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
        : public boost::functional::detail::unary_function<
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/usr/include/boost/functional.hpp:345:57: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
    class mem_fun_t : public boost::functional::detail::unary_function<T*, S>
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/usr/include/boost/functional.hpp:361:58: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
    class mem_fun1_t : public boost::functional::detail::binary_function<T*, A, S>
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
/usr/include/boost/functional.hpp:377:63: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
    class const_mem_fun_t : public boost::functional::detail::unary_function<const T*, S>
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/usr/include/boost/functional.hpp:393:64: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
    class const_mem_fun1_t : public boost::functional::detail::binary_function<const T*, A, S>
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
/usr/include/boost/functional.hpp:438:61: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
    class mem_fun_ref_t : public boost::functional::detail::unary_function<T&, S>
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/usr/include/boost/functional.hpp:454:62: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
    class mem_fun1_ref_t : public boost::functional::detail::binary_function<T&, A, S>
                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
/usr/include/boost/functional.hpp:470:67: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
    class const_mem_fun_ref_t : public boost::functional::detail::unary_function<const T&, S>
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/usr/include/boost/functional.hpp:487:68: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
    class const_mem_fun1_ref_t : public boost::functional::detail::binary_function<const T&, A, S>
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
/usr/include/boost/functional.hpp:533:73: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
    class pointer_to_unary_function : public boost::functional::detail::unary_function<Arg,Result>
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/usr/include/boost/functional.hpp:557:74: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
    class pointer_to_binary_function : public boost::functional::detail::binary_function<Arg1,Arg2,Result>
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
16 errors generated.
ninja: build stopped: subcommand failed.
 * ERROR: games-strategy/wesnoth-1.16.9::gentoo failed (compile phase):
Comment 1 ernsteiswuerfel archtester 2023-07-18 22:20:47 UTC
Created attachment 865768 [details]
emerge --info
Comment 2 listout 2023-09-30 19:02:05 UTC
wesnoth-1.17.20 (latest as of now) seems to be building fine on MUSL LLVM profile. Feel free to close this one.
Comment 3 ernsteiswuerfel archtester 2023-09-30 19:21:45 UTC
Thanks for the hint! Yes, wesnoth-1.17.20 builds fine but as it is not keyworded yet it's too early for closing this bug.