This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/21101] New: errors when compiling a systemtap module with gcc 7
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 01 Feb 2017 22:22:13 +0000
- Subject: [Bug tapsets/21101] New: errors when compiling a systemtap module with gcc 7
- Auto-submitted: auto-generated
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.