View Single Post
  #1   (View Single Post)  
Old 28th January 2012
nocturnal nocturnal is offline
New User
 
Join Date: Oct 2011
Posts: 6
Default Compiler warning halting make of 5.0 kernel on 4.9 i386 system

I have a pretty vanilla 4.9 i386 system that I've even reinstalled a couple of times to combat this issue, but to no avail. It's installed with base, etc, man, comp and packages bash, vim--no_x11, curl.

I follow generic instructions by fetching source code into /usr/src.

Code:
export CVSROOT=anoncvs@anoncvs.eu.openbsd.org:/cvs
cd /usr
cvs checkout -rOPENBSD_5_0 -P src
cd src/sys/arch/i386/conf
config GENERIC
cd ../compile/GENERIC
make clean && make depend && make
rm -f eddep *bsd *bsd.gdb tags *.[dio] [a-z]*.s  [Ee]rrs linterrs assym.h 
cat ../../../../arch/i386/i386/genassym.cf ../../../../arch/i386/i386/genassym.cf |  sh ../../../../kern/genassym.sh cc  -Werror -Wall -Wstrict-prototypes -Wmi
ssing-prototypes  -Wno-main -Wno-uninitialized -Wno-format  -Wstack-larger-than-2047  -fno-builtin-printf -fno-builtin-snprintf  -fno-builtin-vsnprintf -fno-bu
iltin-log  -fno-builtin-log2 -fno-builtin-malloc -O2 -pipe -nostdinc -I. -I../../../.. -I../../../../arch -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS 
-DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DFFS -DMFS -DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE -DFIFO -DINET -DALTQ -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLA
TE -DMROUTING -DPIM -DBOOT_CONFIG -DUSER_PCICONF -DKVM86 -DUSER_LDT -DPROCFS -DRAMDISK_HOOKS -DMINIROOTSIZE="0x18000" -DNKPTP="0x10" -DCOMCONSOLE -DCONSPEED="0
x9600" -DBUFCACHEPERCENT="1" -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DWSDISPLAY_COMPAT_PCVT 
-DMAXUSERS=32 -D_KERNEL -MD -MP -MF assym.P > assym.h.tmp
sed '1s/.*/assym.h: \\/' assym.P > assym.d
sort -u assym.h.tmp > assym.h
cc -D_LOCORE -x assembler-with-cpp  -fno-builtin-printf -fno-builtin-snprintf  -fno-builtin-vsnprintf -fno-builtin-log  -fno-builtin-log2 -fno-builtin-malloc -
nostdinc -I. -I../../../.. -I../../../../arch -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DFFS -DMFS 
-DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE -DFIFO -DINET -DALTQ -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DMROUTING -DPIM -DBOOT_CONFIG -DUSER_PCICONF -DKVM86 -DU
SER_LDT -DPROCFS -DRAMDISK_HOOKS -DMINIROOTSIZE="0x18000" -DNKPTP="0x10" -DCOMCONSOLE -DCONSPEED="0x9600" -DBUFCACHEPERCENT="1" -DPCIVERBOSE -DUSBVERBOSE -DWSD
ISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DWSDISPLAY_COMPAT_PCVT -DMAXUSERS=32 -D_KERNEL -MD -MP -c ../../../../arch/i386/i38
6/locore.s
cc  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wno-main -Wno-uninitialized -Wno-format  -Wstack-larger-than-2047  -fno-builtin-printf -fno-builti
n-snprintf  -fno-builtin-vsnprintf -fno-builtin-log  -fno-builtin-log2 -fno-builtin-malloc -O2 -pipe -nostdinc -I. -I../../../.. -I../../../../arch -DDDB -DDIA
GNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DFFS -DMFS -DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE -DFIFO -DINET -DALTQ
 -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DMROUTING -DPIM -DBOOT_CONFIG -DUSER_PCICONF -DKVM86 -DUSER_LDT -DPROCFS -DRAMDISK_HOOKS -DMINIROOTSIZE="0x18000"
 -DNKPTP="0x10" -DCOMCONSOLE -DCONSPEED="0x9600" -DBUFCACHEPERCENT="1" -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_D
EFAULTSCREENS="6" -DWSDISPLAY_COMPAT_PCVT -DMAXUSERS=32 -D_KERNEL -MD -MP  -c param.c
cc  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wno-main -Wno-uninitialized -Wno-format  -Wstack-larger-than-2047  -fno-builtin-printf -fno-builti
n-snprintf  -fno-builtin-vsnprintf -fno-builtin-log  -fno-builtin-log2 -fno-builtin-malloc -O2 -pipe -nostdinc -I. -I../../../.. -I../../../../arch -DDDB -DDIA
GNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DFFS -DMFS -DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE -DFIFO -DINET -DALTQ
 -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DMROUTING -DPIM -DBOOT_CONFIG -DUSER_PCICONF -DKVM86 -DUSER_LDT -DPROCFS -DRAMDISK_HOOKS -DMINIROOTSIZE="0x18000"
 -DNKPTP="0x10" -DCOMCONSOLE -DCONSPEED="0x9600" -DBUFCACHEPERCENT="1" -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_D
EFAULTSCREENS="6" -DWSDISPLAY_COMPAT_PCVT -DMAXUSERS=32 -D_KERNEL -MD -MP  -c ioconf.c
cc1: warnings being treated as errors
ioconf.c:218: warning: excess elements in struct initializer
ioconf.c:218: warning: (near initialization for 'cfdata[0]')
ioconf.c:220: warning: excess elements in struct initializer
ioconf.c:220: warning: (near initialization for 'cfdata[1]')
ioconf.c:222: warning: excess elements in struct initializer
ioconf.c:222: warning: (near initialization for 'cfdata[2]')
ioconf.c:224: warning: excess elements in struct initializer
ioconf.c:224: warning: (near initialization for 'cfdata[3]')
ioconf.c:226: warning: excess elements in struct initializer
ioconf.c:226: warning: (near initialization for 'cfdata[4]')
ioconf.c:228: warning: excess elements in struct initializer
ioconf.c:228: warning: (near initialization for 'cfdata[5]')
ioconf.c:230: warning: excess elements in struct initializer
ioconf.c:230: warning: (near initialization for 'cfdata[6]')
ioconf.c:232: warning: excess elements in struct initializer
ioconf.c:232: warning: (near initialization for 'cfdata[7]')
ioconf.c:234: warning: excess elements in struct initializer
ioconf.c:234: warning: (near initialization for 'cfdata[8]')
And the last error goes on for 68 times before make exits. I must be missing something because this is happening on fresh systems with unpolluted source trees. I've also tried without the make depend since that's what the docs do, same issue.

I've found some list posts describing the same issue but none had a solution for my situation, one discussion just ended with no resolution posted.
Reply With Quote