public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
@ 2022-12-25 9:58 jdx at o2 dot pl
2022-12-27 9:55 ` [Bug libstdc++/108221] " marxin at gcc dot gnu.org
` (23 more replies)
0 siblings, 24 replies; 25+ messages in thread
From: jdx at o2 dot pl @ 2022-12-25 9:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
Bug ID: 108221
Summary: Building cross compiler for H8 family fails at
libstdc++-v3/src/c++20/tzdb.cc
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: jdx at o2 dot pl
Target Milestone: ---
Host: x86_64-w64-mingw32
Target: h8300-elf
Build: x86_64-w64-mingw32
I get following message when I try to build master (339db340):
Making all in c++20
make[5]: Entering directory
'/d/Works/xcomp/gcc-build/h8300-elf/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/libstdc++-v3/src
-L/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/src/.libs
-L/d/Works/xcomp/gcc-build/h8300-elf/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
-I/d/Works/gcc/libstdc++-v3/../libgcc
-I/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/h8300-elf
-I/d/Works/xcomp/gcc-build/h8300-elf/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 -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/libstdc++-v3/src
-L/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/src/.libs
-L/d/Works/xcomp/gcc-build/h8300-elf/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
-I/d/Works/gcc/libstdc++-v3/../libgcc
-I/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/h8300-elf
-I/d/Works/xcomp/gcc-build/h8300-elf/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 -c
../../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc -o tzdb.o
In file included from
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/chrono_io.h:39,
from
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/chrono:3321,
from d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:28:
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format: In
instantiation of
'std::__format::_Formatting_scanner<std::__format::_Sink_iter<wchar_t>,
wchar_t>::_M_format_arg(std::size_t)::<lambda(auto:42&)> [with auto:42 =
float]':
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3038:44:
required from 'decltype(auto)
std::basic_format_arg<_Context>::_M_visit(_Visitor&&, std::__format::_Arg_t)
[with _Visitor =
std::__format::_Formatting_scanner<std::__format::_Sink_iter<wchar_t>,
wchar_t>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
std::basic_format_context<std::__format::_Sink_iter<wchar_t>, wchar_t>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3082:28:
required from 'decltype(auto) std::visit_format_arg(_Visitor&&,
basic_format_arg<_Context>) [with _Visitor =
__format::_Formatting_scanner<__format::_Sink_iter<wchar_t>,
wchar_t>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
basic_format_context<__format::_Sink_iter<wchar_t>, wchar_t>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3533:23:
required from 'void std::__format::_Formatting_scanner<_Out,
_CharT>::_M_format_arg(std::size_t) [with _Out =
std::__format::_Sink_iter<wchar_t>; _CharT = wchar_t; std::size_t = long
unsigned int]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3528:7:
required from here
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: error:
static assertion failed
3547 | static_assert(__format::__formattable_with<_Type,
_Context>);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: note:
constraints not satisfied
In file included from
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/chrono.h:43,
from
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/chrono:41:
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:152:13:
required for the satisfaction of 'constructible_from<_Tp, _Tp>' [with _Tp =
std::formatter<float, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:166:13:
required for the satisfaction of 'move_constructible<_Tp>' [with _Tp =
std::formatter<float, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:171:13:
required for the satisfaction of 'copy_constructible<_Tp>' [with _Tp =
std::formatter<float, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:267:13:
required for the satisfaction of 'copyable<_Tp>' [with _Tp =
std::formatter<float, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:272:13:
required for the satisfaction of 'semiregular<_Formatter>' [with _Formatter =
std::formatter<float, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:153:30: note:
the expression 'is_constructible_v<_Tp, _Args ...> [with _Tp =
std::formatter<float, wchar_t>; _Args = {std::formatter<float, wchar_t>}]'
evaluated to 'false'
153 | = destructible<_Tp> && is_constructible_v<_Tp, _Args...>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format: In
instantiation of
'std::__format::_Formatting_scanner<std::__format::_Sink_iter<wchar_t>,
wchar_t>::_M_format_arg(std::size_t)::<lambda(auto:42&)> [with auto:42 =
double]':
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3040:44:
required from 'decltype(auto)
std::basic_format_arg<_Context>::_M_visit(_Visitor&&, std::__format::_Arg_t)
[with _Visitor =
std::__format::_Formatting_scanner<std::__format::_Sink_iter<wchar_t>,
wchar_t>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
std::basic_format_context<std::__format::_Sink_iter<wchar_t>, wchar_t>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3082:28:
required from 'decltype(auto) std::visit_format_arg(_Visitor&&,
basic_format_arg<_Context>) [with _Visitor =
__format::_Formatting_scanner<__format::_Sink_iter<wchar_t>,
wchar_t>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
basic_format_context<__format::_Sink_iter<wchar_t>, wchar_t>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3533:23:
required from 'void std::__format::_Formatting_scanner<_Out,
_CharT>::_M_format_arg(std::size_t) [with _Out =
std::__format::_Sink_iter<wchar_t>; _CharT = wchar_t; std::size_t = long
unsigned int]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3528:7:
required from here
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: error:
static assertion failed
3547 | static_assert(__format::__formattable_with<_Type,
_Context>);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: note:
constraints not satisfied
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:152:13:
required for the satisfaction of 'constructible_from<_Tp, _Tp>' [with _Tp =
std::formatter<double, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:166:13:
required for the satisfaction of 'move_constructible<_Tp>' [with _Tp =
std::formatter<double, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:171:13:
required for the satisfaction of 'copy_constructible<_Tp>' [with _Tp =
std::formatter<double, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:267:13:
required for the satisfaction of 'copyable<_Tp>' [with _Tp =
std::formatter<double, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:272:13:
required for the satisfaction of 'semiregular<_Formatter>' [with _Formatter =
std::formatter<double, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:153:30: note:
the expression 'is_constructible_v<_Tp, _Args ...> [with _Tp =
std::formatter<double, wchar_t>; _Args = {std::formatter<double, wchar_t>}]'
evaluated to 'false'
153 | = destructible<_Tp> && is_constructible_v<_Tp, _Args...>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format: In
instantiation of
'std::__format::_Formatting_scanner<std::__format::_Sink_iter<wchar_t>,
wchar_t>::_M_format_arg(std::size_t)::<lambda(auto:42&)> [with auto:42 = long
double]':
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3043:44:
required from 'decltype(auto)
std::basic_format_arg<_Context>::_M_visit(_Visitor&&, std::__format::_Arg_t)
[with _Visitor =
std::__format::_Formatting_scanner<std::__format::_Sink_iter<wchar_t>,
wchar_t>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
std::basic_format_context<std::__format::_Sink_iter<wchar_t>, wchar_t>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3082:28:
required from 'decltype(auto) std::visit_format_arg(_Visitor&&,
basic_format_arg<_Context>) [with _Visitor =
__format::_Formatting_scanner<__format::_Sink_iter<wchar_t>,
wchar_t>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
basic_format_context<__format::_Sink_iter<wchar_t>, wchar_t>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3533:23:
required from 'void std::__format::_Formatting_scanner<_Out,
_CharT>::_M_format_arg(std::size_t) [with _Out =
std::__format::_Sink_iter<wchar_t>; _CharT = wchar_t; std::size_t = long
unsigned int]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3528:7:
required from here
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: error:
static assertion failed
3547 | static_assert(__format::__formattable_with<_Type,
_Context>);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: note:
constraints not satisfied
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:152:13:
required for the satisfaction of 'constructible_from<_Tp, _Tp>' [with _Tp =
std::formatter<long double, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:166:13:
required for the satisfaction of 'move_constructible<_Tp>' [with _Tp =
std::formatter<long double, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:171:13:
required for the satisfaction of 'copy_constructible<_Tp>' [with _Tp =
std::formatter<long double, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:267:13:
required for the satisfaction of 'copyable<_Tp>' [with _Tp =
std::formatter<long double, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:272:13:
required for the satisfaction of 'semiregular<_Formatter>' [with _Formatter =
std::formatter<long double, wchar_t>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:153:30: note:
the expression 'is_constructible_v<_Tp, _Args ...> [with _Tp =
std::formatter<long double, wchar_t>; _Args = {std::formatter<long double,
wchar_t>}]' evaluated to 'false'
153 | = destructible<_Tp> && is_constructible_v<_Tp, _Args...>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format: In
instantiation of
'std::__format::_Formatting_scanner<std::__format::_Sink_iter<char>,
char>::_M_format_arg(std::size_t)::<lambda(auto:42&)> [with auto:42 = float]':
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3038:44:
required from 'decltype(auto)
std::basic_format_arg<_Context>::_M_visit(_Visitor&&, std::__format::_Arg_t)
[with _Visitor =
std::__format::_Formatting_scanner<std::__format::_Sink_iter<char>,
char>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
std::basic_format_context<std::__format::_Sink_iter<char>, char>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3082:28:
required from 'decltype(auto) std::visit_format_arg(_Visitor&&,
basic_format_arg<_Context>) [with _Visitor =
__format::_Formatting_scanner<__format::_Sink_iter<char>,
char>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
basic_format_context<__format::_Sink_iter<char>, char>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3533:23:
required from 'void std::__format::_Formatting_scanner<_Out,
_CharT>::_M_format_arg(std::size_t) [with _Out =
std::__format::_Sink_iter<char>; _CharT = char; std::size_t = long unsigned
int]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3528:7:
required from here
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: error:
static assertion failed
3547 | static_assert(__format::__formattable_with<_Type,
_Context>);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: note:
constraints not satisfied
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:152:13:
required for the satisfaction of 'constructible_from<_Tp, _Tp>' [with _Tp =
std::formatter<float, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:166:13:
required for the satisfaction of 'move_constructible<_Tp>' [with _Tp =
std::formatter<float, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:171:13:
required for the satisfaction of 'copy_constructible<_Tp>' [with _Tp =
std::formatter<float, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:267:13:
required for the satisfaction of 'copyable<_Tp>' [with _Tp =
std::formatter<float, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:272:13:
required for the satisfaction of 'semiregular<_Formatter>' [with _Formatter =
std::formatter<float, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:153:30: note:
the expression 'is_constructible_v<_Tp, _Args ...> [with _Tp =
std::formatter<float, char>; _Args = {std::formatter<float, char>}]' evaluated
to 'false'
153 | = destructible<_Tp> && is_constructible_v<_Tp, _Args...>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format: In
instantiation of
'std::__format::_Formatting_scanner<std::__format::_Sink_iter<char>,
char>::_M_format_arg(std::size_t)::<lambda(auto:42&)> [with auto:42 = double]':
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3040:44:
required from 'decltype(auto)
std::basic_format_arg<_Context>::_M_visit(_Visitor&&, std::__format::_Arg_t)
[with _Visitor =
std::__format::_Formatting_scanner<std::__format::_Sink_iter<char>,
char>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
std::basic_format_context<std::__format::_Sink_iter<char>, char>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3082:28:
required from 'decltype(auto) std::visit_format_arg(_Visitor&&,
basic_format_arg<_Context>) [with _Visitor =
__format::_Formatting_scanner<__format::_Sink_iter<char>,
char>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
basic_format_context<__format::_Sink_iter<char>, char>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3533:23:
required from 'void std::__format::_Formatting_scanner<_Out,
_CharT>::_M_format_arg(std::size_t) [with _Out =
std::__format::_Sink_iter<char>; _CharT = char; std::size_t = long unsigned
int]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3528:7:
required from here
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: error:
static assertion failed
3547 | static_assert(__format::__formattable_with<_Type,
_Context>);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: note:
constraints not satisfied
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:152:13:
required for the satisfaction of 'constructible_from<_Tp, _Tp>' [with _Tp =
std::formatter<double, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:166:13:
required for the satisfaction of 'move_constructible<_Tp>' [with _Tp =
std::formatter<double, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:171:13:
required for the satisfaction of 'copy_constructible<_Tp>' [with _Tp =
std::formatter<double, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:267:13:
required for the satisfaction of 'copyable<_Tp>' [with _Tp =
std::formatter<double, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:272:13:
required for the satisfaction of 'semiregular<_Formatter>' [with _Formatter =
std::formatter<double, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:153:30: note:
the expression 'is_constructible_v<_Tp, _Args ...> [with _Tp =
std::formatter<double, char>; _Args = {std::formatter<double, char>}]'
evaluated to 'false'
153 | = destructible<_Tp> && is_constructible_v<_Tp, _Args...>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format: In
instantiation of
'std::__format::_Formatting_scanner<std::__format::_Sink_iter<char>,
char>::_M_format_arg(std::size_t)::<lambda(auto:42&)> [with auto:42 = long
double]':
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3043:44:
required from 'decltype(auto)
std::basic_format_arg<_Context>::_M_visit(_Visitor&&, std::__format::_Arg_t)
[with _Visitor =
std::__format::_Formatting_scanner<std::__format::_Sink_iter<char>,
char>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
std::basic_format_context<std::__format::_Sink_iter<char>, char>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3082:28:
required from 'decltype(auto) std::visit_format_arg(_Visitor&&,
basic_format_arg<_Context>) [with _Visitor =
__format::_Formatting_scanner<__format::_Sink_iter<char>,
char>::_M_format_arg(std::size_t)::<lambda(auto:42&)>; _Context =
basic_format_context<__format::_Sink_iter<char>, char>]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3533:23:
required from 'void std::__format::_Formatting_scanner<_Out,
_CharT>::_M_format_arg(std::size_t) [with _Out =
std::__format::_Sink_iter<char>; _CharT = char; std::size_t = long unsigned
int]'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3528:7:
required from here
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: error:
static assertion failed
3547 | static_assert(__format::__formattable_with<_Type,
_Context>);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/format:3547:37: note:
constraints not satisfied
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:152:13:
required for the satisfaction of 'constructible_from<_Tp, _Tp>' [with _Tp =
std::formatter<long double, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:166:13:
required for the satisfaction of 'move_constructible<_Tp>' [with _Tp =
std::formatter<long double, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:171:13:
required for the satisfaction of 'copy_constructible<_Tp>' [with _Tp =
std::formatter<long double, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:267:13:
required for the satisfaction of 'copyable<_Tp>' [with _Tp =
std::formatter<long double, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:272:13:
required for the satisfaction of 'semiregular<_Formatter>' [with _Formatter =
std::formatter<long double, char>]
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/concepts:153:30: note:
the expression 'is_constructible_v<_Tp, _Args ...> [with _Tp =
std::formatter<long double, char>; _Args = {std::formatter<long double,
char>}]' evaluated to 'false'
153 | = destructible<_Tp> && is_constructible_v<_Tp, _Args...>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:562: tzdb.lo] Error 1
make[5]: Leaving directory
'/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/src/c++20'
make[4]: *** [Makefile:784: all-recursive] Error 1
make[4]: Leaving directory
'/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/src'
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
@ 2022-12-27 9:55 ` marxin at gcc dot gnu.org
2023-01-05 0:55 ` redi at gcc dot gnu.org
` (22 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-12-27 9:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2022-12-27
CC| |marxin at gcc dot gnu.org,
| |redi at gcc dot gnu.org
Status|UNCONFIRMED |NEW
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
I see the same on rx-linux target when built on x86_64-linux-gnu.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc 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
` (21 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-05 0:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc 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
` (20 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-05 12:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is a pre-existing problem that std::to_chars for floating-point types
doesn't work on these targets. Until I started to use std::format in
std/c++20/tzdb.cc the library wasn't using that, so the missing feature only
caused testsuite failures.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (2 preceding siblings ...)
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
` (19 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-05 14:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I have a workaround for this, but bootstrap still fails for me at:
/tmp/ccC7KXoL.s: Assembler messages:
/tmp/ccC7KXoL.s:82719: Error: value of 0001254e too large for field of 2 bytes
at 00000002
make[6]: *** [Makefile:970: cp-demangle.lo] Error 1
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (3 preceding siblings ...)
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
` (18 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-01-06 13:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:8c330fd49464f3d47a7c171d767eb3a011add76b
commit r13-5047-g8c330fd49464f3d47a7c171d767eb3a011add76b
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Jan 5 14:04:32 2023 +0000
libstdc++: Disable broken std::format for floating-point types [PR108221]
If we don't have std::to_chars for floating-point types (either because
float and double are not IEEE format, or size_t is 16-bit) then we can't
use them with std::format. This causes a bootstrap failure since
std/c++20/tzdb.cc was added to the library, because <chrono> now
includes <format>.
This change just disables formatting support for those types. This is
not a proper fix, but solves the bootstrap failure for now.
libstdc++-v3/ChangeLog:
PR libstdc++/108221
* include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
Disable visiting floating-point types.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (4 preceding siblings ...)
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
` (17 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-06 13:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed, but the build still fails as mentioned above.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (5 preceding siblings ...)
2023-01-06 13:27 ` redi at gcc dot gnu.org
@ 2023-01-07 1:09 ` jdx at o2 dot pl
2023-01-07 1:13 ` redi at gcc dot gnu.org
` (16 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: jdx at o2 dot pl @ 2023-01-07 1:09 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (6 preceding siblings ...)
2023-01-07 1:09 ` jdx at o2 dot pl
@ 2023-01-07 1:13 ` redi at gcc dot gnu.org
2023-01-07 1:17 ` redi at gcc dot gnu.org
` (15 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-07 1:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #5)
> Fixed, but the build still fails as mentioned above.
See comment 3
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (7 preceding siblings ...)
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
` (14 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-07 1:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jan Dubiec from comment #6)
> Please note -mn -mint32 options –
> normal mode (aka 16-bit mode) with 32-bit integers.
Has this bizarre mode ever been able to build libstdc++?
I have too many other things to deal with to care about this odd target, sorry.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (8 preceding siblings ...)
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
` (13 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-07 1:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The reason it fails is here:
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
The requires expression fails if size_t promotes to int, which is true for
bizarre mode.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (9 preceding siblings ...)
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
` (12 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-07 1:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The fix would be changing the constraint to:
_Extent == dynamic_extent || _Extent == 0
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (10 preceding siblings ...)
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
` (11 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: jdx at o2 dot pl @ 2023-01-07 8:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #11 from Jan Dubiec <jdx at o2 dot pl> ---
(In reply to Jonathan Wakely from comment #8)
> (In reply to Jan Dubiec from comment #6)
> > Please note -mn -mint32 options –
> > normal mode (aka 16-bit mode) with 32-bit integers.
>
> Has this bizarre mode ever been able to build libstdc++?
Yes, it was possible to build libstdc++ in this mode before introduction of all
that C++20 time zone stuff in 9fc61d45. E.g. I am able to build 907c84cb which
is parent of 9fc61d45.
That being said, the normal mode is indeed "bizzare" and I can't imagine myself
why one would want to use it these days, when the original 16-bit H8/300 died a
long time ago and its descendants are just dying. Perhaps support for normal
mode should be removed just like support for H8/300 was in mid-2020 (as far as
I remember).
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (11 preceding siblings ...)
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
` (10 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-07 10:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The std::span default constructor that's causing problems has been there for a
few years, but nobody pointed out it didn't work for this mode. For a target to
remain usable we need test results and regular fixes. Otherwise things stay
broken for years and then we have to fix dozens of things all at once. This
target has bitrotted quite badly.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (12 preceding siblings ...)
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
` (9 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: jdx at o2 dot pl @ 2023-01-08 11:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #13 from Jan Dubiec <jdx at o2 dot pl> ---
FYI, Jonathan. This time the target is msp430-elf.
Making all in c++20
make[9]: Entering directory
'/d/Works/xcomp/gcc-build/msp430-elf/large/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/msp430-elf/large/libstdc++-v3/src
-L/d/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/src/.libs
-L/d/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/libsupc++/.libs
-B/usr/local/msp430-elf/bin/ -B/usr/local/msp430-elf/lib/ -isystem
/usr/local/msp430-elf/include -isystem /usr/local/msp430-elf/sys-include
-mlarge -I/d/Works/gcc/libstdc++-v3/../libgcc
-I/d/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/msp430-elf
-I/d/Works/xcomp/gcc-build/msp430-elf/large/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/msp430-elf/include -mlarge -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/msp430-elf/large/libstdc++-v3/src
-L/d/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/src/.libs
-L/d/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/libsupc++/.libs
-B/usr/local/msp430-elf/bin/ -B/usr/local/msp430-elf/lib/ -isystem
/usr/local/msp430-elf/include -isystem /usr/local/msp430-elf/sys-include
-mlarge -I/d/Works/gcc/libstdc++-v3/../libgcc
-I/d/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/msp430-elf
-I/d/Works/xcomp/gcc-build/msp430-elf/large/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/msp430-elf/include -mlarge -c
../../../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc -o tzdb.o
In file included from
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/chrono:48,
from d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:28:
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:
In instantiation of 'constexpr void std::__sort(_RandomAccessIterator,
_RandomAccessIterator, _Compare) [with _RandomAccessIterator =
__gnu_cxx::__normal_iterator<chrono::time_zone*, vector<chrono::time_zone> >;
_Compare =
__gnu_cxx::__ops::_Iter_comp_iter<ranges::__detail::__make_comp_proj<std::ranges::less,
std::identity>(std::ranges::less&, std::identity&)::<lambda(auto:45&&,
auto:46&&)> >]':
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:4893:18:
required from 'constexpr void std::sort(_RAIter, _RAIter, _Compare) [with
_RAIter = __gnu_cxx::__normal_iterator<chrono::time_zone*,
vector<chrono::time_zone> >; _Compare =
ranges::__detail::__make_comp_proj<std::ranges::less,
std::identity>(std::ranges::less&, std::identity&)::<lambda(auto:45&&,
auto:46&&)>]'
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/ranges_algo.h:1782:22:
required from 'constexpr _Iter std::ranges::__sort_fn::operator()(_Iter,
_Sent, _Comp, _Proj) const [with _Iter =
__gnu_cxx::__normal_iterator<std::chrono::time_zone*,
std::vector<std::chrono::time_zone> >; _Sent =
__gnu_cxx::__normal_iterator<std::chrono::time_zone*,
std::vector<std::chrono::time_zone> >; _Comp = std::ranges::less; _Proj =
std::identity]'
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/ranges_algo.h:1793:16:
required from 'constexpr std::ranges::borrowed_iterator_t<_Range>
std::ranges::__sort_fn::operator()(_Range&&, _Comp, _Proj) const [with _Range =
std::vector<std::chrono::time_zone>&; _Comp = std::ranges::less; _Proj =
std::identity; std::ranges::borrowed_iterator_t<_Range> =
std::ranges::borrowed_iterator_t<std::vector<std::chrono::time_zone>&>]'
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:1257:14: required from here
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:1948:42:
error: call of overloaded
'__lg(__gnu_cxx::__normal_iterator<std::chrono::time_zone*,
std::vector<std::chrono::time_zone> >::difference_type)' is ambiguous
1948 | std::__lg(__last - __first) * 2,
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/string:51,
from
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/locale_classes.h:40,
from
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/ios_base.h:41,
from
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/ios:44,
from
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/istream:40,
from
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/sstream:40,
from
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/chrono:45:
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1509:3:
note: candidate: 'constexpr int std::__lg(int)'
1509 | __lg(int __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1513:3:
note: candidate: 'constexpr unsigned int std::__lg(unsigned int)'
1513 | __lg(unsigned __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1517:3:
note: candidate: 'constexpr long int std::__lg(long int)'
1517 | __lg(long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1521:3:
note: candidate: 'constexpr long unsigned int std::__lg(long unsigned int)'
1521 | __lg(unsigned long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1525:3:
note: candidate: 'constexpr long long int std::__lg(long long int)'
1525 | __lg(long long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1529:3:
note: candidate: 'constexpr long long unsigned int std::__lg(long long unsigned
int)'
1529 | __lg(unsigned long long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:
In instantiation of 'constexpr void std::__sort(_RandomAccessIterator,
_RandomAccessIterator, _Compare) [with _RandomAccessIterator =
__gnu_cxx::__normal_iterator<chrono::time_zone_link*,
vector<chrono::time_zone_link> >; _Compare =
__gnu_cxx::__ops::_Iter_comp_iter<ranges::__detail::__make_comp_proj<std::ranges::less,
std::identity>(std::ranges::less&, std::identity&)::<lambda(auto:45&&,
auto:46&&)> >]':
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:4893:18:
required from 'constexpr void std::sort(_RAIter, _RAIter, _Compare) [with
_RAIter = __gnu_cxx::__normal_iterator<chrono::time_zone_link*,
vector<chrono::time_zone_link> >; _Compare =
ranges::__detail::__make_comp_proj<std::ranges::less,
std::identity>(std::ranges::less&, std::identity&)::<lambda(auto:45&&,
auto:46&&)>]'
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/ranges_algo.h:1782:22:
required from 'constexpr _Iter std::ranges::__sort_fn::operator()(_Iter,
_Sent, _Comp, _Proj) const [with _Iter =
__gnu_cxx::__normal_iterator<std::chrono::time_zone_link*,
std::vector<std::chrono::time_zone_link> >; _Sent =
__gnu_cxx::__normal_iterator<std::chrono::time_zone_link*,
std::vector<std::chrono::time_zone_link> >; _Comp = std::ranges::less; _Proj =
std::identity]'
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/ranges_algo.h:1793:16:
required from 'constexpr std::ranges::borrowed_iterator_t<_Range>
std::ranges::__sort_fn::operator()(_Range&&, _Comp, _Proj) const [with _Range =
std::vector<std::chrono::time_zone_link>&; _Comp = std::ranges::less; _Proj =
std::identity; std::ranges::borrowed_iterator_t<_Range> =
std::ranges::borrowed_iterator_t<std::vector<std::chrono::time_zone_link>&>]'
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:1258:14: required from here
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:1948:42:
error: call of overloaded
'__lg(__gnu_cxx::__normal_iterator<std::chrono::time_zone_link*,
std::vector<std::chrono::time_zone_link> >::difference_type)' is ambiguous
1948 | std::__lg(__last - __first) * 2,
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1509:3:
note: candidate: 'constexpr int std::__lg(int)'
1509 | __lg(int __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1513:3:
note: candidate: 'constexpr unsigned int std::__lg(unsigned int)'
1513 | __lg(unsigned __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1517:3:
note: candidate: 'constexpr long int std::__lg(long int)'
1517 | __lg(long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1521:3:
note: candidate: 'constexpr long unsigned int std::__lg(long unsigned int)'
1521 | __lg(unsigned long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1525:3:
note: candidate: 'constexpr long long int std::__lg(long long int)'
1525 | __lg(long long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1529:3:
note: candidate: 'constexpr long long unsigned int std::__lg(long long unsigned
int)'
1529 | __lg(unsigned long long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:
In instantiation of 'constexpr void std::__sort(_RandomAccessIterator,
_RandomAccessIterator, _Compare) [with _RandomAccessIterator =
__gnu_cxx::__normal_iterator<chrono::time_zone*, vector<chrono::time_zone> >;
_Compare =
__gnu_cxx::__ops::_Iter_comp_iter<ranges::__detail::__make_comp_proj<std::ranges::less,
std::basic_string_view<char> (std::chrono::time_zone::*)() const
noexcept>(std::ranges::less&, std::basic_string_view<char>
(std::chrono::time_zone::*&)() const noexcept)::<lambda(auto:45&&, auto:46&&)>
>]':
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:4893:18:
required from 'constexpr void std::sort(_RAIter, _RAIter, _Compare) [with
_RAIter = __gnu_cxx::__normal_iterator<chrono::time_zone*,
vector<chrono::time_zone> >; _Compare =
ranges::__detail::__make_comp_proj<std::ranges::less,
std::basic_string_view<char> (std::chrono::time_zone::*)() const
noexcept>(std::ranges::less&, std::basic_string_view<char>
(std::chrono::time_zone::*&)() const noexcept)::<lambda(auto:45&&,
auto:46&&)>]'
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/ranges_algo.h:1782:22:
required from 'constexpr _Iter std::ranges::__sort_fn::operator()(_Iter,
_Sent, _Comp, _Proj) const [with _Iter =
__gnu_cxx::__normal_iterator<std::chrono::time_zone*,
std::vector<std::chrono::time_zone> >; _Sent =
__gnu_cxx::__normal_iterator<std::chrono::time_zone*,
std::vector<std::chrono::time_zone> >; _Comp = std::ranges::less; _Proj =
std::basic_string_view<char> (std::chrono::time_zone::*)() const noexcept]'
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/ranges_algo.h:1793:16:
required from 'constexpr std::ranges::borrowed_iterator_t<_Range>
std::ranges::__sort_fn::operator()(_Range&&, _Comp, _Proj) const [with _Range =
std::vector<std::chrono::time_zone>&; _Comp = std::ranges::less; _Proj =
std::basic_string_view<char> (std::chrono::time_zone::*)() const noexcept;
std::ranges::borrowed_iterator_t<_Range> =
std::ranges::borrowed_iterator_t<std::vector<std::chrono::time_zone>&>]'
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:1395:17: required from here
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:1948:42:
error: call of overloaded
'__lg(__gnu_cxx::__normal_iterator<std::chrono::time_zone*,
std::vector<std::chrono::time_zone> >::difference_type)' is ambiguous
1948 | std::__lg(__last - __first) * 2,
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1509:3:
note: candidate: 'constexpr int std::__lg(int)'
1509 | __lg(int __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1513:3:
note: candidate: 'constexpr unsigned int std::__lg(unsigned int)'
1513 | __lg(unsigned __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1517:3:
note: candidate: 'constexpr long int std::__lg(long int)'
1517 | __lg(long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1521:3:
note: candidate: 'constexpr long unsigned int std::__lg(long unsigned int)'
1521 | __lg(unsigned long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1525:3:
note: candidate: 'constexpr long long int std::__lg(long long int)'
1525 | __lg(long long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1529:3:
note: candidate: 'constexpr long long unsigned int std::__lg(long long unsigned
int)'
1529 | __lg(unsigned long long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:
In instantiation of 'constexpr void std::__sort(_RandomAccessIterator,
_RandomAccessIterator, _Compare) [with _RandomAccessIterator =
__gnu_cxx::__normal_iterator<chrono::time_zone_link*,
vector<chrono::time_zone_link> >; _Compare =
__gnu_cxx::__ops::_Iter_comp_iter<ranges::__detail::__make_comp_proj<std::ranges::less,
std::basic_string_view<char> (std::chrono::time_zone_link::*)() const
noexcept>(std::ranges::less&, std::basic_string_view<char>
(std::chrono::time_zone_link::*&)() const noexcept)::<lambda(auto:45&&,
auto:46&&)> >]':
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:4893:18:
required from 'constexpr void std::sort(_RAIter, _RAIter, _Compare) [with
_RAIter = __gnu_cxx::__normal_iterator<chrono::time_zone_link*,
vector<chrono::time_zone_link> >; _Compare =
ranges::__detail::__make_comp_proj<std::ranges::less,
std::basic_string_view<char> (std::chrono::time_zone_link::*)() const
noexcept>(std::ranges::less&, std::basic_string_view<char>
(std::chrono::time_zone_link::*&)() const noexcept)::<lambda(auto:45&&,
auto:46&&)>]'
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/ranges_algo.h:1782:22:
required from 'constexpr _Iter std::ranges::__sort_fn::operator()(_Iter,
_Sent, _Comp, _Proj) const [with _Iter =
__gnu_cxx::__normal_iterator<std::chrono::time_zone_link*,
std::vector<std::chrono::time_zone_link> >; _Sent =
__gnu_cxx::__normal_iterator<std::chrono::time_zone_link*,
std::vector<std::chrono::time_zone_link> >; _Comp = std::ranges::less; _Proj =
std::basic_string_view<char> (std::chrono::time_zone_link::*)() const
noexcept]'
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/ranges_algo.h:1793:16:
required from 'constexpr std::ranges::borrowed_iterator_t<_Range>
std::ranges::__sort_fn::operator()(_Range&&, _Comp, _Proj) const [with _Range =
std::vector<std::chrono::time_zone_link>&; _Comp = std::ranges::less; _Proj =
std::basic_string_view<char> (std::chrono::time_zone_link::*)() const noexcept;
std::ranges::borrowed_iterator_t<_Range> =
std::ranges::borrowed_iterator_t<std::vector<std::chrono::time_zone_link>&>]'
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:1396:17: required from here
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algo.h:1948:42:
error: call of overloaded
'__lg(__gnu_cxx::__normal_iterator<std::chrono::time_zone_link*,
std::vector<std::chrono::time_zone_link> >::difference_type)' is ambiguous
1948 | std::__lg(__last - __first) * 2,
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1509:3:
note: candidate: 'constexpr int std::__lg(int)'
1509 | __lg(int __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1513:3:
note: candidate: 'constexpr unsigned int std::__lg(unsigned int)'
1513 | __lg(unsigned __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1517:3:
note: candidate: 'constexpr long int std::__lg(long int)'
1517 | __lg(long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1521:3:
note: candidate: 'constexpr long unsigned int std::__lg(long unsigned int)'
1521 | __lg(unsigned long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1525:3:
note: candidate: 'constexpr long long int std::__lg(long long int)'
1525 | __lg(long long __n)
| ^~~~
D:/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/include/bits/stl_algobase.h:1529:3:
note: candidate: 'constexpr long long unsigned int std::__lg(long long unsigned
int)'
1529 | __lg(unsigned long long __n)
| ^~~~
make[9]: *** [Makefile:562: tzdb.lo] Error 1
make[9]: Leaving directory
'/d/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/src/c++20'
make[8]: *** [Makefile:784: all-recursive] Error 1
make[8]: Leaving directory
'/d/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3/src'
make[7]: *** [Makefile:576: all-recursive] Error 1
make[7]: Leaving directory
'/d/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3'
make[6]: *** [Makefile:501: all] Error 2
make[6]: Leaving directory
'/d/Works/xcomp/gcc-build/msp430-elf/large/libstdc++-v3'
make[5]: *** [Makefile:870: multi-do] Error 1
make[5]: Leaving directory '/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3'
make[4]: *** [Makefile:840: all-multi] Error 2
make[4]: Leaving directory '/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3'
make[3]: *** [Makefile:576: all-recursive] Error 1
make[3]: Leaving directory '/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3'
make[2]: *** [Makefile:501: all] Error 2
make[2]: Leaving directory '/d/Works/xcomp/gcc-build/msp430-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
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (13 preceding siblings ...)
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
` (8 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-09 12:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #3)
> /tmp/ccC7KXoL.s: Assembler messages:
> /tmp/ccC7KXoL.s:82719: Error: value of 0001254e too large for field of 2
> bytes at 00000002
I still see these errors with binutils HEAD. I get it nearly 16000 times for
tzdb.o
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (14 preceding siblings ...)
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
` (7 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-01-10 10:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:b39f4333d18cc58b1a655c537a78fefe95b82609
commit r13-5079-gb39f4333d18cc58b1a655c537a78fefe95b82609
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Jan 9 10:45:31 2023 +0000
libstdc++: Fix std::span constraint for sizeof(size_t) < sizeof(int)
[PR108221]
The default constructor has a constraint that is always false if
arithmetic on size_t values promotes to int. Rewrite the constraint
exactly as written in the standard, which works correctly.
libstdc++-v3/ChangeLog:
PR libstdc++/108221
* include/std/span (span::span()): Un-simplify constraint to
work for size_t of lesser rank than int.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (15 preceding siblings ...)
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
` (6 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-01-10 10:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #16 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:769fae76dfd71045fe062e7b1edef0f59e50371d
commit r13-5080-g769fae76dfd71045fe062e7b1edef0f59e50371d
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Jan 9 10:45:31 2023 +0000
libstdc++: Fix some algos for 16-bit size_t [PR108221]
Some standard algorithms fail to compile when size_t or ptrdiff_t is
narrower than int. The __lg helper function is ambiguous if ptrdiff_t is
short or __int20, so replace it with a function template that works for
those types as well as signed/unsigned int/long/long long. The helpers
for stable_sort perform arithmetic on size values and assume the types
won't change, which isn't true if the type promotes to int.
libstdc++-v3/ChangeLog:
PR libstdc++/108221
* include/bits/stl_algobase.h (__lg): Replace six overloads with
a single function template for all integer types.
* include/bits/stl_algo.h (__merge_adaptive_resize): Cast
arithmetic results back to _Distance.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (16 preceding siblings ...)
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
` (5 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-10 11:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Please try current master, I think the errors for h8300-elf and msp430-elf
should be fixed (but I still get the assembler errors for h8300-elf using
latest binutils).
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (17 preceding siblings ...)
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
` (4 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: jdx at o2 dot pl @ 2023-01-12 4:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #18 from Jan Dubiec <jdx at o2 dot pl> ---
Thanks Jonathan. I confirm – I have successfully built master (554bb9b6) for
both targets. Although I'm still using binutils 2.39, I haven't tried its
current master yet.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (18 preceding siblings ...)
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
` (3 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: jdx at o2 dot pl @ 2023-01-13 17:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #19 from Jan Dubiec <jdx at o2 dot pl> ---
(In reply to Jonathan Wakely from comment #17)
> (but I still get the assembler errors for h8300-elf using
> latest binutils).
This is strange. I have just successfully built binutils edf64cd2 and then gcc
426a9f55.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (19 preceding siblings ...)
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
` (2 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-13 17:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #20 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Strange, maybe something different about my newlib build. Anyway, what matters
is that you can build it. I only need to be able to verify my changes compile!
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (20 preceding siblings ...)
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
23 siblings, 0 replies; 25+ messages in thread
From: jdx at o2 dot pl @ 2023-01-30 18:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #21 from Jan Dubiec <jdx at o2 dot pl> ---
Unfortunately, after recent changes compilation for H8 family ends with:
Making all in c++20
make[5]: Entering directory
'/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/src/c++20'
echo 'static const char tzdata_chars[] = R"__libstdcxx__(' > tzdata.zi.h.tmp
cat ../../../../../../gcc/libstdc++-v3/src/c++20/tzdata.zi >> tzdata.zi.h.tmp
echo ')__libstdcxx__";' >> tzdata.zi.h.tmp
mv tzdata.zi.h.tmp tzdata.zi.h
/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/libstdc++-v3/src
-L/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/src/.libs
-L/d/Works/xcomp/gcc-build/h8300-elf/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
-I/d/Works/gcc/libstdc++-v3/../libgcc
-I/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/h8300-elf
-I/d/Works/xcomp/gcc-build/h8300-elf/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 -I. -c
../../../../../../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/libstdc++-v3/src
-L/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/src/.libs
-L/d/Works/xcomp/gcc-build/h8300-elf/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
-I/d/Works/gcc/libstdc++-v3/../libgcc
-I/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/h8300-elf
-I/d/Works/xcomp/gcc-build/h8300-elf/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 -I. -c
../../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc -o tzdb.o
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc: In constructor
'std::chrono::{anonymous}::tzdata_stream::ispanbuf::ispanbuf()':
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:1095:41: error: no matching
function for call to 'size(const char [107244])'
1095 | this->setg(p, p, p + std::size(tzdata_chars) - 1);
| ~~~~~~~~~^~~~~~~~~~~~~~
In file included from
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/string:53,
from
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/locale_classes.h:40,
from
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/ios_base.h:41,
from
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/ios:44,
from
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/istream:40,
from
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/sstream:40,
from
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/chrono:45,
from d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:31:
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/range_access.h:264:5:
note: candidate: 'template<class _Container> constexpr decltype (__cont.size())
std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/range_access.h:264:5:
note: template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/range_access.h: In
substitution of 'template<class _Container> constexpr decltype (__cont.size())
std::size(const _Container&) [with _Container = char [107244]]':
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:1095:34: required from here
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/range_access.h:265:24:
error: request for member 'size' in '__cont', which is of non-class type 'const
char [107244]'
265 | -> decltype(__cont.size())
| ~~~~~~~^~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/range_access.h:274:5:
note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr
std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/range_access.h:274:5:
note: template argument deduction/substitution failed:
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/range_access.h: In
substitution of 'template<class _Tp, long unsigned int _Nm> constexpr
std::size_t std::size(const _Tp (&)[_Nm]) [with _Tp = char; long unsigned int
_Nm = 4294943468]':
d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:1095:34: required from here
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/range_access.h:274:5:
error: size of array exceeds maximum object size '2147483647'
D:/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/include/bits/range_access.h:274:10:
error: size of array exceeds maximum object size '2147483647'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:752: tzdb.lo] Error 1
make[5]: Leaving directory
'/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/src/c++20'
make[4]: *** [Makefile:784: all-recursive] Error 1
make[4]: Leaving directory
'/d/Works/xcomp/gcc-build/h8300-elf/libstdc++-v3/src'
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
Compilation for MSP430 ends with:
Making all in c++20
make[5]: Entering directory
'/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3/src/c++20'
echo 'static const char tzdata_chars[] = R"__libstdcxx__(' > tzdata.zi.h.tmp
cat ../../../../../../gcc/libstdc++-v3/src/c++20/tzdata.zi >> tzdata.zi.h.tmp
echo ')__libstdcxx__";' >> tzdata.zi.h.tmp
mv tzdata.zi.h.tmp tzdata.zi.h
/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/msp430-elf/libstdc++-v3/src
-L/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3/src/.libs
-L/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3/libsupc++/.libs
-B/usr/local/msp430-elf/bin/ -B/usr/local/msp430-elf/lib/ -isystem
/usr/local/msp430-elf/include -isystem /usr/local/msp430-elf/sys-include
-I/d/Works/gcc/libstdc++-v3/../libgcc
-I/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3/include/msp430-elf
-I/d/Works/xcomp/gcc-build/msp430-elf/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/msp430-elf/include -I. -c
../../../../../../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/msp430-elf/libstdc++-v3/src
-L/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3/src/.libs
-L/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3/libsupc++/.libs
-B/usr/local/msp430-elf/bin/ -B/usr/local/msp430-elf/lib/ -isystem
/usr/local/msp430-elf/include -isystem /usr/local/msp430-elf/sys-include
-I/d/Works/gcc/libstdc++-v3/../libgcc
-I/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3/include/msp430-elf
-I/d/Works/xcomp/gcc-build/msp430-elf/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/msp430-elf/include -I. -c
../../../../../../gcc/libstdc++-v3/src/c++20/tzdb.cc -o tzdb.o
In file included from d:\works\gcc\libstdc++-v3\src\c++20\tzdb.cc:1082:
./tzdata.zi.h:1:36: error: size of string literal is too large
1 | static const char tzdata_chars[] = R"__libstdcxx__(
| ^~~~~~~~~~~~~~~~
2 | # version 2022g
| ~~~~~~~~~~~~~~~
3 | # This zic input file is in the public domain.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 | R d 1916 o - Jun 14 23s 1 S
[ about 4200 rows go here ]
4208 | L Pacific/Port_Moresby Pacific/Truk
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4209 | )__libstdcxx__";
| ~~~~~~~~~~~~~~~
make[5]: *** [Makefile:752: tzdb.lo] Error 1
make[5]: Leaving directory
'/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3/src/c++20'
make[4]: *** [Makefile:784: all-recursive] Error 1
make[4]: Leaving directory
'/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3/src'
make[3]: *** [Makefile:576: all-recursive] Error 1
make[3]: Leaving directory '/d/Works/xcomp/gcc-build/msp430-elf/libstdc++-v3'
make[2]: *** [Makefile:501: all] Error 2
make[2]: Leaving directory '/d/Works/xcomp/gcc-build/msp430-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
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (21 preceding siblings ...)
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
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-30 19:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #22 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Use --without-libstdcxx-zoneinfo
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc jdx at o2 dot pl
` (22 preceding siblings ...)
2023-01-30 19:28 ` redi at gcc dot gnu.org
@ 2023-01-31 16:26 ` redi at gcc dot gnu.org
23 siblings, 0 replies; 25+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-31 16:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221
--- Comment #23 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #22)
> Use --without-libstdcxx-zoneinfo
I'll make that the default for msp430-elf and avr.
^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2023-01-31 16:26 UTC | newest]
Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-25 9:58 [Bug libstdc++/108221] New: Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc 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
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
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).