public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jdx at o2 dot pl" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107801] Building cross compiler for H8 family fails in libstdc++ (c++17/memory_resource.cc) Date: Wed, 30 Nov 2022 00:42:11 +0000 [thread overview] Message-ID: <bug-107801-4-OyKNY7Hupv@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107801-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107801 --- Comment #15 from Jan Dubiec <jdx at o2 dot pl> --- I have applied the patch manually to 12.2 tree and this time got following error message: /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/xcomp/gcc-12.2.0/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/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=gnu++17 -nostdinc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=floating_from_chars.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -mint32 -c -o floating_from_chars.lo ../../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/floating_from_chars.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/xcomp/gcc-12.2.0/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/xcomp/gcc-12.2.0/libstdc++-v3/libsupc++ -std=gnu++17 -nostdinc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=floating_from_chars.lo -fimplicit-templates -isystem /d/Works/xcomp/sysroot/h8300-elf/include -mn -mint32 -c ../../../../../../../gcc-12.2.0/libstdc++-v3/src/c++17/floating_from_chars.cc -o floating_from_chars.o In file included from D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/basic_string.h:47, from D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/string:53, from d:\works\xcomp\gcc-12.2.0\libstdc++-v3\src\c++17\floating_from_chars.cc:36: D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/string_view: In member function 'std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::copy(_CharT*, size_type, size_type) const': D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/string_view:301:42: error: no matching function for call to 'min(std::basic_string_view<_CharT, _Traits>::size_type&, int)' 301 | const size_type __rlen = std::min(__n, _M_len - __pos); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/array:43, from d:\works\xcomp\gcc-12.2.0\libstdc++-v3\src\c++17\floating_from_chars.cc:33: D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)' 230 | min(const _Tp& __a, const _Tp& __b) | ^~~ D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algobase.h:230:5: note: template argument deduction/substitution failed: D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/string_view:301:42: note: deduced conflicting types for parameter 'const _Tp' ('short unsigned int' and 'int') 301 | const size_type __rlen = std::min(__n, _M_len - __pos); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)' 278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algobase.h:278:5: note: template argument deduction/substitution failed: D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/string_view:301:42: note: deduced conflicting types for parameter 'const _Tp' ('short unsigned int' and 'int') 301 | const size_type __rlen = std::min(__n, _M_len - __pos); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/string_view: In member function 'constexpr std::basic_string_view<_CharT, _Traits> std::basic_string_view<_CharT, _Traits>::substr(size_type, size_type) const': D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/string_view:312:42: error: no matching function for call to 'min(std::basic_string_view<_CharT, _Traits>::size_type&, int)' 312 | const size_type __rlen = std::min(__n, _M_len - __pos); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)' 230 | min(const _Tp& __a, const _Tp& __b) | ^~~ D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algobase.h:230:5: note: template argument deduction/substitution failed: D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/string_view:312:42: note: deduced conflicting types for parameter 'const _Tp' ('short unsigned int' and 'int') 312 | const size_type __rlen = std::min(__n, _M_len - __pos); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)' 278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/bits/stl_algobase.h:278:5: note: template argument deduction/substitution failed: D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/string_view:312:42: note: deduced conflicting types for parameter 'const _Tp' ('short unsigned int' and 'int') 312 | const size_type __rlen = std::min(__n, _M_len - __pos); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ make[9]: *** [Makefile:585: floating_from_chars.lo] Error 1 make[9]: Leaving directory '/d/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/src/c++17' make[8]: *** [Makefile:781: 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:12297: all-target-libstdc++-v3] Error 2 make[1]: Leaving directory '/d/Works/xcomp/gcc-build' make: *** [Makefile:1043: all] Error 2 Note "-mn -mint32" options – normal mode with 32-bit integers.
next prev parent reply other threads:[~2022-11-30 0:42 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-11-22 4:56 [Bug libstdc++/107801] New: " jdx at o2 dot pl 2022-11-22 9:08 ` [Bug libstdc++/107801] " redi at gcc dot gnu.org 2022-11-22 9:10 ` redi at gcc dot gnu.org 2022-11-22 9:20 ` redi at gcc dot gnu.org 2022-11-22 10:39 ` cvs-commit at gcc dot gnu.org 2022-11-22 11:06 ` cvs-commit at gcc dot gnu.org 2022-11-22 17:05 ` jdx at o2 dot pl 2022-11-22 17:09 ` redi at gcc dot gnu.org 2022-11-23 5:16 ` jdx at o2 dot pl 2022-11-26 21:41 ` pinskia at gcc dot gnu.org 2022-11-27 2:31 ` jdx at o2 dot pl 2022-11-27 7:35 ` redi at gcc dot gnu.org 2022-11-28 12:10 ` redi at gcc dot gnu.org 2022-11-28 13:32 ` redi at gcc dot gnu.org 2022-11-28 16:57 ` cvs-commit at gcc dot gnu.org 2022-11-28 17:01 ` redi at gcc dot gnu.org 2022-11-30 0:42 ` jdx at o2 dot pl [this message] 2022-11-30 1:48 ` redi at gcc dot gnu.org 2022-12-04 11:59 ` jdx at o2 dot pl 2023-05-16 12:50 ` cvs-commit at gcc dot gnu.org 2023-05-16 15:37 ` cvs-commit at gcc dot gnu.org 2023-05-16 16:16 ` cvs-commit at gcc dot gnu.org 2023-05-16 16:17 ` redi at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-107801-4-OyKNY7Hupv@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).