FreeBSDDesktop / kms-drm

the DRM part of the linuxkpi-based KMS
63 stars 26 forks source link

Build error on FreeBSD-13-current #152

Closed ZOleg73 closed 5 years ago

ZOleg73 commented 5 years ago

cc -O2 -pipe -include /root/graphics/kms-drm-5.0-build/drivers/gpu/drm/drm_os_config.h '-DKBUILD_MODNAME="linuxkpi_gplv2"' -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/root/graphics/kms-drm-5.0-build/include -I/root/graphics/kms-drm-5.0-build/linuxkpi/dummy/include -I/root/graphics/kms-drm-5.0-build/linuxkpi/gplv2/include -I/usr/src/sys/compat/linuxkpi/common/include -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -MD -MF.depend.linux_genalloc.o -MTlinux_genalloc.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -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-address-of-packed-member -Wno-pointer-arith -Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-unused-variable -mno-aes -mno-avx -std=iso9899:1999 -c /root/graphics/kms-drm-5.0-build/linuxkpi/gplv2/src/linux_genalloc.c -o linux_genalloc.o /root/graphics/kms-drm-5.0-build/linuxkpi/gplv2/src/linux_genalloc.c:224:48: error: use of undeclared identifier 'next_chunk' list_for_each_entry_rcu(chunk, &pool->chunks, next_chunk) { ^ /root/graphics/kms-drm-5.0-build/linuxkpi/gplv2/src/linux_genalloc.c:310:48: error: use of undeclared identifier 'next_chunk' list_for_each_entry_rcu(chunk, &pool->chunks, next_chunk) { ^ /root/graphics/kms-drm-5.0-build/linuxkpi/gplv2/src/linux_genalloc.c:390:48: error: use of undeclared identifier 'next_chunk' list_for_each_entry_rcu(chunk, &pool->chunks, next_chunk) { ^ /root/graphics/kms-drm-5.0-build/linuxkpi/gplv2/src/linux_genalloc.c:423:50: error: use of undeclared identifier 'next_chunk' list_for_each_entry_rcu(chunk, &(pool)->chunks, next_chunk) ^ /root/graphics/kms-drm-5.0-build/linuxkpi/gplv2/src/linux_genalloc.c:446:50: error: use of undeclared identifier 'next_chunk' list_for_each_entry_rcu(chunk, &(pool)->chunks, next_chunk) { ^ /root/graphics/kms-drm-5.0-build/linuxkpi/gplv2/src/linux_genalloc.c:470:48: error: use of undeclared identifier 'next_chunk' list_for_each_entry_rcu(chunk, &pool->chunks, next_chunk) ^ /root/graphics/kms-drm-5.0-build/linuxkpi/gplv2/src/linux_genalloc.c:489:48: error: use of undeclared identifier 'next_chunk' list_for_each_entry_rcu(chunk, &pool->chunks, next_chunk) ^ 7 errors generated. *** Error code 1

Stop. make[1]: stopped in /root/graphics/kms-drm-5.0-build/linuxkpi *** Error code 1

Stop. make: stopped in /root/graphics/kms-drm-5.0-build

johalun commented 5 years ago

You need https://github.com/FreeBSDDesktop/freebsd-base/tree/drm-v5.0 until things are committed to head.

johalun commented 5 years ago

Or just use the same commit as used by ports, that is (almost) guaranteed to build again head.

johalun commented 5 years ago

Should now compile on older and newer kernels.