ZTzTopia / GTProxy

⚖️ A proxy for growtopia. NO SHADOW BAN!
MIT License
54 stars 37 forks source link

build error #75

Open theoplegends opened 6 months ago

theoplegends commented 6 months ago

cmake --build . [ 52%] Built target enet [ 57%] Building CXX object src/CMakeFiles/Proxy.dir/client/client.cpp.o In file included from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/c++allocator.h:33, from /usr/include/c++/13.2.1/bits/allocator.h:46, from /usr/include/c++/13.2.1/bits/alloc_traits.h:39, from /usr/include/c++/13.2.1/ext/alloc_traits.h:34, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:39, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from /home/theoplegends/.conan2/p/magicad75af1effc2a/p/include/magic_enum/magic_enum.hpp:42, from /home/theoplegends/Työpöytä/prox/GTProxy/src/client/client.cpp:1: /usr/include/c++/13.2.1/bits/new_allocator.h: In instantiation of ‘class std::__new_allocator<player::Player&>’: /usr/include/c++/13.2.1/bits/allocator.h:130:11: required from ‘class std::allocator<player::Player&>’ /usr/include/c++/13.2.1/bits/stl_set.h:113:65: required from ‘class std::set<player::Player&>’ /home/theoplegends/Työpöytä/prox/GTProxy/src/client/../packet/packet_helper.hpp:84:34: required from here /usr/include/c++/13.2.1/bits/new_allocator.h:122:7: error: forming pointer to reference type ‘player::Player&’ 122 | allocate(size_type __n, const void* = static_cast<const void*>(0)) | ^~~~~~~~ /usr/include/c++/13.2.1/bits/new_allocator.h:152:7: error: forming pointer to reference type ‘player::Player&’ 152 | deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) | ^~~~~~~~~~ /usr/include/c++/13.2.1/bits/allocator.h: In instantiation of ‘class std::allocator<player::Player&>’: /usr/include/c++/13.2.1/bits/stl_set.h:113:65: required from ‘class std::set<player::Player&>’ /home/theoplegends/Työpöytä/prox/GTProxy/src/client/../packet/packet_helper.hpp:84:34: required from here /usr/include/c++/13.2.1/bits/allocator.h:189:7: error: forming pointer to reference type ‘player::Player&’ 189 | allocate(size_t __n) | ^~~~~~~~ /usr/include/c++/13.2.1/bits/allocator.h:203:7: error: forming pointer to reference type ‘player::Player&’ 203 | deallocate(_Tp* __p, size_t __n) | ^~~~~~~~~~ /usr/include/c++/13.2.1/bits/alloc_traits.h: In instantiation of ‘struct std::allocator_traits<std::allocator<player::Player&> >’: /usr/include/c++/13.2.1/ext/alloc_traits.h:45:10: required from ‘struct __gnu_cxx::__alloc_traits<std::allocator<player::Player&>, player::Player&>’ /usr/include/c++/13.2.1/bits/stl_set.h:131:22: required from ‘class std::set<player::Player&>’ /home/theoplegends/Työpöytä/prox/GTProxy/src/client/../packet/packet_helper.hpp:84:34: required from here /usr/include/c++/13.2.1/bits/alloc_traits.h:437:13: error: forming pointer to reference type ‘player::Player&’ 437 | using pointer = _Tp*; | ^~~~~~~ /usr/include/c++/13.2.1/bits/alloc_traits.h:440:13: error: forming pointer to reference type ‘player::Player&’ 440 | using const_pointer = const _Tp*; | ^~~~~~~~~~~~~ /usr/include/c++/13.2.1/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<player::Player&>, player::Player&>’: /usr/include/c++/13.2.1/bits/stl_set.h:131:22: required from ‘class std::set<player::Player&>’ /home/theoplegends/Työpöytä/prox/GTProxy/src/client/../packet/packet_helper.hpp:84:34: required from here /usr/include/c++/13.2.1/ext/alloc_traits.h:61:23: error: ‘allocate’ has not been declared in ‘__gnu_cxx::__alloc_traits<std::allocator<player::Player&>, player::Player&>::_Base_type’ 61 | using _Base_type::allocate; | ^~~~~~~~ /usr/include/c++/13.2.1/ext/alloc_traits.h:62:23: error: ‘deallocate’ has not been declared in ‘__gnu_cxx::__alloc_traits<std::allocator<player::Player&>, player::Player&>::_Base_type’ 62 | using _Base_type::deallocate; | ^~~~~~~~~~ In file included from /usr/include/c++/13.2.1/map:62, from /home/theoplegends/Työpöytä/prox/GTProxy/lib/eventpp/include/eventpp/eventpolicies.h:21, from /home/theoplegends/Työpöytä/prox/GTProxy/lib/eventpp/include/eventpp/callbacklist.h:17, from /home/theoplegends/Työpöytä/prox/GTProxy/src/client/client.hpp:2, from /home/theoplegends/Työpöytä/prox/GTProxy/src/client/client.cpp:5: /usr/include/c++/13.2.1/bits/stl_tree.h: In instantiation of ‘class std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >’: /usr/include/c++/13.2.1/bits/stl_set.h:135:17: required from ‘class std::set<player::Player&>’ /home/theoplegends/Työpöytä/prox/GTProxy/src/client/../packet/packet_helper.hpp:84:34: required from here /usr/include/c++/13.2.1/bits/stl_tree.h:540:49: error: forming pointer to reference type ‘std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >::value_type’ {aka ‘player::Player&’} 540 | typedef value_type* pointer; | ^~~~~~~ /usr/include/c++/13.2.1/bits/stl_tree.h:541:49: error: forming pointer to reference type ‘std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >::value_type’ {aka ‘player::Player&’} 541 | typedef const value_type* const_pointer; | ^~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/set:63, from /home/theoplegends/Työpöytä/prox/GTProxy/src/client/../packet/packet_helper.hpp:2, from /home/theoplegends/Työpöytä/prox/GTProxy/src/client/client.cpp:6: /usr/include/c++/13.2.1/bits/stl_set.h: In instantiation of ‘class std::set<player::Player&>’: /home/theoplegends/Työpöytä/prox/GTProxy/src/client/../packet/packet_helper.hpp:84:34: required from here /usr/include/c++/13.2.1/bits/stl_set.h:520:7: error: ‘std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(value_type&&) [with _Key = player::Player&; _Compare = std::less<player::Player&>; _Alloc = std::allocator<player::Player&>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other = std::allocator<player::Player&>; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<player::Player&>, player::Player&>::rebind<player::Player&>; typename _Allocator::value_type = player::Player&; value_type = player::Player&]’ cannot be overloaded with ‘std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = player::Player&; _Compare = std::less<player::Player&>; _Alloc = std::allocator<player::Player&>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other = std::allocator<player::Player&>; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<player::Player&>, player::Player&>::rebind<player::Player&>; typename _Allocator::value_type = player::Player&; value_type = player::Player&]’ 520 | insert(value_type&& __x) | ^~~~~~ /usr/include/c++/13.2.1/bits/stl_set.h:511:7: note: previous declaration ‘std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = player::Player&; _Compare = std::less<player::Player&>; _Alloc = std::allocator<player::Player&>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other = std::allocator<player::Player&>; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<player::Player&>, player::Player&>::rebind<player::Player&>; typename _Allocator::value_type = player::Player&; value_type = player::Player&]’ 511 | insert(const value_type& __x) | ^~~~~~ /usr/include/c++/13.2.1/bits/stl_set.h:553:7: error: ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(const_iterator, value_type&&) [with _Key = player::Player&; _Compare = std::less<player::Player&>; _Alloc = std::allocator<player::Player&>; iterator = std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >::const_iterator; const_iterator = std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >::const_iterator; value_type = player::Player&]’ cannot be overloaded with ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(const_iterator, const value_type&) [with _Key = player::Player&; _Compare = std::less<player::Player&>; _Alloc = std::allocator<player::Player&>; iterator = std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >::const_iterator; const_iterator = std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >::const_iterator; value_type = player::Player&]’ 553 | insert(const_iterator __position, value_type&& __x) | ^~~~~~ /usr/include/c++/13.2.1/bits/stl_set.h:548:7: note: previous declaration ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(const_iterator, const value_type&) [with _Key = player::Player&; _Compare = std::less<player::Player&>; _Alloc = std::allocator<player::Player&>; iterator = std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >::const_iterator; const_iterator = std::_Rb_tree<player::Player&, player::Player&, std::_Identity<player::Player&>, std::less<player::Player&>, std::allocator<player::Player&> >::const_iterator; value_type = player::Player&]’ 548 | insert(const_iterator __position, const value_type& __x) | ^~~~~~ /usr/include/c++/13.2.1/bits/stl_tree.h: In instantiation of ‘struct std::_Rb_tree_const_iterator<player::Player&>’: /home/theoplegends/Työpöytä/prox/GTProxy/src/client/../packet/packet_helper.hpp:84:34: required from here /usr/include/c++/13.2.1/bits/stl_tree.h:332:26: error: forming pointer to reference type ‘player::Player&’ 332 | typedef const _Tp* pointer; | ^~~~~~~ In file included from /home/theoplegends/.conan2/p/b/spdlo9b5292a1942e1/p/include/spdlog/fmt/fmt.h:31, from /home/theoplegends/.conan2/p/b/spdlo9b5292a1942e1/p/include/spdlog/common.h:50, from /home/theoplegends/.conan2/p/b/spdlo9b5292a1942e1/p/include/spdlog/spdlog.h:12, from /home/theoplegends/Työpöytä/prox/GTProxy/src/client/client.cpp:2: /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h: In instantiation of ‘constexpr decltype (ctx.begin()) fmt::v10::detail::parse_format_specs(ParseContext&) [with T = packet::NetMessageType; ParseContext = compile_parse_context<char>; decltype (ctx.begin()) = const char*]’: /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h:2639:51: required from here /home/theoplegends/Työpöytä/prox/GTProxy/src/client/client.cpp:125:21: in ‘constexpr’ expansion of ‘fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&>("\011{} ({})")’ /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h:2740:40: in ‘constexpr’ expansion of ‘fmt::v10::detail::parse_format_string<true, char, format_string_checker<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType> >(((fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&>*)this)->fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&>::str_, fmt::v10::detail::format_string_checker<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType>(fmt::v10::basic_string_view<char>(((const char*)s))))’ /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h:2489:44: in ‘constexpr’ expansion of ‘fmt::v10::detail::parse_replacement_field<char, format_string_checker<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType>&>((p + -1), end, (* & handler))’ /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h:2457:33: in ‘constexpr’ expansion of ‘(& handler)->fmt::v10::detail::format_string_checker<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType>::on_replacement_field((& handler)->fmt::v10::detail::format_string_checker<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType>::on_arg_id(), begin)’ /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h:2632:20: in ‘constexpr’ expansion of ‘((fmt::v10::detail::format_string_checker<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType>*)this)->fmt::v10::detail::format_string_checker<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType>::on_format_specs(id, begin, begin)’ /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h:2548:45: error: ‘fmt::v10::detail::type_is_unformattable_for<packet::NetMessageType, char> _’ has incomplete type 2548 | type_is_unformattable_for<T, char_type> _; | ^ /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h: In instantiation of ‘constexpr fmt::v10::detail::value<Context> fmt::v10::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; T = packet::NetMessageType; typename std::enable_if<PACKED, int>::type <anonymous> = 0]’: /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h:1808:51: required from ‘constexpr fmt::v10::format_arg_store<Context, Args>::format_arg_store(T& ...) [with T = {std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType}; Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; Args = {std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType}]’ /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h:1826:18: required from ‘constexpr fmt::v10::format_arg_store<Context, typename std::remove_cv<typename std::remove_reference<_Args>::type>::type ...> fmt::v10::make_format_args(T& ...) [with Context = basic_format_context<appender, char>; T = {std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType}]’ /home/theoplegends/.conan2/p/b/spdlo9b5292a1942e1/p/include/spdlog/logger.h:374:75: required from ‘void spdlog::logger::log_(spdlog::source_loc, spdlog::level::level_enum, spdlog::string_view_t, Args&& ...) [with Args = {std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&}; spdlog::string_view_t = fmt::v10::basic_string_view<char>]’ /home/theoplegends/.conan2/p/b/spdlo9b5292a1942e1/p/include/spdlog/logger.h:90:13: required from ‘void spdlog::logger::log(spdlog::source_loc, spdlog::level::level_enum, fmt::v10::format_string<T ...>, Args&& ...) [with Args = {std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&}; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&>]’ /home/theoplegends/.conan2/p/b/spdlo9b5292a1942e1/p/include/spdlog/logger.h:96:12: required from ‘void spdlog::logger::log(spdlog::level::level_enum, fmt::v10::format_string<T ...>, Args&& ...) [with Args = {std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&}; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&>]’ /home/theoplegends/.conan2/p/b/spdlo9b5292a1942e1/p/include/spdlog/logger.h:164:12: required from ‘void spdlog::logger::warn(fmt::v10::format_string<T ...>, Args&& ...) [with Args = {std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&}; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&>]’ /home/theoplegends/.conan2/p/b/spdlo9b5292a1942e1/p/include/spdlog/spdlog.h:176:31: required from ‘void spdlog::warn(fmt::v10::format_string<T ...>, Args&& ...) [with Args = {std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&}; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >, packet::NetMessageType&>]’ /home/theoplegends/Työpöytä/prox/GTProxy/src/client/client.cpp:125:21: required from here /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h:1576:63: error: ‘fmt::v10::detail::type_is_unformattable_for<packet::NetMessageType, char> _’ has incomplete type 1576 | type_is_unformattable_for<T, typename Context::char_type> _; | ^ /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h:1580:7: error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt 1580 | formattable, | ^~~~~~~~~~~ /home/theoplegends/.conan2/p/b/fmtfe2576a40eebe/p/include/fmt/core.h:1580:7: note: ‘formattable’ evaluates to false make[2]: *** [src/CMakeFiles/Proxy.dir/build.make:76: src/CMakeFiles/Proxy.dir/client/client.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:175: src/CMakeFiles/Proxy.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

what I've tried:

theoplegends commented 6 months ago

quick note that I installed conan thru yay image

badewen commented 6 months ago

does your compiler supports c++20?

theoplegends commented 6 months ago

yes cmake 3.28.0 supports c++20 same with my version of gcc

splexas commented 4 months ago

same error, has anyone fixed it yet?