Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716760 - dev-util/strace-5.6 fails on -Werror: defs.h:1671:85: error: unused parameter 'tcp' [-Werror=unused-parameter]
Summary: dev-util/strace-5.6 fails on -Werror: defs.h:1671:85: error: unused parameter...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2020-04-09 07:10 UTC by Sergei Trofimovich (RETIRED)
Modified: 2020-04-09 14:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2020-04-09 07:10:17 UTC
On a system with:

  $ portageq envvar CFLAGS
  -march=sandybridge -mtune=sandybridge -maes --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=8192 -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -Wall -Wextra -Wstack-protector


The following should be enough to reproduce on amd64:
    # CFLAGS='-Wall -Wextra -O2' emerge -v1 strace

The build fails on -Werror as:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H   -I./linux/x86_64 -I./linux/x86_64 -I./linux -I./linux -I. -I.      -Wall -Wempty-body -Wformat-security -Wignored-qualifiers -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration -Wold-style-definition -Woverride-init -Wsign-compare -Wtype-limits -Wwrite-strings -Werror   -march=sandybridge -mtune=sandybridge -maes --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=8192 -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -Wall -Wextra -Wstack-protector -c -o libstrace_a-getpagesize.o `test -f 'getpagesize.c' || echo './'`getpagesize.c

getpagesize.c: In function 'sys_getpagesize':
defs.h:1671:85: error: unused parameter 'tcp' [-Werror=unused-parameter]
 1671 | # define SYS_FUNC(syscall_name) int SYS_FUNC_NAME(sys_ ## syscall_name)(struct tcb *tcp)
      |                                                                         ~~~~~~~~~~~~^~~
getpagesize.c:10:1: note: in expansion of macro 'SYS_FUNC'
   10 | SYS_FUNC(getpagesize)
      | ^~~~~~~~
Comment 1 Larry the Git Cow gentoo-dev 2020-04-09 08:29:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7d275c25f75516e5b146430f440bb0f69ec2183

commit e7d275c25f75516e5b146430f440bb0f69ec2183
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2020-04-09 08:28:22 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-04-09 08:29:03 +0000

    dev-util/strace: Don't build with -Werror
    
    Closes: https://bugs.gentoo.org/716760
    Package-Manager: Portage-2.3.97, Repoman-2.3.22
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 dev-util/strace/strace-5.6.ebuild  | 1 +
 dev-util/strace/strace-9999.ebuild | 1 +
 2 files changed, 2 insertions(+)