public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/27385] New: Cannot compile arc.c with gcc-4.8 (error: no matching function for call to 'std::pair...')
@ 2021-02-09  8:30 shahab.vahedi at gmail dot com
  2021-02-09  8:30 ` [Bug build/27385] " shahab.vahedi at gmail dot com
                   ` (32 more replies)
  0 siblings, 33 replies; 34+ messages in thread
From: shahab.vahedi at gmail dot com @ 2021-02-09  8:30 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27385

            Bug ID: 27385
           Summary: Cannot compile arc.c with gcc-4.8 (error: no matching
                    function for call to 'std::pair...')
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: shahab.vahedi at gmail dot com
  Target Milestone: ---

This PR is suffering from the same problem as "PR build/26344":

--------8<---------
../../gdb/arch/arc.c:117:43:   required from here
/usr/include/c++/4.8.2/bits/hashtable_policy.h:195:39: error: no matching
function for call to ‘std::pair<const arc_arch_features, const
std::unique_ptr<target_desc, target_desc_deleter> >::pair(const
arc_arch_features&, target_desc*&)’
  : _M_v(std::forward<_Args>(__args)...) { }
                                       ^
/usr/include/c++/4.8.2/bits/hashtable_policy.h:195:39: note: candidates are:
In file included from /usr/include/c++/4.8.2/utility:70:0,
                 from /usr/include/c++/4.8.2/tuple:38,
                 from /usr/include/c++/4.8.2/functional:55,
                 from ../../gdb/../gdbsupport/ptid.h:35,
                 from ../../gdb/../gdbsupport/common-defs.h:123,
                 from ../../gdb/arch/arc.c:19:
/usr/include/c++/4.8.2/bits/stl_pair.h:206:9: note: template<class ... _Args1,
long unsigned int ..._Indexes1, class ... _Args2, long unsigned int
..._Indexes2> std::pair<_T1, _T2>::pair(std::tuple<_Args1 ...>&,
std::tuple<_Args2 ...>&, std::_Index_tuple<_Indexes1 ...>,
std::_Index_tuple<_Indexes2 ...>)
         pair(tuple<_Args1...>&, tuple<_Args2...>&,
         ^
-------->8---------

Thanks to Tome de Vries' investigation, same fix applies in ARC's case as well:
--------8<---------
diff --git a/gdb/arch/arc.c b/gdb/arch/arc.c
index 3808f9f..a5385ce 100644
--- a/gdb/arch/arc.c
+++ b/gdb/arch/arc.c
@@ -114,7 +114,7 @@ struct arc_arch_features_hasher
   target_desc *tdesc = arc_create_target_description (features);

   /* Add the newly created target description to the repertoire.  */
-  arc_tdesc_cache.emplace (features, tdesc);
+  arc_tdesc_cache.emplace (features, target_desc_up (tdesc));

   return tdesc;
 }
-------->8---------

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2021-11-23  9:00 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09  8:30 [Bug build/27385] New: Cannot compile arc.c with gcc-4.8 (error: no matching function for call to 'std::pair...') shahab.vahedi at gmail dot com
2021-02-09  8:30 ` [Bug build/27385] " shahab.vahedi at gmail dot com
2021-02-09  8:46 ` vries at gcc dot gnu.org
2021-02-09 17:38 ` cvs-commit at gcc dot gnu.org
2021-02-09 22:10 ` shahab.vahedi at gmail dot com
2021-06-27 17:58 ` ahmedsayeed1982 at yahoo dot com
2021-08-19  6:02 ` ucelsanicin at yahoo dot com
2021-08-27 18:00 ` ribevi6798 at enamelme dot com
2021-09-06  9:09 ` focixujo at livinginsurance dot co.uk
2021-09-10 19:40 ` mehmetgelisin at aol dot com
2021-09-14  1:33 ` jadinvestments1 at gmail dot com
2021-09-14 17:29 ` johnb6174 at gmail dot com
2021-09-14 18:49 ` mark at klomp dot org
2021-09-25  1:22 ` jadinvestments1 at gmail dot com
2021-09-26 13:31 ` tes.vik1986 at gmail dot com
2021-10-05 16:00 ` schaumburgkitchens at gmail dot com
2021-10-06 23:04 ` prosperousfish at gmail dot com
2021-10-08  4:09 ` johwelvic.bacolod at gmail dot com
2021-10-09 11:01 ` gulsenenginar at aol dot com
2021-10-10 16:11 ` oficaj3 at gmail dot com
2021-10-18 19:57 ` ahmedsayeed1982 at hotmail dot com
2021-10-19  7:14 ` progonsaytu at gmail dot com
2021-10-23 13:46 ` fiteva5725 at bomoads dot com
2021-10-24 10:01 ` glassmtech at ukr dot net
2021-11-02 15:22 ` gepaw63633 at dukeoo dot com
2021-11-06 21:12 ` paneki8601 at dukeoo dot com
2021-11-16 19:04 ` xecana8007 at funboxcn dot com
2021-11-16 19:08 ` xecana8007 at funboxcn dot com
2021-11-16 19:12 ` xecana8007 at funboxcn dot com
2021-11-16 19:16 ` xecana8007 at funboxcn dot com
2021-11-22  7:38 ` gexed96894 at keagenan dot com
2021-11-23  4:46 ` thebestdressedog at gmail dot com
2021-11-23  7:08 ` allen at rockvalleymarketing dot com
2021-11-23  9:00 ` joy at rockvalleymarketing dot com

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).