yalantinglibs: centos7 gcc11.2 build failed
Search before asking
- [x ] I searched the issues and found no similar issues.
What happened + What you expected to happen
centos7 gcc build failed
gcc version:
gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[ 25%] Linking CXX executable conformance_test_runner
[ 26%] Linking CXX executable struct_json_example_manual
[ 26%] Built target conformance_test_runner
[ 27%] Building CXX object src/coro_rpc/tests/CMakeFiles/test_rpc.dir/test_coro_rpc_server.cpp.o
[ 27%] Built target struct_json_example_manual
[ 28%] Building CXX object src/coro_rpc/tests/CMakeFiles/test_coro_rpc_server.dir/test_coro_rpc_server.cpp.o
In file included from /home/jianghz/download/yalantinglibs/include/easylog/appender.hpp:25,
from /home/jianghz/download/yalantinglibs/include/easylog/easylog.h:22,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/common_service.hpp:18,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:33,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:201:13: error: ‘string’ in namespace ‘std::pmr’ does not name a type
201 | std::pmr::string ss_{&resource_};
| ^~~~~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp: In member function ‘const char* easylog::record_t::get_message() const’:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:108:44: error: ‘ss_’ was not declared in this scope
108 | const char *get_message() const { return ss_.data(); }
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp: In member function ‘easylog::record_t& easylog::record_t::operator<<(const T&)’:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:124:7: error: ‘ss_’ was not declared in this scope
124 | ss_.append(temp, std::distance(temp, end));
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:127:7: error: ‘ss_’ was not declared in this scope
127 | ss_.push_back(data);
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:136:7: error: ‘ss_’ was not declared in this scope
136 | ss_.append(buf, std::distance(buf, ptr));
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:139:7: error: ‘ss_’ was not declared in this scope
139 | ss_.append(data);
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp: In member function ‘void easylog::record_t::printf_string_format(const char*, Args ...)’:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:160:15: error: ‘string’ is not a member of ‘std::pmr’; did you mean ‘std::string’?
160 | std::pmr::string buf{&resource};
| ^~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/string:39,
from /opt/rh/devtoolset-11/root/usr/include/c++/11/stdexcept:39,
from /home/jianghz/download/yalantinglibs/thirdparty/async_simple/async_simple/Common.h:19,
from /home/jianghz/download/yalantinglibs/thirdparty/async_simple/async_simple/coro/Collect.h:19,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:16:
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/stringfwd.h:79:33: note: ‘std::string’ declared here
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /home/jianghz/download/yalantinglibs/include/easylog/appender.hpp:25,
from /home/jianghz/download/yalantinglibs/include/easylog/easylog.h:22,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/common_service.hpp:18,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:33,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:164:5: error: ‘buf’ was not declared in this scope
164 | buf.reserve(size + 1);
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:164:5: note: suggested alternatives:
In file included from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/socket_ops.hpp:372,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/socket_holder.hpp:20,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/reactive_socket_accept_op.hpp:26,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/reactive_socket_service.hpp:31,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/basic_socket.hpp:38,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/basic_datagram_socket.hpp:20,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio.hpp:26,
from /home/jianghz/download/yalantinglibs/include/asio_util/asio_coro_util.hpp:21,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:31,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/impl/socket_ops.ipp:708:15: note: ‘asio::detail::socket_ops::buf’
708 | typedef iovec buf;
| ^~~
In file included from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/reactive_descriptor_service.hpp:31,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/basic_readable_pipe.hpp:38,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio.hpp:32,
from /home/jianghz/download/yalantinglibs/include/asio_util/asio_coro_util.hpp:21,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:31,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/descriptor_ops.hpp:83:15: note: ‘asio::detail::descriptor_ops::buf’
83 | typedef iovec buf;
| ^~~
In file included from /home/jianghz/download/yalantinglibs/include/easylog/appender.hpp:25,
from /home/jianghz/download/yalantinglibs/include/easylog/easylog.h:22,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/common_service.hpp:18,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:33,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:169:5: error: ‘ss_’ was not declared in this scope
169 | ss_.append(buf);
| ^~~
In file included from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/common_service.hpp:18,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:33,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/include/easylog/easylog.h: In member function ‘void easylog::logger<Id>::append_format(const easylog::record_t&)’:
/home/jianghz/download/yalantinglibs/include/easylog/easylog.h:92:15: error: ‘string’ is not a member of ‘std::pmr’; did you mean ‘std::string’?
92 | std::pmr::string str{&resource};
| ^~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/string:39,
from /opt/rh/devtoolset-11/root/usr/include/c++/11/stdexcept:39,
from /home/jianghz/download/yalantinglibs/thirdparty/async_simple/async_simple/Common.h:19,
from /home/jianghz/download/yalantinglibs/thirdparty/async_simple/async_simple/coro/Collect.h:19,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:16:
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/stringfwd.h:79:33: note: ‘std::string’ declared here
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/common_service.hpp:18,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:33,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/include/easylog/easylog.h:96:5: error: ‘str’ was not declared in this scope; did you mean ‘std’?
96 | str.append(buf, len).append(" ");
| ^~~
| std
In file included from /home/jianghz/download/yalantinglibs/include/easylog/appender.hpp:25,
from /home/jianghz/download/yalantinglibs/include/easylog/easylog.h:22,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/common_service.hpp:18,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:33,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:201:13: error: ‘string’ in namespace ‘std::pmr’ does not name a type
201 | std::pmr::string ss_{&resource_};
| ^~~~~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp: In member function ‘const char* easylog::record_t::get_message() const’:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:108:44: error: ‘ss_’ was not declared in this scope
108 | const char *get_message() const { return ss_.data(); }
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp: In member function ‘easylog::record_t& easylog::record_t::operator<<(const T&)’:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:124:7: error: ‘ss_’ was not declared in this scope
124 | ss_.append(temp, std::distance(temp, end));
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:127:7: error: ‘ss_’ was not declared in this scope
127 | ss_.push_back(data);
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:136:7: error: ‘ss_’ was not declared in this scope
136 | ss_.append(buf, std::distance(buf, ptr));
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:139:7: error: ‘ss_’ was not declared in this scope
139 | ss_.append(data);
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp: In member function ‘void easylog::record_t::printf_string_format(const char*, Args ...)’:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:160:15: error: ‘string’ is not a member of ‘std::pmr’; did you mean ‘std::string’?
160 | std::pmr::string buf{&resource};
| ^~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/string:39,
from /opt/rh/devtoolset-11/root/usr/include/c++/11/stdexcept:39,
from /home/jianghz/download/yalantinglibs/thirdparty/async_simple/async_simple/Common.h:19,
from /home/jianghz/download/yalantinglibs/thirdparty/async_simple/async_simple/coro/Collect.h:19,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:16:
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/stringfwd.h:79:33: note: ‘std::string’ declared here
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /home/jianghz/download/yalantinglibs/include/easylog/appender.hpp:25,
from /home/jianghz/download/yalantinglibs/include/easylog/easylog.h:22,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/common_service.hpp:18,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:33,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:164:5: error: ‘buf’ was not declared in this scope
164 | buf.reserve(size + 1);
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:164:5: note: suggested alternatives:
In file included from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/socket_ops.hpp:372,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/socket_holder.hpp:20,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/reactive_socket_accept_op.hpp:26,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/reactive_socket_service.hpp:31,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/basic_socket.hpp:38,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/basic_datagram_socket.hpp:20,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio.hpp:26,
from /home/jianghz/download/yalantinglibs/include/asio_util/asio_coro_util.hpp:21,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:31,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/impl/socket_ops.ipp:708:15: note: ‘asio::detail::socket_ops::buf’
708 | typedef iovec buf;
| ^~~
In file included from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/reactive_descriptor_service.hpp:31,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio/basic_readable_pipe.hpp:38,
from /home/jianghz/download/yalantinglibs/thirdparty/asio/asio.hpp:32,
from /home/jianghz/download/yalantinglibs/include/asio_util/asio_coro_util.hpp:21,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:31,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/thirdparty/asio/asio/detail/descriptor_ops.hpp:83:15: note: ‘asio::detail::descriptor_ops::buf’
83 | typedef iovec buf;
| ^~~
In file included from /home/jianghz/download/yalantinglibs/include/easylog/appender.hpp:25,
from /home/jianghz/download/yalantinglibs/include/easylog/easylog.h:22,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/common_service.hpp:18,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:33,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:169:5: error: ‘ss_’ was not declared in this scope
169 | ss_.append(buf);
| ^~~
In file included from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/common_service.hpp:18,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:33,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/include/easylog/easylog.h: In member function ‘void easylog::logger<Id>::append_format(const easylog::record_t&)’:
/home/jianghz/download/yalantinglibs/include/easylog/easylog.h:92:15: error: ‘string’ is not a member of ‘std::pmr’; did you mean ‘std::string’?
92 | std::pmr::string str{&resource};
| ^~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/string:39,
from /opt/rh/devtoolset-11/root/usr/include/c++/11/stdexcept:39,
from /home/jianghz/download/yalantinglibs/thirdparty/async_simple/async_simple/Common.h:19,
from /home/jianghz/download/yalantinglibs/thirdparty/async_simple/async_simple/coro/Collect.h:19,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:16:
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/stringfwd.h:79:33: note: ‘std::string’ declared here
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/common_service.hpp:18,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc/coro_rpc_client.hpp:33,
from /home/jianghz/download/yalantinglibs/include/coro_rpc/coro_rpc_client.hpp:17,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/test_coro_rpc_server.cpp:19:
/home/jianghz/download/yalantinglibs/include/easylog/easylog.h:96:5: error: ‘str’ was not declared in this scope; did you mean ‘std’?
96 | str.append(buf, len).append(" ");
| ^~~
| std
make[2]: *** [src/coro_rpc/tests/CMakeFiles/test_rpc.dir/build.make:76:src/coro_rpc/tests/CMakeFiles/test_rpc.dir/test_coro_rpc_server.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:854:src/coro_rpc/tests/CMakeFiles/test_rpc.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 28%] Building CXX object src/coro_rpc/tests/CMakeFiles/test_coro_rpc_server.dir/rpc_service.cpp.o
make[2]: *** [src/coro_rpc/tests/CMakeFiles/test_coro_rpc_server.dir/build.make:76:src/coro_rpc/tests/CMakeFiles/test_coro_rpc_server.dir/test_coro_rpc_server.cpp.o] 错误 1
make[2]: *** 正在等待未完成的任务....
[ 29%] Building CXX object src/struct_pack/tests/CMakeFiles/test_serialize.dir/test_compatible.cpp.o
In file included from /home/jianghz/download/yalantinglibs/include/easylog/appender.hpp:25,
from /home/jianghz/download/yalantinglibs/include/easylog/easylog.h:22,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/rpc_service.cpp:16:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:201:13: error: ‘string’ in namespace ‘std::pmr’ does not name a type
201 | std::pmr::string ss_{&resource_};
| ^~~~~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp: In member function ‘const char* easylog::record_t::get_message() const’:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:108:44: error: ‘ss_’ was not declared in this scope
108 | const char *get_message() const { return ss_.data(); }
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp: In member function ‘easylog::record_t& easylog::record_t::operator<<(const T&)’:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:124:7: error: ‘ss_’ was not declared in this scope
124 | ss_.append(temp, std::distance(temp, end));
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:127:7: error: ‘ss_’ was not declared in this scope
127 | ss_.push_back(data);
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:136:7: error: ‘ss_’ was not declared in this scope
136 | ss_.append(buf, std::distance(buf, ptr));
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:139:7: error: ‘ss_’ was not declared in this scope
139 | ss_.append(data);
| ^~~
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp: In member function ‘void easylog::record_t::printf_string_format(const char*, Args ...)’:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:160:15: error: ‘string’ is not a member of ‘std::pmr’; did you mean ‘std::string’?
160 | std::pmr::string buf{&resource};
| ^~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/iosfwd:39,
from /opt/rh/devtoolset-11/root/usr/include/c++/11/string_view:40,
from /home/jianghz/download/yalantinglibs/include/easylog/easylog.h:18,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/rpc_service.cpp:16:
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/stringfwd.h:79:33: note: ‘std::string’ declared here
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /home/jianghz/download/yalantinglibs/include/easylog/appender.hpp:25,
from /home/jianghz/download/yalantinglibs/include/easylog/easylog.h:22,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/rpc_service.cpp:16:
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:164:5: error: ‘buf’ was not declared in this scope; did you mean ‘buf_’?
164 | buf.reserve(size + 1);
| ^~~
| buf_
/home/jianghz/download/yalantinglibs/include/easylog/record.hpp:169:5: error: ‘ss_’ was not declared in this scope
169 | ss_.append(buf);
| ^~~
In file included from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/rpc_service.cpp:16:
/home/jianghz/download/yalantinglibs/include/easylog/easylog.h: In member function ‘void easylog::logger<Id>::append_format(const easylog::record_t&)’:
/home/jianghz/download/yalantinglibs/include/easylog/easylog.h:92:15: error: ‘string’ is not a member of ‘std::pmr’; did you mean ‘std::string’?
92 | std::pmr::string str{&resource};
| ^~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/iosfwd:39,
from /opt/rh/devtoolset-11/root/usr/include/c++/11/string_view:40,
from /home/jianghz/download/yalantinglibs/include/easylog/easylog.h:18,
from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/rpc_service.cpp:16:
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/stringfwd.h:79:33: note: ‘std::string’ declared here
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /home/jianghz/download/yalantinglibs/src/coro_rpc/tests/rpc_service.cpp:16:
/home/jianghz/download/yalantinglibs/include/easylog/easylog.h:96:5: error: ‘str’ was not declared in this scope; did you mean ‘std’?
96 | str.append(buf, len).append(" ");
| ^~~
| std
make[2]: *** [src/coro_rpc/tests/CMakeFiles/test_coro_rpc_server.dir/build.make:90:src/coro_rpc/tests/CMakeFiles/test_coro_rpc_server.dir/rpc_service.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:880:src/coro_rpc/tests/CMakeFiles/test_coro_rpc_server.dir/all] 错误 2
[ 29%] Building CXX object src/struct_pack/tests/CMakeFiles/test_serialize.dir/main.cpp.o
[ 30%] Linking CXX executable ../../../tests/test_serialize
[ 30%] Built target test_serialize
make: *** [Makefile:146:all] 错误 2
Reproduction way
Anything else
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18
pr更新了,麻烦再拉一下测试一下。