public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/5017] New: Compilation errors with gcc-4.3 snapshot
@ 2007-09-10 20:30 eugen at debian dot org
  2007-09-10 20:32 ` [Bug translator/5017] " eugen at debian dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: eugen at debian dot org @ 2007-09-10 20:30 UTC (permalink / raw)
  To: systemtap

There are two errors when compiling systemtap with gcc-4.3 snapshot:

staptree.cxx: In static member function 'static bool
print_format::parse_print(const std::string&, bool&, bool&, bool&, bool&
)':
staptree.cxx:356: error: 'strncmp' was not declared in this scope

In file included from main.cxx:12:
staptree.h:871: error: explicit template specialization cannot have a storage class

First one is just missing #include <cstring>.
Second one is harder to fix, it is related to this change in gcc:
http://gcc.gnu.org/ml/gcc-patches/2007-06/msg01075.html . It can be fixed by
removing second "static" in this code:
template <typename T> static void
require (deep_copy_visitor* v, T* dst, T src)
...
template <> static void
require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src)

Unfortunately current gcc has bug that makes require<indexable *>() extern, so
compilation fails.

-- 
           Summary: Compilation errors with gcc-4.3 snapshot
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: eugen at debian dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=5017

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

* [Bug translator/5017] Compilation errors with gcc-4.3 snapshot
  2007-09-10 20:30 [Bug translator/5017] New: Compilation errors with gcc-4.3 snapshot eugen at debian dot org
@ 2007-09-10 20:32 ` eugen at debian dot org
  2007-12-11 13:45 ` fche at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: eugen at debian dot org @ 2007-09-10 20:32 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From eugen at debian dot org  2007-09-10 20:29 -------
Created an attachment (id=1996)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1996&action=view)
patch for missing #include


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5017

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

* [Bug translator/5017] Compilation errors with gcc-4.3 snapshot
  2007-09-10 20:30 [Bug translator/5017] New: Compilation errors with gcc-4.3 snapshot eugen at debian dot org
  2007-09-10 20:32 ` [Bug translator/5017] " eugen at debian dot org
@ 2007-12-11 13:45 ` fche at redhat dot com
  2007-12-17 23:44 ` eugen at debian dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: fche at redhat dot com @ 2007-12-11 13:45 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2007-12-11 13:45 -------
patch committed

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=5017

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

* [Bug translator/5017] Compilation errors with gcc-4.3 snapshot
  2007-09-10 20:30 [Bug translator/5017] New: Compilation errors with gcc-4.3 snapshot eugen at debian dot org
  2007-09-10 20:32 ` [Bug translator/5017] " eugen at debian dot org
  2007-12-11 13:45 ` fche at redhat dot com
@ 2007-12-17 23:44 ` eugen at debian dot org
  2007-12-17 23:46 ` eugen at debian dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: eugen at debian dot org @ 2007-12-17 23:44 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From eugen at debian dot org  2007-12-17 23:44 -------
Applied patch does not fix build failure with gcc 4.3 related to templates. It
is "static" in definition for require<indexable *>() that should be removed, not
require<T>().

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


http://sourceware.org/bugzilla/show_bug.cgi?id=5017

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

* [Bug translator/5017] Compilation errors with gcc-4.3 snapshot
  2007-09-10 20:30 [Bug translator/5017] New: Compilation errors with gcc-4.3 snapshot eugen at debian dot org
                   ` (2 preceding siblings ...)
  2007-12-17 23:44 ` eugen at debian dot org
@ 2007-12-17 23:46 ` eugen at debian dot org
  2008-01-17 17:52 ` eugen at debian dot org
  2008-01-24 16:52 ` brolley at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: eugen at debian dot org @ 2007-12-17 23:46 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From eugen at debian dot org  2007-12-17 23:45 -------
Created an attachment (id=2147)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2147&action=view)
workaround for gcc 4.3 build failure

This is workaround that works for both gcc 4.2 and gcc 4.3. Suggested here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=455663#24

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5017

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

* [Bug translator/5017] Compilation errors with gcc-4.3 snapshot
  2007-09-10 20:30 [Bug translator/5017] New: Compilation errors with gcc-4.3 snapshot eugen at debian dot org
                   ` (3 preceding siblings ...)
  2007-12-17 23:46 ` eugen at debian dot org
@ 2008-01-17 17:52 ` eugen at debian dot org
  2008-01-24 16:52 ` brolley at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: eugen at debian dot org @ 2008-01-17 17:52 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From eugen at debian dot org  2008-01-17 17:51 -------
*** Bug 5631 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsmith at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=5017

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

* [Bug translator/5017] Compilation errors with gcc-4.3 snapshot
  2007-09-10 20:30 [Bug translator/5017] New: Compilation errors with gcc-4.3 snapshot eugen at debian dot org
                   ` (4 preceding siblings ...)
  2008-01-17 17:52 ` eugen at debian dot org
@ 2008-01-24 16:52 ` brolley at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: brolley at redhat dot com @ 2008-01-24 16:52 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From brolley at redhat dot com  2008-01-24 16:52 -------
I've committed these patches.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=5017

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

end of thread, other threads:[~2008-01-24 16:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-10 20:30 [Bug translator/5017] New: Compilation errors with gcc-4.3 snapshot eugen at debian dot org
2007-09-10 20:32 ` [Bug translator/5017] " eugen at debian dot org
2007-12-11 13:45 ` fche at redhat dot com
2007-12-17 23:44 ` eugen at debian dot org
2007-12-17 23:46 ` eugen at debian dot org
2008-01-17 17:52 ` eugen at debian dot org
2008-01-24 16:52 ` brolley at redhat 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).