buildkernel failed - subr_unit.c: unused variable
Andrey Oktyabrskiy
ano at bestmx.net
Fri Nov 8 07:51:29 PST 2013
I commented out all wireless and ISA network cards and have another error:
$ make buildkernel KERNCONF=ANO
...
cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual -Wold-style-definition -Wold-style-declaration -Wno-inline
-Wno-pointer-sign -std=c99 -Wno-unused-but-set-variable -g -nostdinc
-I. -Iinclude -I/usr/src/sys -I/usr/src/sys/../include
-I/usr/obj/usr/src/sys/ANO -I"/usr/src/sys/dev/acpica"
-I"/usr/src/sys/contrib/dev/acpica-unix/include"
-I/usr/src/sys/dev/netif/ath/hal
-I/usr/src/sys/dev/netif/ath/hal/ath_hal -I/usr/src/sys/dev/drm/include
-D_KERNEL -include opt_global.h -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000 -fno-common
-ffreestanding -mpreferred-stack-boundary=4 -fno-stack-protector
-mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-mmx -mno-3dnow -mno-sse
-mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4
-mno-sse4a -mno-sse5 -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
-mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c -mno-fma -mno-fma4 -mno-bmi
-mno-bmi2 -mno-xop -mno-lwp -mno-lzcnt -mno-tbm -msoft-float
-fno-asynchronous-unwind-tables -fno-omit-frame-pointer
/usr/src/sys/kern/subr_unit.c -Werror
/usr/src/sys/kern/subr_unit.c: In function 'alloc_unrl':
/usr/src/sys/kern/subr_unit.c:492:17: error: unused variable 'td'
[-Werror=unused-variable]
/usr/src/sys/kern/subr_unit.c:491:15: error: unused variable 'ml'
[-Werror=unused-variable]
cc1: all warnings being treated as errors
*** Error code 1
Stop.
make: stopped in /usr/obj/usr/src/sys/ANO
*** Error code 1
Stop.
make: stopped in /usr/src
.CURDIR='/usr/src'
.OBJDIR='/usr/obj/usr/src'
LD_LIBRARY_PATH=''
MACHINE_ARCH='x86_64'
MACHINE='x86_64'
MAKEFILE='/usr/src/Makefile.inc1'
.TARGETS='buildkernel'
.ERROR_TARGET='buildkernel'
.MAKE.LEVEL='1'
*** Error code 1
Stop.
make: stopped in /usr/src
$ diff -u sys/config/X86_64_GENERIC sys/config/ANO
--- sys/config/X86_64_GENERIC 2013-11-06 08:31:18.000000000 +0000
+++ sys/config/ANO 2013-11-08 15:38:56.000000000 +0000
@@ -8,7 +8,7 @@
machine x86_64
machine_arch x86_64
cpu HAMMER_CPU
-ident X86_64_GENERIC
+ident ANO
maxusers 0
#options CPU_DISABLE_AVX
@@ -63,7 +63,7 @@
# Debugging for Development
options DDB
options DDB_TRACE
-options INVARIANTS
+#options INVARIANTS
device isa
device pci
@@ -249,19 +249,19 @@
# ISA Ethernet NICs.
# 'device ed' requires 'device miibus'
-device ed0 at isa? disable port 0x280 irq 10 iomem 0xd8000
-device ex
+#device ed0 at isa? disable port 0x280 irq 10 iomem
0xd8000
+#device ex
# Xircom Ethernet
-device xe
+#device xe
# Wireless NIC cards
-options IEEE80211_DEBUG #enable debugging msgs
-options IEEE80211_SUPPORT_MESH #enable 802.11s D3.0 support
-options IEEE80211_SUPPORT_TDMA #enable TDMA support
-device wlan # 802.11 support
-device wlan_ccmp # 802.11 CCMP support
-device wlan_tkip # 802.11 TKIP support
-device wlan_wep # 802.11 WEP support
+#options IEEE80211_DEBUG #enable debugging msgs
+#options IEEE80211_SUPPORT_MESH #enable 802.11s D3.0 support
+#options IEEE80211_SUPPORT_TDMA #enable TDMA support
+#device wlan # 802.11 support
+#device wlan_ccmp # 802.11 CCMP support
+#device wlan_tkip # 802.11 TKIP support
+#device wlan_wep # 802.11 WEP support
#device wlan_amrr # AMRR
# Aironet 4500/4800 802.11 wireless NICs. Note: the declaration below
will
@@ -269,22 +269,22 @@
# mode (the factory default). If you set the switches on your ISA
# card for a manually chosen I/O address and IRQ, you must specify
# those parameters here.
-device an
-device ath # Atheros NICs
-device ath_hal # Atheros Hardware Access Layer
-options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors
-device ath_rate_sample # Atheros Sample TX rate control algorithm
-device ral # Ralink Technology 802.11 wireless NIC
-device iwn # Intel
+#device an
+#device ath # Atheros NICs
+#device ath_hal # Atheros Hardware Access Layer
+#options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors
+#device ath_rate_sample # Atheros Sample TX rate control
algorithm
+#device ral # Ralink Technology 802.11
wireless NIC
+#device iwn # Intel
#device rtw # RealTek 802.11 wireless NIC
# WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really
# exists only as a PCMCIA device, so there is no ISA attachment needed
# and resources will always be dynamically assigned by the pccard code.
-device wi
+#device wi
-device lnc0 at isa? disable port 0x280 irq 10 drq 0
-device cs0 at isa? disable port 0x300
-device sn0 at isa? disable port 0x300 irq 10
+#device lnc0 at isa? disable port 0x280 irq 10 drq 0
+#device cs0 at isa? disable port 0x300
+#device sn0 at isa? disable port 0x300 irq 10
# Pseudo devices - the number indicates how many units to allocate.
pseudo-device loop # Network loopback
More information about the Kernel
mailing list