public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/21101] New: errors when compiling a systemtap module with gcc 7
@ 2017-02-01 22:22 dsmith at redhat dot com
  2017-02-02 16:20 ` [Bug tapsets/21101] " dsmith at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dsmith at redhat dot com @ 2017-02-01 22:22 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 21101
           Summary: errors when compiling a systemtap module with gcc 7
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com
  Target Milestone: ---

When compiling the syscall testsuite modules, I'm getting errors in two
categories:

1) -Werror=duplicate-decl-specifier errors:

/tmp/stapoAXy4j/stap_d11f7291037e81faf021c77826b046de_2241377_src.c:2849:29:
error: duplicate ‘const’ declaration specifier
[-Werror=duplicate-decl-specifier]
 static const _stp_val_array const _stp_arch_prctl_list[] = {
                             ^~~~~
/tmp/stapoAXy4j/stap_d11f7291037e81faf021c77826b046de_2241377_src.c:2869:29:
error: duplicate ‘const’ declaration specifier
[-Werror=duplicate-decl-specifier]
 static const _stp_val_array const _stp_arch_ptrace_request_list[] = {

These errors were fairly easy to fix.

2) -Werror=format-truncation= errors:

/tmp/stapthvyJj/stap_ae774acbd3f9c4fd0b155da9c1b323a6_2241365_src.c: In
function ‘function___global__struct_sockaddr_u__overload_0’:
/tmp/stapthvyJj/stap_ae774acbd3f9c4fd0b155da9c1b323a6_2241365_src.c:270286:73:
error: ‘%s’ directive output may be truncated writing up to 511 bytes into a
region of size 497 [-Werror=format-truncation=]
             snprintf(STAP_RETVALUE, MAXSTRINGLEN, "{AF_UNIX, \"\\000%s\"}",
                                                                     ^~
/tmp/stapthvyJj/stap_ae774acbd3f9c4fd0b155da9c1b323a6_2241365_src.c:270286:17:
note: ‘snprintf’ output between 18 and 529 bytes into a destination of size 512
                 snprintf(STAP_RETVALUE, MAXSTRINGLEN, "{AF_UNIX,
\"\\000%s\"}",
                
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     CONTEXT->out_str);
                     ~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

These are trickier to fix. I'm not sure of the best solution quite yet.

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

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

* [Bug tapsets/21101] errors when compiling a systemtap module with gcc 7
  2017-02-01 22:22 [Bug tapsets/21101] New: errors when compiling a systemtap module with gcc 7 dsmith at redhat dot com
@ 2017-02-02 16:20 ` dsmith at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: dsmith at redhat dot com @ 2017-02-02 16:20 UTC (permalink / raw)
  To: systemtap

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

David Smith <dsmith at redhat dot com> changed:

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

--- Comment #1 from David Smith <dsmith at redhat dot com> ---
Commit 1371bf9 fixes all the gcc 7 related errors I see when using the
buildok.exp testcase.

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

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

end of thread, other threads:[~2017-02-02 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-01 22:22 [Bug tapsets/21101] New: errors when compiling a systemtap module with gcc 7 dsmith at redhat dot com
2017-02-02 16:20 ` [Bug tapsets/21101] " dsmith 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).