-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I'm running Arch Linux, and I used to be able to compile patches a month or so ago, but now whenever I try make libs or to make a C++ patch, it comes up with a lot of different errors related to requires_hosted.h among other things.
I downgraded to arm-none-eabi-gcc 12.1.0-1 and it compiles successfully so I think this has something to do with the change in GCC versions. I'm not enough of an expert to know whether this is a bug in my specific setup or a bug in OwlProgram.
Here's the full output I get when trying to compile a patch:
In file included from /usr/arm-none-eabi/include/c++/13.1.0/string:38,
from ./Source/PatchProgram.cpp:1:
/usr/arm-none-eabi/include/c++/13.1.0/bits/requires_hosted.h:34:4: error: #error "This header is not available in freestanding mode."
34 | # error "This header is not available in freestanding mode."
| ^~~~~
In file included from /usr/arm-none-eabi/include/c++/13.1.0/string:41:
/usr/arm-none-eabi/include/c++/13.1.0/bits/stringfwd.h:71:30: error: 'allocator' does not name a type; did you mean 'alloca'?
71 | typename _Alloc = allocator<_CharT> >
| ^~~~~~~~~
| alloca
/usr/arm-none-eabi/include/c++/13.1.0/bits/stringfwd.h:71:39: error: expected '>' before '<' token
71 | typename _Alloc = allocator<_CharT> >
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/stringfwd.h:77:28: error: template argument 3 is invalid
77 | typedef basic_string<char> string;
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/stringfwd.h:80:31: error: template argument 3 is invalid
80 | typedef basic_string<wchar_t> wstring;
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/stringfwd.h:89:32: error: template argument 3 is invalid
89 | typedef basic_string<char16_t> u16string;
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/stringfwd.h:92:32: error: template argument 3 is invalid
92 | typedef basic_string<char32_t> u32string;
| ^
In file included from /usr/arm-none-eabi/include/c++/13.1.0/arm-none-eabi/thumb/v7e-m+fp/hard/bits/c++allocator.h:33,
from /usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:46,
from /usr/arm-none-eabi/include/c++/13.1.0/string:43:
/usr/arm-none-eabi/include/c++/13.1.0/bits/new_allocator.h: In member function '_Tp* std::__new_allocator<_Tp>::allocate(size_type, const void*)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/new_allocator.h:135:20: error: '__throw_bad_array_new_length' is not a member of 'std'; did you mean 'bad_array_new_length'?
135 | std::__throw_bad_array_new_length();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| bad_array_new_length
/usr/arm-none-eabi/include/c++/13.1.0/bits/new_allocator.h:136:18: error: '__throw_bad_alloc' is not a member of 'std'
136 | std::__throw_bad_alloc();
| ^~~~~~~~~~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:75:11: error: 'allocator' is not a class template
75 | class allocator<void>
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:76:5: error: explicit specialization of non-template 'std::allocator'
76 | {
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:89:19: error: 'std::allocator' is not a template
89 | { typedef allocator<_Tp1> other; };
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:130:11: error: 'std::allocator' is not a template
130 | class allocator : public __allocator_base<_Tp>
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:75:11: note: previous declaration here
75 | class allocator<void>
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:237:22: error: 'std::allocator' is not a template
237 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:237:45: error: 'std::allocator' is not a template
237 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:245:22: error: 'std::allocator' is not a template
245 | operator!=(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:245:45: error: 'std::allocator' is not a template
245 | operator!=(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:255:11: error: 'allocator' is not a class template
255 | class allocator<const _Tp>
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:255:30: error: 'std::allocator' is not a template
255 | class allocator<const _Tp>
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:75:11: note: previous declaration here
75 | class allocator<void>
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:263:11: error: 'allocator' is not a class template
263 | class allocator<volatile _Tp>
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:263:33: error: 'std::allocator' is not a template
263 | class allocator<volatile _Tp>
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:75:11: note: previous declaration here
75 | class allocator<void>
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:271:11: error: 'allocator' is not a class template
271 | class allocator<const volatile _Tp>
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:271:39: error: 'std::allocator' is not a template
271 | class allocator<const volatile _Tp>
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:75:11: note: previous declaration here
75 | class allocator<void>
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:284:25: error: 'allocator' is not a class template
284 | extern template class allocator<char>;
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:284:25: error: explicit instantiation of non-template type 'std::allocator'
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:285:25: error: 'allocator' is not a class template
285 | extern template class allocator<wchar_t>;
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/allocator.h:285:25: error: explicit instantiation of non-template type 'std::allocator'
In file included from /usr/arm-none-eabi/include/c++/13.1.0/bits/localefwd.h:41,
from /usr/arm-none-eabi/include/c++/13.1.0/string:45:
/usr/arm-none-eabi/include/c++/13.1.0/iosfwd:97:31: error: 'std::allocator' is not a template
97 | typename _Alloc = allocator<_CharT> >
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/iosfwd:101:30: error: 'std::allocator' is not a template
101 | typename _Alloc = allocator<_CharT> >
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/iosfwd:105:30: error: 'std::allocator' is not a template
105 | typename _Alloc = allocator<_CharT> >
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/iosfwd:109:30: error: 'std::allocator' is not a template
109 | typename _Alloc = allocator<_CharT> >
| ^~~~~~~~~
In file included from /usr/arm-none-eabi/include/c++/13.1.0/string:54:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In member function 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_check_length(size_type, size_type, const char*) const':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:401:11: error: there are no arguments to '__throw_length_error' that depend on a template parameter, so a declaration of '__throw_length_error' must be available [-fpermissive]
401 | __throw_length_error(__N(__s));
| ^~~~~~~~~~~~~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:401:11: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In constructor 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, size_type, const _Alloc&)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:626:16: error: '__throw_logic_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
626 | std::__throw_logic_error(__N("basic_string: "
| ^~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In constructor 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:647:16: error: '__throw_logic_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
647 | std::__throw_logic_error(__N("basic_string: "
| ^~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:3499:34: error: 'std::allocator' is not a template
3499 | typename _Allocator = allocator<_CharT>,
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:3508:34: error: 'std::allocator' is not a template
3508 | typename _Allocator = allocator<_CharT>,
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:3514:34: error: 'std::allocator' is not a template
3514 | typename _Allocator = allocator<_CharT>,
| ^~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4018:60: error: template argument 3 is invalid
4018 | operator>>(basic_istream<char>& __is, basic_string<char>& __str);
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4018:5: error: template-id 'operator>><>' for 'std::basic_istream<char>& std::operator>>(basic_istream<char>&, int&)' does not match any template declaration
4018 | operator>>(basic_istream<char>& __is, basic_string<char>& __str);
| ^~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4013:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4013 | operator>>(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4093:57: error: template argument 3 is invalid
4093 | getline(basic_istream<char>& __in, basic_string<char>& __str,
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4093:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(basic_istream<char>&, int&, char)' does not match any template declaration
4093 | getline(basic_istream<char>& __in, basic_string<char>& __str,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4086:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4086 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4079:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
4079 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4071:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4071 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4054:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
4054 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4099:63: error: template argument 3 is invalid
4099 | getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4099:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(basic_istream<wchar_t>&, int&, wchar_t)' does not match any template declaration
4099 | getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4086:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4086 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4079:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
4079 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4071:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4071 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4054:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
4054 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4120:47: error: 'strtol' is not a member of 'std'
4120 | { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
| ^~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4120:69: error: request for member 'c_str' in '__str', which is of non-class type 'const std::string' {aka 'const int'}
4120 | { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'long int std::__cxx11::stol(const std::string&, std::size_t*, int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4125:36: error: 'strtol' is not a member of 'std'
4125 | { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(),
| ^~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4125:58: error: request for member 'c_str' in '__str', which is of non-class type 'const std::string' {aka 'const int'}
4125 | { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(),
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const std::string&, std::size_t*, int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4130:36: error: 'strtoul' is not a member of 'std'
4130 | { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(),
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4130:60: error: request for member 'c_str' in '__str', which is of non-class type 'const std::string' {aka 'const int'}
4130 | { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(),
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const std::string&, std::size_t*, int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4135:36: error: 'strtoll' is not a member of 'std'
4135 | { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(),
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4135:60: error: request for member 'c_str' in '__str', which is of non-class type 'const std::string' {aka 'const int'}
4135 | { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(),
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const std::string&, std::size_t*, int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4140:36: error: 'strtoull' is not a member of 'std'
4140 | { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(),
| ^~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4140:62: error: request for member 'c_str' in '__str', which is of non-class type 'const std::string' {aka 'const int'}
4140 | { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(),
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'float std::__cxx11::stof(const std::string&, std::size_t*)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4146:36: error: 'strtof' is not a member of 'std'
4146 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ^~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4146:58: error: request for member 'c_str' in '__str', which is of non-class type 'const std::string' {aka 'const int'}
4146 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'double std::__cxx11::stod(const std::string&, std::size_t*)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4150:36: error: 'strtod' is not a member of 'std'
4150 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ^~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4150:58: error: request for member 'c_str' in '__str', which is of non-class type 'const std::string' {aka 'const int'}
4150 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'long double std::__cxx11::stold(const std::string&, std::size_t*)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4154:36: error: 'strtold' is not a member of 'std'
4154 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4154:60: error: request for member 'c_str' in '__str', which is of non-class type 'const std::string' {aka 'const int'}
4154 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4169:36: error: expression list treated as compound expression in initializer [-fpermissive]
4169 | string __str(__neg + __len, '-');
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4170:40: error: invalid types 'std::string {aka int}[const bool]' for array subscript
4170 | __detail::__to_chars_10_impl(&__str[__neg], __len, __uval);
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(unsigned int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4181:55: error: expression list treated as compound expression in initializer [-fpermissive]
4181 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4182:40: error: invalid types 'std::string {aka int}[int]' for array subscript
4182 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4182:51: error: request for member 'size' in '__str', which is of non-class type 'std::string' {aka 'int'}
4182 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4196:36: error: expression list treated as compound expression in initializer [-fpermissive]
4196 | string __str(__neg + __len, '-');
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4197:40: error: invalid types 'std::string {aka int}[const bool]' for array subscript
4197 | __detail::__to_chars_10_impl(&__str[__neg], __len, __uval);
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long unsigned int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4208:55: error: expression list treated as compound expression in initializer [-fpermissive]
4208 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4209:40: error: invalid types 'std::string {aka int}[int]' for array subscript
4209 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4209:51: error: request for member 'size' in '__str', which is of non-class type 'std::string' {aka 'int'}
4209 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long long int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4221:36: error: expression list treated as compound expression in initializer [-fpermissive]
4221 | string __str(__neg + __len, '-');
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4222:40: error: invalid types 'std::string {aka int}[const bool]' for array subscript
4222 | __detail::__to_chars_10_impl(&__str[__neg], __len, __uval);
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long long unsigned int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4230:55: error: expression list treated as compound expression in initializer [-fpermissive]
4230 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4231:40: error: invalid types 'std::string {aka int}[int]' for array subscript
4231 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4231:51: error: request for member 'size' in '__str', which is of non-class type 'std::string' {aka 'int'}
4231 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4271:3: error: redefinition of 'int std::__cxx11::stoi(const std::wstring&, std::size_t*, int)'
4271 | stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4119:3: note: 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)' previously defined here
4119 | stoi(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'int std::__cxx11::stoi(const std::wstring&, std::size_t*, int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4272:69: error: request for member 'c_str' in '__str', which is of non-class type 'const std::wstring' {aka 'const int'}
4272 | { return __gnu_cxx::__stoa<long, int>(&std::wcstol, "stoi", __str.c_str(),
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4276:3: error: redefinition of 'long int std::__cxx11::stol(const std::wstring&, std::size_t*, int)'
4276 | stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4124:3: note: 'long int std::__cxx11::stol(const std::string&, std::size_t*, int)' previously defined here
4124 | stol(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'long int std::__cxx11::stol(const std::wstring&, std::size_t*, int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4277:58: error: request for member 'c_str' in '__str', which is of non-class type 'const std::wstring' {aka 'const int'}
4277 | { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(),
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4281:3: error: redefinition of 'long unsigned int std::__cxx11::stoul(const std::wstring&, std::size_t*, int)'
4281 | stoul(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4129:3: note: 'long unsigned int std::__cxx11::stoul(const std::string&, std::size_t*, int)' previously defined here
4129 | stoul(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const std::wstring&, std::size_t*, int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4282:60: error: request for member 'c_str' in '__str', which is of non-class type 'const std::wstring' {aka 'const int'}
4282 | { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(),
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4286:3: error: redefinition of 'long long int std::__cxx11::stoll(const std::wstring&, std::size_t*, int)'
4286 | stoll(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4134:3: note: 'long long int std::__cxx11::stoll(const std::string&, std::size_t*, int)' previously defined here
4134 | stoll(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const std::wstring&, std::size_t*, int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4287:60: error: request for member 'c_str' in '__str', which is of non-class type 'const std::wstring' {aka 'const int'}
4287 | { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(),
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4291:3: error: redefinition of 'long long unsigned int std::__cxx11::stoull(const std::wstring&, std::size_t*, int)'
4291 | stoull(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4139:3: note: 'long long unsigned int std::__cxx11::stoull(const std::string&, std::size_t*, int)' previously defined here
4139 | stoull(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const std::wstring&, std::size_t*, int)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4292:62: error: request for member 'c_str' in '__str', which is of non-class type 'const std::wstring' {aka 'const int'}
4292 | { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(),
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4297:3: error: redefinition of 'float std::__cxx11::stof(const std::wstring&, std::size_t*)'
4297 | stof(const wstring& __str, size_t* __idx = 0)
| ^~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4145:3: note: 'float std::__cxx11::stof(const std::string&, std::size_t*)' previously defined here
4145 | stof(const string& __str, size_t* __idx = 0)
| ^~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'float std::__cxx11::stof(const std::wstring&, std::size_t*)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4298:58: error: request for member 'c_str' in '__str', which is of non-class type 'const std::wstring' {aka 'const int'}
4298 | { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4301:3: error: redefinition of 'double std::__cxx11::stod(const std::wstring&, std::size_t*)'
4301 | stod(const wstring& __str, size_t* __idx = 0)
| ^~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4149:3: note: 'double std::__cxx11::stod(const std::string&, std::size_t*)' previously defined here
4149 | stod(const string& __str, size_t* __idx = 0)
| ^~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'double std::__cxx11::stod(const std::wstring&, std::size_t*)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4302:58: error: request for member 'c_str' in '__str', which is of non-class type 'const std::wstring' {aka 'const int'}
4302 | { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4305:3: error: redefinition of 'long double std::__cxx11::stold(const std::wstring&, std::size_t*)'
4305 | stold(const wstring& __str, size_t* __idx = 0)
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4153:3: note: 'long double std::__cxx11::stold(const std::string&, std::size_t*)' previously defined here
4153 | stold(const string& __str, size_t* __idx = 0)
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'long double std::__cxx11::stold(const std::wstring&, std::size_t*)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4306:60: error: request for member 'c_str' in '__str', which is of non-class type 'const std::wstring' {aka 'const int'}
4306 | { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
| ^~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4453:21: error: redefinition of 'struct std::__is_fast_hash<std::hash<int> >'
4453 | template<> struct __is_fast_hash<hash<wstring>> : std::false_type { };
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4452:21: note: previous definition of 'struct std::__is_fast_hash<std::hash<int> >'
4452 | template<> struct __is_fast_hash<hash<string>> : std::false_type { };
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4454:21: error: redefinition of 'struct std::__is_fast_hash<std::hash<int> >'
4454 | template<> struct __is_fast_hash<hash<u16string>> : std::false_type { };
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4452:21: note: previous definition of 'struct std::__is_fast_hash<std::hash<int> >'
4452 | template<> struct __is_fast_hash<hash<string>> : std::false_type { };
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4455:21: error: redefinition of 'struct std::__is_fast_hash<std::hash<int> >'
4455 | template<> struct __is_fast_hash<hash<u32string>> : std::false_type { };
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4452:21: note: previous definition of 'struct std::__is_fast_hash<std::hash<int> >'
4452 | template<> struct __is_fast_hash<hash<string>> : std::false_type { };
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4485:29: error: template argument 3 is invalid
4485 | inline basic_string<char>
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'int std::literals::string_literals::operator""s(const char*, std::size_t)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4487:31: error: template argument 3 is invalid
4487 | { return basic_string<char>{__str, __len}; }
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4490:32: error: template argument 3 is invalid
4490 | inline basic_string<wchar_t>
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'int std::literals::string_literals::operator""s(const wchar_t*, std::size_t)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4492:34: error: template argument 3 is invalid
4492 | { return basic_string<wchar_t>{__str, __len}; }
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4502:33: error: template argument 3 is invalid
4502 | inline basic_string<char16_t>
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'int std::literals::string_literals::operator""s(const char16_t*, std::size_t)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4504:35: error: template argument 3 is invalid
4504 | { return basic_string<char16_t>{__str, __len}; }
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4507:33: error: template argument 3 is invalid
4507 | inline basic_string<char32_t>
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h: In function 'int std::literals::string_literals::operator""s(const char32_t*, std::size_t)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4509:35: error: template argument 3 is invalid
4509 | { return basic_string<char32_t>{__str, __len}; }
| ^
In file included from /usr/arm-none-eabi/include/c++/13.1.0/string:55:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc: In member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_create(size_type&, size_type)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:140:14: error: '__throw_length_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
140 | std::__throw_length_error(__N("basic_string::_M_create"));
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc: At global scope:
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:965:42: error: template argument 3 is invalid
965 | extern template class basic_string<char>;
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:980:5: error: template-id 'operator>><>' for 'std::basic_istream<char>& std::operator>>(basic_istream<char>&, string&)' does not match any template declaration
980 | operator>>(basic_istream<char>&, string&);
| ^~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:823:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
823 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:983:5: error: template-id 'operator<< <>' for 'std::basic_ostream<char>& std::operator<<(basic_ostream<char>&, const string&)' does not match any template declaration
983 | operator<<(basic_ostream<char>&, const string&);
| ^~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4031:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4031 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:986:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(basic_istream<char>&, string&, char)' does not match any template declaration
986 | getline(basic_istream<char>&, string&, char);
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4086:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4086 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4079:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
4079 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4071:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4071 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:895:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
895 | getline(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:989:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(basic_istream<char>&, string&)' does not match any template declaration
989 | getline(basic_istream<char>&, string&);
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4086:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4086 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4079:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
4079 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4071:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4071 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:895:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
895 | getline(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:993:45: error: template argument 3 is invalid
993 | extern template class basic_string<wchar_t>;
| ^
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:1006:5: error: template-id 'operator>><>' for 'std::basic_istream<wchar_t>& std::operator>>(basic_istream<wchar_t>&, wstring&)' does not match any template declaration
1006 | operator>>(basic_istream<wchar_t>&, wstring&);
| ^~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:823:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
823 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:1009:5: error: template-id 'operator<< <>' for 'std::basic_ostream<wchar_t>& std::operator<<(basic_ostream<wchar_t>&, const wstring&)' does not match any template declaration
1009 | operator<<(basic_ostream<wchar_t>&, const wstring&);
| ^~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4031:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4031 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:1012:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(basic_istream<wchar_t>&, wstring&, wchar_t)' does not match any template declaration
1012 | getline(basic_istream<wchar_t>&, wstring&, wchar_t);
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4086:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4086 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4079:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
4079 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4071:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4071 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:895:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
895 | getline(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:1015:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(basic_istream<wchar_t>&, wstring&)' does not match any template declaration
1015 | getline(basic_istream<wchar_t>&, wstring&);
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4086:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4086 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4079:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
4079 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4071:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4071 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.tcc:895:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
895 | getline(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~
In file included from /usr/arm-none-eabi/include/c++/13.1.0/string:58:
/usr/arm-none-eabi/include/c++/13.1.0/bits/memory_resource.h: In member function '_Tp* std::pmr::polymorphic_allocator<_Tp>::allocate(std::size_t)':
/usr/arm-none-eabi/include/c++/13.1.0/bits/memory_resource.h:149:16: error: '__throw_bad_array_new_length' is not a member of 'std'; did you mean 'bad_array_new_length'?
149 | std::__throw_bad_array_new_length();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| bad_array_new_length
In file included from /usr/arm-none-eabi/include/c++/13.1.0/bits/specfun.h:47,
from /usr/arm-none-eabi/include/c++/13.1.0/cmath:3716,
from /usr/arm-none-eabi/include/c++/13.1.0/math.h:36,
from ./Libraries/CMSIS/DSP/Include/arm_math.h:322,
from ./LibSource/basicmaths.h:25,
from ./LibSource/Patch.h:5,
from ./Source/SampleBuffer.hpp:5,
from ./Source/PatchProgram.cpp:4:
/usr/arm-none-eabi/include/c++/13.1.0/tr1/gamma.tcc: In function '_Tp std::__detail::__log_gamma(_Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/gamma.tcc:236:18: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
236 | std::__throw_domain_error(__N("Argument is nonpositive integer "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/gamma.tcc: In function '_Tp std::__detail::__psi(unsigned int, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/gamma.tcc:451:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
451 | std::__throw_domain_error(__N("Argument out of range "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
In file included from /usr/arm-none-eabi/include/c++/13.1.0/bits/specfun.h:48:
/usr/arm-none-eabi/include/c++/13.1.0/tr1/bessel_function.tcc: In function '_Tp std::__detail::__cyl_bessel_j(_Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/bessel_function.tcc:495:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
495 | std::__throw_domain_error(__N("Bad argument "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/bessel_function.tcc: In function '_Tp std::__detail::__cyl_neumann_n(_Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/bessel_function.tcc:537:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
537 | std::__throw_domain_error(__N("Bad argument "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/bessel_function.tcc: In function '_Tp std::__detail::__sph_bessel(unsigned int, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/bessel_function.tcc:609:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
609 | std::__throw_domain_error(__N("Bad argument "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/bessel_function.tcc: In function '_Tp std::__detail::__sph_neumann(unsigned int, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/bessel_function.tcc:647:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
647 | std::__throw_domain_error(__N("Bad argument "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
In file included from /usr/arm-none-eabi/include/c++/13.1.0/bits/specfun.h:50:
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc: In function '_Tp std::__detail::__ellint_rf(_Tp, _Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:84:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
84 | std::__throw_domain_error(__N("Argument less than zero "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:88:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
88 | std::__throw_domain_error(__N("Argument too small in __ellint_rf"));
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc: In function '_Tp std::__detail::__ellint_1(_Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:227:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
227 | std::__throw_domain_error(__N("Bad argument in __ellint_1."));
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc: In function '_Tp std::__detail::__ellint_rd(_Tp, _Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:324:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
324 | std::__throw_domain_error(__N("Argument less than zero "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:327:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
327 | std::__throw_domain_error(__N("Argument too small "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc: In function '_Tp std::__detail::__comp_ellint_2(_Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:409:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
409 | std::__throw_domain_error(__N("Bad argument in __comp_ellint_2."));
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc: In function '_Tp std::__detail::__ellint_2(_Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:441:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
441 | std::__throw_domain_error(__N("Bad argument in __ellint_2."));
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc: In function '_Tp std::__detail::__ellint_rc(_Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:500:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
500 | std::__throw_domain_error(__N("Argument less than zero "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc: In function '_Tp std::__detail::__ellint_rj(_Tp, _Tp, _Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:569:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
569 | std::__throw_domain_error(__N("Argument less than zero "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:573:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
573 | std::__throw_domain_error(__N("Argument too small "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc: In function '_Tp std::__detail::__comp_ellint_3(_Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:671:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
671 | std::__throw_domain_error(__N("Bad argument in __comp_ellint_3."));
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc: In function '_Tp std::__detail::__ellint_3(_Tp, _Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/ell_integral.tcc:709:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
709 | std::__throw_domain_error(__N("Bad argument in __ellint_3."));
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
In file included from /usr/arm-none-eabi/include/c++/13.1.0/bits/specfun.h:52:
/usr/arm-none-eabi/include/c++/13.1.0/tr1/hypergeometric.tcc: In function '_Tp std::__detail::__hyperg(_Tp, _Tp, _Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/hypergeometric.tcc:743:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
743 | std::__throw_domain_error(__N("Argument outside unit circle "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
In file included from /usr/arm-none-eabi/include/c++/13.1.0/bits/specfun.h:54:
/usr/arm-none-eabi/include/c++/13.1.0/tr1/modified_bessel_func.tcc: In function '_Tp std::__detail::__cyl_bessel_i(_Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/modified_bessel_func.tcc:272:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
272 | std::__throw_domain_error(__N("Bad argument "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
/usr/arm-none-eabi/include/c++/13.1.0/tr1/modified_bessel_func.tcc: In function '_Tp std::__detail::__cyl_bessel_k(_Tp, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/modified_bessel_func.tcc:308:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
308 | std::__throw_domain_error(__N("Bad argument "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
In file included from /usr/arm-none-eabi/include/c++/13.1.0/bits/specfun.h:56:
/usr/arm-none-eabi/include/c++/13.1.0/tr1/poly_laguerre.tcc: In function '_Tp std::__detail::__poly_laguerre(unsigned int, _Tpa, _Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/poly_laguerre.tcc:249:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
249 | std::__throw_domain_error(__N("Negative argument "
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
In file included from /usr/arm-none-eabi/include/c++/13.1.0/bits/specfun.h:57:
/usr/arm-none-eabi/include/c++/13.1.0/tr1/riemann_zeta.tcc: In function '_Tp std::__detail::__riemann_zeta_sum(_Tp)':
/usr/arm-none-eabi/include/c++/13.1.0/tr1/riemann_zeta.tcc:84:14: error: '__throw_domain_error' is not a member of 'std'; did you mean '__throw_runtime_error'?
84 | std::__throw_domain_error(__N("Bad argument in zeta sum."));
| ^~~~~~~~~~~~~~~~~~~~
| __throw_runtime_error
In file included from /usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4108:
/usr/arm-none-eabi/include/c++/13.1.0/ext/string_conversions.h: In instantiation of '_String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list), std::size_t, const _CharT*, ...) [with _String = int; _CharT = char; std::size_t = unsigned int]':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4244:43: required from here
/usr/arm-none-eabi/include/c++/13.1.0/ext/string_conversions.h:117:14: error: expression list treated as compound expression in functional cast [-fpermissive]
117 | return _String(__s, __s + __len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/arm-none-eabi/include/c++/13.1.0/ext/string_conversions.h: In instantiation of '_String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list), std::size_t, const _CharT*, ...) [with _String = int; _CharT = wchar_t; std::size_t = unsigned int]':
/usr/arm-none-eabi/include/c++/13.1.0/bits/basic_string.h:4313:44: required from here
/usr/arm-none-eabi/include/c++/13.1.0/ext/string_conversions.h:117:14: error: expression list treated as compound expression in functional cast [-fpermissive]
make[2]: *** [compile.mk:169: Build/PatchProgram.o] Error 1
make[1]: *** [Makefile:110: patch] Error 2
Metadata
Metadata
Assignees
Labels
No labels