FreeBSDDesktop / DEPRECATED-freebsd-base-graphics

Fork of FreeBSD's base repository to work on graphics-stack-related projects
Other
49 stars 13 forks source link

make buildkernel fails on linux_compat.c #148

Closed Beeblebrox-BSD closed 7 years ago

Beeblebrox-BSD commented 7 years ago

kernel build fails for the new patch of /sys/compat/linuxkpi/common/src/linux_compat.c This is on a clean makeworld, no ccache used. Tested on both DRM kernel configs.

Message: ===> linuxkpi (all) cc -target x86_64-unknown-freebsd12.0 --sysroot=/asp/obj/asp/git/srcdrm/tmp -B/asp/obj/asp/git/srcdrm/tmp/usr/bin -O2 -pipe '-DKBUILD_MODNAME="linuxkpi"' -include /asp/git/srcdrm/sys/dev/drm/drm_os_config.h -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/asp/git/srcdrm/sys/compat/linuxkpi/common/include -I/asp/git/srcdrm/sys/contrib/ck/include -DHAVE_KERNEL_OPTION_HEADERS -include /asp/obj/asp/git/srcdrm/sys/KERNGEND/opt_global.h -I. -I/asp/git/srcdrm/sys -fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/asp/obj/asp/git/srcdrm/sys/KERNGEND -MD -MF.depend.linux_compat.o -MTlinux_compat.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -Dprintf=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-error-address-of-packed-member -Wno-pointer-arith -mno-aes -mno-avx -std=iso9899:1999 -c /asp/git/srcdrm/sys/compat/linuxkpi/common/src/linux_compat.c -o linux_compat.o /asp/git/srcdrm/sys/compat/linuxkpi/common/src/linux_compat.c:179:10: error: implicit declaration of function 'sysfs_create_dir' is invalid in C99 [-Werror,-Wimplicit-function-declaration] error = sysfs_create_dir(kobj); ^ /asp/git/srcdrm/sys/compat/linuxkpi/common/src/linux_compat.c:179:10: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] 2 errors generated. *** Error code 1

Beeblebrox-BSD commented 7 years ago

Latest update (ver 80ce2c2f2a7 drm-next) has solved this issue. buldkernel completes successfully. Thanks!