Dear all
While compiling amd64 -current with "option SR_DEBUG" the error below
comes up. Steps leading to this were exactly those presented on
config(8)'s first example. The only change from GENERIC is adding
SR_DEBUG.
Apologies in advance for any PEBKAC, it's the first time I'm
compiling bsd myself. Also, lines below aren't wrapped as per the
mailing list rules, but I didn't think it'd make sense to do so. And I
sure as hell don't know enough to come up with a diff, sorry for that
too.
Cheers
Zé
cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized
-Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion
-Wframe-larger-than=2047 -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse
-mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding
-fno-pie -O2 -pipe -nostdinc -I/usr/src/sys -I/home/zeloff/build/bsd
-I/usr/src/sys/arch -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS
-DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT
-DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT
-DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_SACK
-DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX
-DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS
-DHIBERNATE -DSR_DEBUG -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL
-DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU
-DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/dev/softraid.c
/usr/src/sys/dev/softraid.c:1537:23: error: format specifies type 'unsigned
short' but the argument has type 'u_char' (aka 'unsigned char')
[-Werror,-Wformat]
DEVNAME(sc), rootduid[0],
^~~~~~~~~~~
/usr/src/sys/dev/softraidvar.h:317:56: note: expanded from macro 'DNPRINTF'
#define DNPRINTF(n,x...) do { if (sr_debug & n) printf(x); } while(0)
^
/usr/src/sys/dev/softraid.c:1538:10: error: format specifies type 'unsigned
short' but the argument has type 'u_char' (aka 'unsigned char')
[-Werror,-Wformat]
rootduid[1], rootduid[2],
^~~~~~~~~~~
/usr/src/sys/dev/softraidvar.h:317:56: note: expanded from macro 'DNPRINTF'
#define DNPRINTF(n,x...) do { if (sr_debug & n) printf(x); } while(0)
^
/usr/src/sys/dev/softraid.c:1538:23: error: format specifies type 'unsigned
short' but the argument has type 'u_char' (aka 'unsigned char')
[-Werror,-Wformat]
rootduid[1], rootduid[2],
^~~~~~~~~~~
/usr/src/sys/dev/softraidvar.h:317:56: note: expanded from macro 'DNPRINTF'
#define DNPRINTF(n,x...) do { if (sr_debug & n) printf(x); } while(0)
^
/usr/src/sys/dev/softraid.c:1539:10: error: format specifies type 'unsigned
short' but the argument has type 'u_char' (aka 'unsigned char')
[-Werror,-Wformat]
rootduid[3], rootduid[4],
^~~~~~~~~~~
/usr/src/sys/dev/softraidvar.h:317:56: note: expanded from macro 'DNPRINTF'
#define DNPRINTF(n,x...) do { if (sr_debug & n) printf(x); } while(0)
^
/usr/src/sys/dev/softraid.c:1539:23: error: format specifies type 'unsigned
short' but the argument has type 'u_char' (aka 'unsigned char')
[-Werror,-Wformat]
rootduid[3], rootduid[4],
^~~~~~~~~~~
/usr/src/sys/dev/softraidvar.h:317:56: note: expanded from macro 'DNPRINTF'
#define DNPRINTF(n,x...) do { if (sr_debug & n) printf(x); } while(0)
^
/usr/src/sys/dev/softraid.c:1540:10: error: format specifies type 'unsigned
short' but the argument has type 'u_char' (aka 'unsigned char')
[-Werror,-Wformat]
rootduid[5], rootduid[6],
^~~~~~~~~~~
/usr/src/sys/dev/softraidvar.h:317:56: note: expanded from macro 'DNPRINTF'
#define DNPRINTF(n,x...) do { if (sr_debug & n) printf(x); } while(0)
^
/usr/src/sys/dev/softraid.c:1540:23: error: format specifies type 'unsigned
short' but the argument has type 'u_char' (aka 'unsigned char')
[-Werror,-Wformat]
rootduid[5], rootduid[6],
^~~~~~~~~~~
/usr/src/sys/dev/softraidvar.h:317:56: note: expanded from macro 'DNPRINTF'
#define DNPRINTF(n,x...) do { if (sr_debug & n) printf(x); } while(0)
^
/usr/src/sys/dev/softraid.c:1541:10: error: format specifies type 'unsigned
short' but the argument has type 'u_char' (aka 'unsigned char')
[-Werror,-Wformat]
rootduid[7]);
^~~~~~~~~~~
/usr/src/sys/dev/softraidvar.h:317:56: note: expanded from macro 'DNPRINTF'
#define DNPRINTF(n,x...) do { if (sr_debug & n) printf(x); } while(0)
^
8 errors generated.
*** Error 1 in /home/zeloff/build/bsd (Makefile:1010 'softraid.o')
--