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) | ^~~~~~~~
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(+)