Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Compiling amd64 kernel failed
Hi,
with freshly updated -current, compiling a new kernel fails for me:
compile vNBx64/usbdi_util.o
In file included from /u/NetBSD/src/sys/dev/usb/usbhist.h:45,
from /u/NetBSD/src/sys/dev/usb/usbdi_util.c:54:
/u/NetBSD/src/sys/dev/usb/usbdi_util.c: In function 'usbd_clear_endpoint_feature':
/u/NetBSD/src/sys/sys/kernhist.h:252:11: error: unused variable '_kernhist_call' [-Werror=unused-variable]
uint32_t _kernhist_call = 0;
^~~~~~~~~~~~~~
/u/NetBSD/src/sys/dev/usb/usbhist.h:82:26: note: in expansion of macro 'KERNHIST_FUNC'
#define USBHIST_FUNC() KERNHIST_FUNC(__func__)
^~~~~~~~~~~~~
/u/NetBSD/src/sys/dev/usb/usbdi_util.c:398:2: note: in expansion of macro 'USBHIST_FUNC'
USBHIST_FUNC();
^~~~~~~~~~~~
/u/NetBSD/src/sys/sys/kernhist.h:251:27: error: unused variable '_kernhist_name' [-Werror=unused-variable]
static const char *const _kernhist_name = FNAME; \
^~~~~~~~~~~~~~
/u/NetBSD/src/sys/dev/usb/usbhist.h:82:26: note: in expansion of macro 'KERNHIST_FUNC'
#define USBHIST_FUNC() KERNHIST_FUNC(__func__)
^~~~~~~~~~~~~
/u/NetBSD/src/sys/dev/usb/usbdi_util.c:398:2: note: in expansion of macro 'USBHIST_FUNC'
USBHIST_FUNC();
^~~~~~~~~~~~
/u/NetBSD/src/sys/sys/kernhist.h:250:18: error: unused variable '_kernhist_cnt' [-Werror=unused-variable]
static uint32_t _kernhist_cnt = 0; \
^~~~~~~~~~~~~
/u/NetBSD/src/sys/dev/usb/usbhist.h:82:26: note: in expansion of macro 'KERNHIST_FUNC'
#define USBHIST_FUNC() KERNHIST_FUNC(__func__)
^~~~~~~~~~~~~
/u/NetBSD/src/sys/dev/usb/usbdi_util.c:398:2: note: in expansion of macro 'USBHIST_FUNC'
USBHIST_FUNC();
^~~~~~~~~~~~
At top level:
/u/NetBSD/src/sys/sys/kernhist.h:250:18: error: '_kernhist_cnt' defined but not used [-Werror=unused-variable]
static uint32_t _kernhist_cnt = 0; \
^~~~~~~~~~~~~
/u/NetBSD/src/sys/dev/usb/usbhist.h:82:26: note: in expansion of macro 'KERNHIST_FUNC'
#define USBHIST_FUNC() KERNHIST_FUNC(__func__)
^~~~~~~~~~~~~
/u/NetBSD/src/sys/dev/usb/usbdi_util.c:398:2: note: in expansion of macro 'USBHIST_FUNC'
USBHIST_FUNC();
^~~~~~~~~~~~
/u/NetBSD/src/sys/sys/kernhist.h:251:27: error: '_kernhist_name' defined but not used [-Werror=unused-const-variable=]
static const char *const _kernhist_name = FNAME; \
^~~~~~~~~~~~~~
/u/NetBSD/src/sys/dev/usb/usbhist.h:82:26: note: in expansion of macro 'KERNHIST_FUNC'
#define USBHIST_FUNC() KERNHIST_FUNC(__func__)
^~~~~~~~~~~~~
/u/NetBSD/src/sys/dev/usb/usbdi_util.c:398:2: note: in expansion of macro 'USBHIST_FUNC'
USBHIST_FUNC();
^~~~~~~~~~~~
cc1: all warnings being treated as errors
*** Failed target: usbdi_util.o
*** Failed command: echo ' ' "compile vNBx64/usbdi_util.o" && : echo /u/NetBSD/arch/amd64/TOOLS/bin/x86_64--netbsd-gcc -pipe -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float -ffreestanding -fno-zero-initialized-in-bss -fno-delete-null-pointer-checks -g -O2 -fno-omit-frame-pointer -fstack-protector -Wstack-protector --param ssp-buffer-size=1 -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -Wold-style-definition -Wno-sign-compare --sysroot=/u/NetBSD/arch/amd64/dest -Damd64 -Dx86_64 -I. -I/u/NetBSD/src/sys/external/bsd/acpica/dist -I/u/NetBSD/src/sys/external/bsd/libnv/dist -I/u/NetBSD/src/sys/../common/lib/libx86emu -I/u/NetBSD/src/sys/../common/lib/libc/misc -I/u/NetBSD/src/sys/../common/include -I/u/NetBSD/src/sys/arch -I/u/NetBSD/src/sys -nostdinc -DCOMPAT_UTILS -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/quad -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/string -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string -D_FORTIFY_SOURCE=2 -I/u/NetBSD/src/sys/external/bsd/libnv/dist -I/u/NetBSD/src/sys/external/bsd/acpica/dist/include -c /u/NetBSD/src/sys/dev/usb/usbdi_util.c -o usbdi_util.o && /u/NetBSD/arch/amd64/TOOLS/bin/x86_64--netbsd-gcc -pipe -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float -ffreestanding -fno-zero-initialized-in-bss -fno-delete-null-pointer-checks -g -O2 -fno-omit-frame-pointer -fstack-protector -Wstack-protector --param ssp-buffer-size=1 -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -Wold-style-definition -Wno-sign-compare --sysroot=/u/NetBSD/arch/amd64/dest -Damd64 -Dx86_64 -I. -I/u/NetBSD/src/sys/external/bsd/acpica/dist -I/u/NetBSD/src/sys/external/bsd/libnv/dist -I/u/NetBSD/src/sys/../common/lib/libx86emu -I/u/NetBSD/src/sys/../common/lib/libc/misc -I/u/NetBSD/src/sys/../common/include -I/u/NetBSD/src/sys/arch -I/u/NetBSD/src/sys -nostdinc -DCOMPAT_UTILS -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/quad -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/string -I/u/NetBSD/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string -D_FORTIFY_SOURCE=2 -I/u/NetBSD/src/sys/external/bsd/libnv/dist -I/u/NetBSD/src/sys/external/bsd/acpica/dist/include -c /u/NetBSD/src/sys/dev/usb/usbdi_util.c -o usbdi_util.o && :
*** Error code 1
Stop.
nbmake: stopped in /u/NetBSD/arch/amd64/obj/sys/arch/amd64/compile/vNBx64
ERROR: Failed to make all in "/u/NetBSD/arch/amd64/obj/sys/arch/amd64/compile/vNBx64"
*** BUILD ABORTED ***
Kurt
Home |
Main Index |
Thread Index |
Old Index