nvidia_sysctl.c:610:9: error: '__assert_19' declared as an array with a negative size

christian c47g at gmx.at
Thu Dec 11 16:54:24 UTC 2014


Hi!

I've just tried to compile x11/nvidia-driver-304 on a 9.3-STABLE (rev. 
274494) machine and got those errors below. It looks like it's related 
to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194523 which was 
closed as "fixed". Does that problem still exist on stable/9?

Thanks,
Christian.

nvidia_sysctl.c:610:9: error: '__assert_19' declared as an array with a 
negative size
         SYSCTL_ADD_PROC(&sysctl_ctx,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/sysctl.h:476:2: note: expanded from macro 'SYSCTL_ADD_PROC'
         CTASSERT(((access) & CTLTYPE) != 0);                            \
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/systm.h:96:21: note: expanded from macro 'CTASSERT'
#define CTASSERT(x)     _Static_assert(x, "compile-time assertion failed")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/cdefs.h:251:30: note: expanded from macro '_Static_assert'
#define _Static_assert(x, y)    __Static_assert(x, __COUNTER__)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/cdefs.h:252:31: note: expanded from macro '__Static_assert'
#define __Static_assert(x, y)   ___Static_assert(x, y)
                                 ^~~~~~~~~~~~~~~~~~~~~~
@/sys/cdefs.h:253:60: note: expanded from macro '___Static_assert'
#define ___Static_assert(x, y)  typedef char __assert_ ## y[(x) ? 1 : -1]
^~~~~~~~~~~~
nvidia_sysctl.c:620:9: error: '__assert_20' declared as an array with a 
negative size
         SYSCTL_ADD_PROC(&sysctl_ctx,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/sysctl.h:476:2: note: expanded from macro 'SYSCTL_ADD_PROC'
         CTASSERT(((access) & CTLTYPE) != 0);                            \
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/systm.h:96:21: note: expanded from macro 'CTASSERT'
#define CTASSERT(x)     _Static_assert(x, "compile-time assertion failed")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/cdefs.h:251:30: note: expanded from macro '_Static_assert'
#define _Static_assert(x, y)    __Static_assert(x, __COUNTER__)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/cdefs.h:252:31: note: expanded from macro '__Static_assert'
#define __Static_assert(x, y)   ___Static_assert(x, y)
                                 ^~~~~~~~~~~~~~~~~~~~~~
@/sys/cdefs.h:253:60: note: expanded from macro '___Static_assert'
#define ___Static_assert(x, y)  typedef char __assert_ ## y[(x) ? 1 : -1]
^~~~~~~~~~~~
nvidia_sysctl.c:630:9: error: '__assert_21' declared as an array with a 
negative size
         SYSCTL_ADD_PROC(&sysctl_ctx,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/sysctl.h:476:2: note: expanded from macro 'SYSCTL_ADD_PROC'
         CTASSERT(((access) & CTLTYPE) != 0);                            \
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/systm.h:96:21: note: expanded from macro 'CTASSERT'
#define CTASSERT(x)     _Static_assert(x, "compile-time assertion failed")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/cdefs.h:251:30: note: expanded from macro '_Static_assert'
#define _Static_assert(x, y)    __Static_assert(x, __COUNTER__)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/cdefs.h:252:31: note: expanded from macro '__Static_assert'
#define __Static_assert(x, y)   ___Static_assert(x, y)
                                 ^~~~~~~~~~~~~~~~~~~~~~
@/sys/cdefs.h:253:60: note: expanded from macro '___Static_assert'
#define ___Static_assert(x, y)  typedef char __assert_ ## y[(x) ? 1 : -1]
^~~~~~~~~~~~
:
:


More information about the freebsd-ports mailing list