public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "klen_s at mail dot ru" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/27528] New: compile fail (binutils/gdb/ada-lang.c) Date: Fri, 05 Mar 2021 21:48:16 +0000 [thread overview] Message-ID: <bug-27528-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=27528 Bug ID: 27528 Summary: compile fail (binutils/gdb/ada-lang.c) Product: gdb Version: HEAD Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: klen_s at mail dot ru Target Milestone: --- Created attachment 13292 --> https://sourceware.org/bugzilla/attachment.cgi?id=13292&action=edit patch build binutils with fail compile of binutils/gdb/ada-lang.c sources: HEAD configure args: src/binutils/configure -v --prefix=/klen/tools/arm-kgp-eabi_@_x86_64-kgp-linux-gnu_westmere --target=arm-kgp-eabi --host=x86_64-kgp-linux-gnu --build=x86_64-kgp-linux-gnu --disable-werror --enable-multilib --with-pic --enable-nls --enable-lto --enable-plugins --enable-static --disable-shared --with-expat --disable-sim --enable-gold --enable--threads --disable-source-highlight compiler output error: CXX ada-lang.o ../../../src/bu-gdb/gdb/ada-lang.c: В функции «const char* ada_fold_name(gdb::string_view)»: ../../../src/bu-gdb/gdb/ada-lang.c:947:64: ошибка: нет соответствующей функции для вызова «to_string(std::basic_string_view<char>)» 947 | fold_storage = to_string (name.substr (1, name.size () - 2)); | ^ In file included from /klen/tools/x86_64-kgp-linux-gnu-znver2-avx2/lib/gcc/x86_64-kgp-linux-gnu/11.0.1/include/c++/string:55, from ../../../src/bu-gdb/gdb/../gdbsupport/common-utils.h:23, from ../../../src/bu-gdb/gdb/../gdbsupport/common-defs.h:125, from ../../../src/bu-gdb/gdb/defs.h:28, from ../../../src/bu-gdb/gdb/ada-lang.c:21: patch: diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index bb50222f81..8f27f3ccdf 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -944,10 +944,10 @@ ada_fold_name (gdb::string_view name) static std::string fold_storage; if (!name.empty () && name[0] == '\'') - fold_storage = to_string (name.substr (1, name.size () - 2)); + fold_storage = gdb::to_string (name.substr (1, name.size () - 2)); else { - fold_storage = to_string (name); + fold_storage = gdb::to_string (name); for (int i = 0; i < name.size (); i += 1) fold_storage[i] = tolower (fold_storage[i]); } -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2021-03-05 21:48 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-05 21:48 klen_s at mail dot ru [this message] 2021-03-05 21:52 ` [Bug gdb/27528] " klen_s at mail dot ru 2021-03-06 16:43 ` cvs-commit at gcc dot gnu.org 2021-03-06 16:43 ` tromey at sourceware dot 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-27528-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.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).