Bug 208057

Summary: /usr/src/sys/netinet/tcp_input.c:245:1: error: static_assert failed
Product: Base System Reporter: mikhail.rokhin
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Many People CC: amd64, jhb
Priority: ---    
Version: CURRENT   
Hardware: amd64   
OS: Any   

Description mikhail.rokhin 2016-03-16 12:17:03 UTC
--- tcp_input.o ---
cc  -c -O2 -pipe -fno-strict-aliasing  -g -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MP -MF.depend.tcp_input.o -MTtcp_input.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-unknown-pragmas  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function  -Wno-error-pointer-sign -Wno-error-shift-negative-value  -mno-aes -mno-avx  -std=iso9899:1999 -Werror  /usr/src/sys/netinet/tcp_input.c
/usr/src/sys/netinet/tcp_input.c:245:1: error: static_assert failed "compile-time assertion failed"
SYSCTL_COUNTER_U64_ARRAY(_net_inet_tcp, TCPCTL_STATES, states, CTLFLAG_RD |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/sysctl.h:657:2: note: expanded from macro 'SYSCTL_COUNTER_U64_ARRAY'
        CTASSERT((((access) & CTLTYPE) == 0 ||                          \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/systm.h:103:21: note: expanded from macro 'CTASSERT'
#define CTASSERT(x)     _Static_assert(x, "compile-time assertion failed")
                        ^              ~
1 error generated.
*** [tcp_input.o] Error code 1

make[2]: stopped in /usr/obj/usr/src/sys/GENERIC
--- sctputil.o ---
ctfconvert -L VERSION -g sctputil.o
--- sctp_usrreq.o ---
ctfconvert -L VERSION -g sctp_usrreq.o
1 error

make[2]: stopped in /usr/obj/usr/src/sys/GENERIC
*** [buildkernel] Error code 2

make[1]: stopped in /usr/src
1 error

make[1]: stopped in /usr/src
*** [buildkernel] Error code 2

---

svn info
Path: .
Working Copy Root Path: /usr/src
URL: svn://svn0.eu.freebsd.org/base/head
Relative URL: ^/head
Repository Root: svn://svn0.eu.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 296934
Node Kind: directory
Schedule: normal
Last Changed Author: hselasky
Last Changed Rev: 296934
Last Changed Date: 2016-03-16 11:49:38 +0300 (Wed, 16 Mar 2016)
Comment 1 John Baldwin freebsd_committer freebsd_triage 2016-07-30 00:20:20 UTC
Fixed in r296935.