[Letux-kernel] build error 5.16-rc3 pvrsgx/1.17.4948957/eurasia_km

Jean Rene Dawin jdawin at math.uni-bielefeld.de
Fri Dec 3 09:48:50 CET 2021


Hi,

when compiling letux-5.16-rc3 with letux_defconfig into a separate build
directory (e.g. make O=/tmp/letux/ ...) I get the following error:

/home/ploi/letux-kernel/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/services4/srvkm/bridged/bridged_pvr_bridge.c:46:10: fatal error: stddef.h: No such file or directory
   46 | #include <stddef.h>
      |          ^~~~~~~~~~
compilation terminated.

It can be fixed with this change:

diff --git a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
index 161018044f2d..3b2a03eb29aa 100644
--- a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
+++ b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
@@ -55,7 +55,7 @@ ccflags-y += \
        -I$(srctree)/$(src)/services4/srvkm/hwdefs \
        -I$(srctree)/$(src)/services4/srvkm/include \
        -I$(srctree)/$(src)/services4/3rdparty/bufferclass_ti \
-       -Iinclude/linux
+       -I$(srctree)/include/linux

 # choose SoC integration variant to choose the right source subtree


Is this a sane approach?

Regards,
Jean Rene


More information about the Letux-kernel mailing list