public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jdx at o2 dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
Date: Sat, 07 Jan 2023 01:09:32 +0000	[thread overview]
Message-ID: <bug-108221-4-BeEQ1fTZfl@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-108221-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221

--- Comment #6 from Jan Dubiec <jdx at o2 dot pl> ---
Jonathan, I am not sure to what part of the thread "above" refers to, but build
fails indeed. This time due to a different reason. This is what I got when I
was trying to build f7bd48c6. Please note -mn -mint32 options – normal mode
(aka 16-bit mode) with 32-bit integers.

Making all in c++20
make[9]: Entering directory
'/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/src/c++20'
/bin/sh ../../libtool --tag CXX --tag disable-shared   --mode=compile
/d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc
-B/d/Works/xcomp/gcc-build/./gcc -nostdinc++
-L/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/src
-L/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/src/.libs
-L/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/libsupc++/.libs
-B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem
/usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include  -mn
-mint32 -I/d/Works/gcc/libstdc++-v3/../libgcc
-I/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/h8300-elf
-I/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include
-I/d/Works/gcc/libstdc++-v3/libsupc++   -std=gnu++20   -fno-implicit-templates 
-Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 
-fdiagnostics-show-location=once   -ffunction-sections -fdata-sections 
-frandom-seed=tzdb.lo  -fimplicit-templates -isystem
/d/Works/xcomp/sysroot/h8300-elf/include  -mn -mint32  -c -o tzdb.lo
../../../../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc
libtool: compile:  /d/Works/xcomp/gcc-build/./gcc/xgcc -shared-libgcc
-B/d/Works/xcomp/gcc-build/./gcc -nostdinc++
-L/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/src
-L/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/src/.libs
-L/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/libsupc++/.libs
-B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem
/usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -mn
-mint32 -I/d/Works/gcc/libstdc++-v3/../libgcc
-I/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/h8300-elf
-I/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include
-I/d/Works/gcc/libstdc++-v3/libsupc++ -std=gnu++20 -fno-implicit-templates
-Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=tzdb.lo -fimplicit-templates -isystem
/d/Works/xcomp/sysroot/h8300-elf/include -mn -mint32 -c
../../../../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc -o tzdb.o
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc: In member function
'std::string_view std::chrono::{anonymous}::ZoneInfo::rules() const':
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:402:36: warning: narrowing
conversion of '(((unsigned int)((int)((const
std::chrono::{anonymous}::ZoneInfo*)this)->std::chrono::{anonymous}::ZoneInfo::m_pos))
- 1)' from 'unsigned int' to 'std::basic_string_view<char>::size_type' {aka
'short unsigned int'} [-Wnarrowing]
  402 |           r = {m_buf.data(), m_pos - 1u};
      |                              ~~~~~~^~~~
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc: In member function
'std::string_view std::chrono::{anonymous}::ZoneInfo::format() const':
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:409:52: warning: narrowing
conversion of '(((int)((const
std::chrono::{anonymous}::ZoneInfo*)this)->std::chrono::{anonymous}::ZoneInfo::m_buf.std::__cxx11::basic_string<char>::size())
- ((int)((const
std::chrono::{anonymous}::ZoneInfo*)this)->std::chrono::{anonymous}::ZoneInfo::m_pos))'
from 'int' to 'std::basic_string_view<char>::size_type' {aka 'short unsigned
int'} [-Wnarrowing]
  409 |       { return {m_buf.data() + m_pos, m_buf.size() - m_pos}; }
      |                                       ~~~~~~~~~~~~~^~~~~~~
In file included from
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/chrono:48,
                 from d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:28:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:
In instantiation of 'void std::__merge_adaptive_resize(_BidirectionalIterator,
_BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer,
_Distance, _Compare) [with _BidirectionalIterator =
__gnu_cxx::__normal_iterator<chrono::{anonymous}::Rule*,
vector<chrono::{anonymous}::Rule> >; _Distance = short int; _Pointer =
chrono::{anonymous}::Rule*; _Compare =
__gnu_cxx::__ops::_Iter_comp_iter<ranges::__detail::__make_comp_proj<std::ranges::less,
std::__cxx11::basic_string<char>
std::chrono::{anonymous}::Rule::*>(std::ranges::less&,
std::__cxx11::basic_string<char>
std::chrono::{anonymous}::Rule::*&)::<lambda(auto:45&&, auto:46&&)> >]':
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:2770:32:
  required from 'void std::__stable_sort_adaptive_resize(_RandomAccessIterator,
_RandomAccessIterator, _Pointer, _Distance, _Compare) [with
_RandomAccessIterator =
__gnu_cxx::__normal_iterator<chrono::{anonymous}::Rule*,
vector<chrono::{anonymous}::Rule> >; _Pointer = chrono::{anonymous}::Rule*;
_Distance = short int; _Compare =
__gnu_cxx::__ops::_Iter_comp_iter<ranges::__detail::__make_comp_proj<std::ranges::less,
std::__cxx11::basic_string<char>
std::chrono::{anonymous}::Rule::*>(std::ranges::less&,
std::__cxx11::basic_string<char>
std::chrono::{anonymous}::Rule::*&)::<lambda(auto:45&&, auto:46&&)> >]'
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:5046:36:
  required from 'void std::__stable_sort(_RandomAccessIterator,
_RandomAccessIterator, _Compare) [with _RandomAccessIterator =
__gnu_cxx::__normal_iterator<chrono::{anonymous}::Rule*,
vector<chrono::{anonymous}::Rule> >; _Compare =
__gnu_cxx::__ops::_Iter_comp_iter<ranges::__detail::__make_comp_proj<std::ranges::less,
std::__cxx11::basic_string<char>
std::chrono::{anonymous}::Rule::*>(std::ranges::less&,
std::__cxx11::basic_string<char>
std::chrono::{anonymous}::Rule::*&)::<lambda(auto:45&&, auto:46&&)> >]'
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:5118:36:
  required from 'void std::stable_sort(_RAIter, _RAIter, _Compare) [with
_RAIter = __gnu_cxx::__normal_iterator<chrono::{anonymous}::Rule*,
vector<chrono::{anonymous}::Rule> >; _Compare =
ranges::__detail::__make_comp_proj<std::ranges::less,
std::__cxx11::basic_string<char>
std::chrono::{anonymous}::Rule::*>(std::ranges::less&,
std::__cxx11::basic_string<char>
std::chrono::{anonymous}::Rule::*&)::<lambda(auto:45&&, auto:46&&)>]'
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/ranges_algo.h:1810:18:
  required from '_Iter std::ranges::__stable_sort_fn::operator()(_Iter, _Sent,
_Comp, _Proj) const [with _Iter =
__gnu_cxx::__normal_iterator<std::chrono::{anonymous}::Rule*,
std::vector<std::chrono::{anonymous}::Rule> >; _Sent =
__gnu_cxx::__normal_iterator<std::chrono::{anonymous}::Rule*,
std::vector<std::chrono::{anonymous}::Rule> >; _Comp = std::ranges::less; _Proj
= std::__cxx11::basic_string<char> std::chrono::{anonymous}::Rule::*]'
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/ranges_algo.h:1821:16:
  required from 'std::ranges::borrowed_iterator_t<_Range>
std::ranges::__stable_sort_fn::operator()(_Range&&, _Comp, _Proj) const [with
_Range = std::vector<std::chrono::{anonymous}::Rule>&; _Comp =
std::ranges::less; _Proj = std::__cxx11::basic_string<char>
std::chrono::{anonymous}::Rule::*; std::ranges::borrowed_iterator_t<_Range> =
std::ranges::borrowed_iterator_t<std::vector<std::chrono::{anonymous}::Rule>&>]'
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:1363:24:   required from here
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:2460:37:
error: no matching function for call to
'__rotate_adaptive(__gnu_cxx::__normal_iterator<std::chrono::{anonymous}::Rule*,
std::vector<std::chrono::{anonymous}::Rule> >&,
__gnu_cxx::__normal_iterator<std::chrono::{anonymous}::Rule*,
std::vector<std::chrono::{anonymous}::Rule> >&,
__gnu_cxx::__normal_iterator<std::chrono::{anonymous}::Rule*,
std::vector<std::chrono::{anonymous}::Rule> >&, int, short int&,
std::chrono::{anonymous}::Rule*&, short int&)'
 2460 |             = std::__rotate_adaptive(__first_cut, __middle,
__second_cut,
      |              
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2461 |                                      __len1 - __len11, __len22,
      |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~
 2462 |                                      __buffer, __buffer_size);
      |                                      ~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:2363:5:
note: candidate: 'template<class _BidirectionalIterator1, class
_BidirectionalIterator2, class _Distance> _BidirectionalIterator1
std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1,
_BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2,
_Distance)'
 2363 |     __rotate_adaptive(_BidirectionalIterator1 __first,
      |     ^~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:2363:5:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:2460:37:
note:   deduced conflicting types for parameter '_Distance' ('int' and 'short
int')
 2460 |             = std::__rotate_adaptive(__first_cut, __middle,
__second_cut,
      |              
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2461 |                                      __len1 - __len11, __len22,
      |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~
 2462 |                                      __buffer, __buffer_size);
      |                                      ~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:2466:39:
error: no matching function for call to
'__merge_adaptive_resize(__gnu_cxx::__normal_iterator<std::chrono::{anonymous}::Rule*,
std::vector<std::chrono::{anonymous}::Rule> >&,
__gnu_cxx::__normal_iterator<std::chrono::{anonymous}::Rule*,
std::vector<std::chrono::{anonymous}::Rule> >&,
__gnu_cxx::__normal_iterator<std::chrono::{anonymous}::Rule*,
std::vector<std::chrono::{anonymous}::Rule> >&, int, int,
std::chrono::{anonymous}::Rule*&, short int&,
__gnu_cxx::__ops::_Iter_comp_iter<std::ranges::__detail::__make_comp_proj<std::ranges::less,
std::__cxx11::basic_string<char>
std::chrono::{anonymous}::Rule::*>(std::ranges::less&,
std::__cxx11::basic_string<char>
std::chrono::{anonymous}::Rule::*&)::<lambda(auto:45&&, auto:46&&)> >&)'
 2466 |           std::__merge_adaptive_resize(__new_middle, __second_cut,
__last,
      |          
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2467 |                                        __len1 - __len11, __len2 -
__len22,
      |                                       
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2468 |                                        __buffer, __buffer_size,
__comp);
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:2424:5:
note: candidate: 'template<class _BidirectionalIterator, class _Distance, class
_Pointer, class _Compare> void
std::__merge_adaptive_resize(_BidirectionalIterator, _BidirectionalIterator,
_BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare)'
 2424 |     __merge_adaptive_resize(_BidirectionalIterator __first,
      |     ^~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:2424:5:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algo.h:2466:39:
note:   deduced conflicting types for parameter '_Distance' ('int' and 'short
int')
 2466 |           std::__merge_adaptive_resize(__new_middle, __second_cut,
__last,
      |          
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2467 |                                        __len1 - __len11, __len2 -
__len22,
      |                                       
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2468 |                                        __buffer, __buffer_size,
__comp);
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/chrono_io.h:39,
                 from
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/chrono:3330:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format: In
instantiation of 'void std::__format::_Iter_sink<_CharT,
_OutIter>::_M_overflow() [with _CharT = wchar_t; _OutIter =
std::__format::_Sink_iter<wchar_t>]':
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2473:7:
  required from here
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
error: no matching function for call to 'std::span<wchar_t, 65535>::span()'
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
In file included from
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:44:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:231:9:
note: candidate: 'template<class _OType, short unsigned int _OExtent>  requires
(_Extent == std::dynamic_extent || _OExtent == std::dynamic_extent || _Extent
== _OExtent) && (std::__is_array_convertible<_Type, _Tp>::value) constexpr
std::span<_Type, _Extent>::span(const std::span<_OType, _OExtent>&) [with short
unsigned int _OExtent = _OType; _Type = wchar_t; short unsigned int _Extent =
65535]'
  231 |         span(const span<_OType, _OExtent>& __s) noexcept
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:231:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 1 argument, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:211:9:
note: candidate: 'template<class _Range>  requires !(__is_span<typename
std::remove_cvref<_It2>::type>) && !(__is_std_array<typename
std::remove_cvref<_It2>::type>) && !(is_array_v<typename
std::remove_cvref<_It2>::type>) && (contiguous_range<_Range>) &&
(sized_range<_Range>) && ((borrowed_range<_Range>) ||
(is_const_v<element_type>)) &&
(std::__is_compatible_ref<decltype(*(declval<decltype(std::ranges::__cust_access::__begin((declval<_Range&>)()))&>)())>::value)
constexpr std::span<_Type, _Extent>::span(_Range&&) [with _Type = wchar_t;
short unsigned int _Extent = 65535]'
  211 |         span(_Range&& __range)
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:211:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 1 argument, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:199:9:
note: candidate: 'template<class _Tp, short unsigned int _ArrayExtent> 
requires  std::__is_compatible_array<const _Tp, _ArrayExtent>::value constexpr
std::span<_Type, _Extent>::span(const std::array<_Tp, _ArrayExtent>&) [with
short unsigned int _ArrayExtent = _Tp; _Type = wchar_t; short unsigned int
_Extent = 65535]'
  199 |         span(const array<_Tp, _ArrayExtent>& __arr) noexcept
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:199:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 1 argument, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:192:9:
note: candidate: 'template<class _Tp, short unsigned int _ArrayExtent> 
requires  std::__is_compatible_array<_Tp, _ArrayExtent>::value constexpr
std::span<_Type, _Extent>::span(std::array<_Tp, _ArrayExtent>&) [with short
unsigned int _ArrayExtent = _Tp; _Type = wchar_t; short unsigned int _Extent =
65535]'
  192 |         span(array<_Tp, _ArrayExtent>& __arr) noexcept
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:192:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 1 argument, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:185:9:
note: candidate: 'template<short unsigned int _ArrayExtent>  requires  _Extent
== std::dynamic_extent || _ArrayExtent == _Extent constexpr std::span<_Type,
_Extent>::span(std::type_identity_t<_Type> (&)[_ArrayExtent]) [with short
unsigned int _ArrayExtent = _ArrayExtent; _Type = wchar_t; short unsigned int
_Extent = 65535]'
  185 |         span(type_identity_t<element_type> (&__arr)[_ArrayExtent])
noexcept
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:185:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 1 argument, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:170:9:
note: candidate: 'template<class _It, class _End>  requires
(contiguous_iterator<_It>) && (sized_sentinel_for<_End, _It>) &&
((std::__is_compatible_ref<decltype(*(declval<_Iter&>)())>::value) &&
!(is_convertible_v<_End, std::span<_Type, _Extent>::size_type>)) constexpr
std::span<_Type, _Extent>::span(_It, _End) [with _End = _It; _Type = wchar_t;
short unsigned int _Extent = 65535]'
  170 |         span(_It __first, _End __last)
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:170:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 2 arguments, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:155:9:
note: candidate: 'template<class _It>  requires (contiguous_iterator<_It>) &&
(std::__is_compatible_ref<decltype(*(declval<_Iter&>)())>::value) constexpr
std::span<_Type, _Extent>::span(_It, size_type) [with _Type = wchar_t; short
unsigned int _Extent = 65535]'
  155 |         span(_It __first, size_type __count)
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:155:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 2 arguments, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:223:7:
note: candidate: 'constexpr std::span<_Type, _Extent>::span(const
std::span<_Type, _Extent>&) [with _Type = wchar_t; short unsigned int _Extent =
65535]'
  223 |       span(const span&) noexcept = default;
      |       ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:223:7:
note:   candidate expects 1 argument, 0 provided
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:147:7:
note: candidate: 'constexpr std::span<_Type, _Extent>::span() requires  _Extent
+ 1 <= 1 [with _Type = wchar_t; short unsigned int _Extent = 65535]'
  147 |       span() noexcept
      |       ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:147:7:
note: constraints not satisfied
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format: In
instantiation of 'void std::__format::_Iter_sink<_CharT,
_OutIter>::_M_overflow() [with _CharT = char; _OutIter =
std::__format::_Sink_iter<char>]':
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2473:7:
  required from here
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
error: no matching function for call to 'std::span<char, 65535>::span()'
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:231:9:
note: candidate: 'template<class _OType, short unsigned int _OExtent>  requires
(_Extent == std::dynamic_extent || _OExtent == std::dynamic_extent || _Extent
== _OExtent) && (std::__is_array_convertible<_Type, _Tp>::value) constexpr
std::span<_Type, _Extent>::span(const std::span<_OType, _OExtent>&) [with short
unsigned int _OExtent = _OType; _Type = char; short unsigned int _Extent =
65535]'
  231 |         span(const span<_OType, _OExtent>& __s) noexcept
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:231:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 1 argument, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:211:9:
note: candidate: 'template<class _Range>  requires !(__is_span<typename
std::remove_cvref<_It2>::type>) && !(__is_std_array<typename
std::remove_cvref<_It2>::type>) && !(is_array_v<typename
std::remove_cvref<_It2>::type>) && (contiguous_range<_Range>) &&
(sized_range<_Range>) && ((borrowed_range<_Range>) ||
(is_const_v<element_type>)) &&
(std::__is_compatible_ref<decltype(*(declval<decltype(std::ranges::__cust_access::__begin((declval<_Range&>)()))&>)())>::value)
constexpr std::span<_Type, _Extent>::span(_Range&&) [with _Type = char; short
unsigned int _Extent = 65535]'
  211 |         span(_Range&& __range)
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:211:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 1 argument, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:199:9:
note: candidate: 'template<class _Tp, short unsigned int _ArrayExtent> 
requires  std::__is_compatible_array<const _Tp, _ArrayExtent>::value constexpr
std::span<_Type, _Extent>::span(const std::array<_Tp, _ArrayExtent>&) [with
short unsigned int _ArrayExtent = _Tp; _Type = char; short unsigned int _Extent
= 65535]'
  199 |         span(const array<_Tp, _ArrayExtent>& __arr) noexcept
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:199:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 1 argument, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:192:9:
note: candidate: 'template<class _Tp, short unsigned int _ArrayExtent> 
requires  std::__is_compatible_array<_Tp, _ArrayExtent>::value constexpr
std::span<_Type, _Extent>::span(std::array<_Tp, _ArrayExtent>&) [with short
unsigned int _ArrayExtent = _Tp; _Type = char; short unsigned int _Extent =
65535]'
  192 |         span(array<_Tp, _ArrayExtent>& __arr) noexcept
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:192:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 1 argument, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:185:9:
note: candidate: 'template<short unsigned int _ArrayExtent>  requires  _Extent
== std::dynamic_extent || _ArrayExtent == _Extent constexpr std::span<_Type,
_Extent>::span(std::type_identity_t<_Type> (&)[_ArrayExtent]) [with short
unsigned int _ArrayExtent = _ArrayExtent; _Type = char; short unsigned int
_Extent = 65535]'
  185 |         span(type_identity_t<element_type> (&__arr)[_ArrayExtent])
noexcept
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:185:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 1 argument, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:170:9:
note: candidate: 'template<class _It, class _End>  requires
(contiguous_iterator<_It>) && (sized_sentinel_for<_End, _It>) &&
((std::__is_compatible_ref<decltype(*(declval<_Iter&>)())>::value) &&
!(is_convertible_v<_End, std::span<_Type, _Extent>::size_type>)) constexpr
std::span<_Type, _Extent>::span(_It, _End) [with _End = _It; _Type = char;
short unsigned int _Extent = 65535]'
  170 |         span(_It __first, _End __last)
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:170:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 2 arguments, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:155:9:
note: candidate: 'template<class _It>  requires (contiguous_iterator<_It>) &&
(std::__is_compatible_ref<decltype(*(declval<_Iter&>)())>::value) constexpr
std::span<_Type, _Extent>::span(_It, size_type) [with _Type = char; short
unsigned int _Extent = 65535]'
  155 |         span(_It __first, size_type __count)
      |         ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:155:9:
note:   template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/format:2481:26:
note:   candidate expects 2 arguments, 0 provided
 2481 |             span<_CharT> __first;
      |                          ^~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:223:7:
note: candidate: 'constexpr std::span<_Type, _Extent>::span(const
std::span<_Type, _Extent>&) [with _Type = char; short unsigned int _Extent =
65535]'
  223 |       span(const span&) noexcept = default;
      |       ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:223:7:
note:   candidate expects 1 argument, 0 provided
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:147:7:
note: candidate: 'constexpr std::span<_Type, _Extent>::span() requires  _Extent
+ 1 <= 1 [with _Type = char; short unsigned int _Extent = 65535]'
  147 |       span() noexcept
      |       ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:147:7:
note: constraints not satisfied
make[9]: *** [Makefile:562: tzdb.lo] Error 1
make[9]: Leaving directory
'/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/src/c++20'
make[8]: *** [Makefile:784: all-recursive] Error 1
make[8]: Leaving directory
'/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/src'
make[7]: *** [Makefile:576: all-recursive] Error 1
make[7]: Leaving directory
'/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3'
make[6]: *** [Makefile:501: all] Error 2
make[6]: Leaving directory
'/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3'
make[5]: *** [Makefile:870: multi-do] Error 1
make[5]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3'
make[4]: *** [Makefile:840: all-multi] Error 2
make[4]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3'
make[3]: *** [Makefile:576: all-recursive] Error 1
make[3]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3'
make[2]: *** [Makefile:501: all] Error 2
make[2]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3'
make[1]: *** [Makefile:12305: all-target-libstdc++-v3] Error 2
make[1]: Leaving directory '/d/Works/xcomp/gcc-build'
make: *** [Makefile:1051: all] Error 2

  parent reply	other threads:[~2023-01-07  1:09 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-25  9:58 [Bug libstdc++/108221] New: " jdx at o2 dot pl
2022-12-27  9:55 ` [Bug libstdc++/108221] " marxin at gcc dot gnu.org
2023-01-05  0:55 ` redi at gcc dot gnu.org
2023-01-05 12:23 ` redi at gcc dot gnu.org
2023-01-05 14:02 ` redi at gcc dot gnu.org
2023-01-06 13:25 ` cvs-commit at gcc dot gnu.org
2023-01-06 13:27 ` redi at gcc dot gnu.org
2023-01-07  1:09 ` jdx at o2 dot pl [this message]
2023-01-07  1:13 ` redi at gcc dot gnu.org
2023-01-07  1:17 ` redi at gcc dot gnu.org
2023-01-07  1:23 ` redi at gcc dot gnu.org
2023-01-07  1:25 ` redi at gcc dot gnu.org
2023-01-07  8:29 ` jdx at o2 dot pl
2023-01-07 10:34 ` redi at gcc dot gnu.org
2023-01-08 11:44 ` jdx at o2 dot pl
2023-01-09 12:58 ` redi at gcc dot gnu.org
2023-01-10 10:10 ` cvs-commit at gcc dot gnu.org
2023-01-10 10:10 ` cvs-commit at gcc dot gnu.org
2023-01-10 11:48 ` redi at gcc dot gnu.org
2023-01-12  4:32 ` jdx at o2 dot pl
2023-01-13 17:04 ` jdx at o2 dot pl
2023-01-13 17:40 ` redi at gcc dot gnu.org
2023-01-30 18:00 ` jdx at o2 dot pl
2023-01-30 19:28 ` redi at gcc dot gnu.org
2023-01-31 16:26 ` redi at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-108221-4-BeEQ1fTZfl@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).