Hi,
I encountered an error when trying to compile a custom kernel. I've tried compiling using GENERIC and my custom configuration with different errors. The source is at revision 252359.
GENERIC
MYKERNEL
Anything that I might have done wrong? I didn't encountered any problem on my other systems.
Thanks.
I encountered an error when trying to compile a custom kernel. I've tried compiling using GENERIC and my custom configuration with different errors. The source is at revision 252359.
GENERIC
Code:
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror /usr/src/sys/fs/nfsserver/nfs_nfsdport.c
cc1: warnings being treated as errors
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c: In function 'nfsrv_sattr':
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2313: warning: implicit declaration of function 'NFSGETTIME'
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2313: warning: nested extern declaration of 'NFSGETTIME' [-Wnested-externs]
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c: In function 'nfsv4_sattr':
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2443: warning: passing argument 1 of 'nfsv4_strtouid' from incompatible pointer type
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2443: warning: passing argument 2 of 'nfsv4_strtouid' makes pointer from integer without a cast
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2443: warning: passing argument 3 of 'nfsv4_strtouid' makes integer from pointer without a cast
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2443: warning: passing argument 4 of 'nfsv4_strtouid' from incompatible pointer type
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2443: error: too few arguments to function 'nfsv4_strtouid'
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2469: warning: passing argument 1 of 'nfsv4_strtogid' from incompatible pointer type
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2469: warning: passing argument 2 of 'nfsv4_strtogid' makes pointer from integer without a cast
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2469: warning: passing argument 3 of 'nfsv4_strtogid' makes integer from pointer without a cast
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2469: warning: passing argument 4 of 'nfsv4_strtogid' from incompatible pointer type
/usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2469: error: too few arguments to function 'nfsv4_strtogid'
*** [nfs_nfsdport.o] Error code 1
Stop in /usr/obj/usr/src/sys/GENERIC.
*** [buildkernel] Error code 1
Stop in /usr/src.
*** [buildkernel] Error code 1
Stop in /usr/src.
MYKERNEL
Code:
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror /usr/src/sys/vm/vm_map.c
cc1: warnings being treated as errors
/usr/src/sys/vm/vm_map.c:731: warning: no previous prototype for 'vmspace_wired_count' [-Wmissing-prototypes]
*** [vm_map.o] Error code 1
Stop in /usr/obj/usr/src/sys/MYKERNEL.
*** [buildkernel] Error code 1
Stop in /usr/src.
*** [buildkernel] Error code 1
Stop in /usr/src.
Anything that I might have done wrong? I didn't encountered any problem on my other systems.
Thanks.