Re: Problem compiling world

From: 内藤祐一郎 <naito.yuichiro_at_gmail.com>
Date: Fri, 3 Sep 2021 10:59:09 +0900
Hi.

I see the same problem on my current box.
Just adding ‘kconfig.h’ in the pkg-plist file works for me.
Would you try the following patch?

diff --git a/graphics/drm-current-kmod/pkg-plist b/graphics/drm-current-kmod/pkg-plist
index 45ab906cef7c..6a77f568e058 100644
--- a/graphics/drm-current-kmod/pkg-plist
+++ b/graphics/drm-current-kmod/pkg-plist
_at__at_ -2187,6 +2187,7 _at__at_
 %%SOURCE%%%%KMODSRC%%/linuxkpi/dummy/include/linux/input.h
 %%SOURCE%%%%KMODSRC%%/linuxkpi/dummy/include/linux/intel-iommu.h
 %%SOURCE%%%%KMODSRC%%/linuxkpi/dummy/include/linux/io-64-nonatomic-lo-hi.h
+%%SOURCE%%%%KMODSRC%%/linuxkpi/dummy/include/linux/kconfig.h
 %%SOURCE%%%%KMODSRC%%/linuxkpi/dummy/include/linux/kfifo.h
 %%SOURCE%%%%KMODSRC%%/linuxkpi/dummy/include/linux/kgdb.h
 %%SOURCE%%%%KMODSRC%%/linuxkpi/dummy/include/linux/list_sort.h


> 2021/05/29 17:25、Filippo Moretti via current <current_at_freebsd.org>のメール:
> 
> I have the following error while compiling world:--- linux_genalloc.o ---In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src /linux_genalloc.c:35:In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/interrup t.h:35:In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/inc lude/linux/device.h:4:In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h :36:In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kobject. h:36:/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/kernel.h:12 :10: fatal error: 'linux/kconfig.h' file not found#include ^~~~~~~~~~~~~~~~~--- linux_compat.o ---1 error generated.*** [linux_compat.o] Error code 1make[4]: stopped in /usr/local/sys/modules/drm-current-kmod/linuxkpimake[1]: stopped in /usr/srcmake: stopped in /usr/src[root_at_sting /usr/src]# 
> 
> 
> 
> 
> FreeBSD sting 14.0-CURRENT FreeBSD 14.0-CURRENT #38 main-n246776-f17a5900850: Thu May 20 20:40:36 CEST 2021 root_at_sting:/usr/obj/usr/src/amd64.amd64/sys/STING amd64 The error is repeatable and make cleandir did not solve the problem.Filippo

—
Yuichiro NAITO
naito.yuichiro_at_gmail.com
Received on Fri Sep 03 2021 - 01:59:09 UTC

Original text of this message