control: reassign -1 src:linux
control: affects -1 virtualbox-guest-dkms
control: found -1 5.2.9-1


On Mon, 19 Aug 2019 19:02:52 +0200 Raphael Hertzog <hert...@debian.org> wrote:
> On Sun, 11 Aug 2019, Christian Marillat wrote:
> > But bevare fixind the include file path (drm/ttm/ttm_page_alloc.h) doesn't
> > work at all the virtualbox doesn't start.
> 



Hello, for some reasons, the directory "include/drm" is not correctly used from 
Makefile in -common and this leads to a build failure

   gcc-8 -Wp,-MD,/virtualbox-guest-6.0.10/vboxvideo/.vbox_hgsmi.o.d  -nostdinc 
-isystem /usr/lib/gcc/x86_64-linux-gnu/8/include 
-I/usr/src/linux-headers-5.2.0-2-common/arch/x86/include 
-I./arch/x86/include/generated -I/usr/src/linux-headers-5.2.0-2-common/include 
-I./include -I/usr/src/linux-headers-5.2.0-2-common/arch/x86/include/uapi 
-I./arch/x86/include/generated/uapi 
-I/usr/src/linux-headers-5.2.0-2-common/include/uapi -I./include/generated/uapi 
-include /usr/src/linux-headers-5.2.0-2-common/include/linux/kconfig.h -include 
/usr/src/linux-headers-5.2.0-2-common/include/linux/compiler_types.h 
-D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs 
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE 
-Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security 
-std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 
-falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 
-mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel 
-DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 
-DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 
-DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 
-DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables 
-mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables 
-fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation 
-Wno-format-overflow -O2 --param=allow-store-data-races=0 
-Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable 
-Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount 
-mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla 
-Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow 
-fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack 
-Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init 
-fmacro-prefix-map=/usr/src/linux-headers-5.2.0-2-common/= 
-Wno-packed-not-aligned -I/usr/src/linux-headers-5.2.0-2-common/include 
-I/virtualbox-guest-6.0.10/vboxvideo/ -Iinclude/drm -D__KERNEL__ -DMODULE 
-DRT_WITHOUT_PRAGMA_ONCE -DRT_ARCH_AMD64  -DMODULE  
-DKBUILD_BASENAME='"vbox_hgsmi"' -DKBUILD_MODNAME='"vboxvideo"' -c -o 
/virtualbox-guest-6.0.10/vboxvideo/vbox_hgsmi.o 
/virtualbox-guest-6.0.10/vboxvideo/vbox_hgsmi.c
/virtualbox-guest-6.0.10/vboxvideo/vbox_ttm.c:31:10: fatal error: 
ttm/ttm_page_alloc.h: No such file or directory
 #include <ttm/ttm_page_alloc.h>
          ^~~~~~~~~~~~~~~~~~~~~~


this works:

diff -rup /Makefile /usr/src/linux-headers-5.2.0-2-common/Makefile 
--- /Makefile   2019-08-20 13:53:45.407304601 +0000
+++ /usr/src/linux-headers-5.2.0-2-common/Makefile      2019-08-20 
13:58:16.887902668 +0000
@@ -450,6 +450,7 @@ LINUXINCLUDE    := \
                -I$(objtree)/arch/$(SRCARCH)/include/generated \
                $(if $(filter .,$(srctree)),,-I$(srctree)/include) \
                -I$(objtree)/include \
+               -I$(srctree)/include/drm \
                $(USERINCLUDE)
 
 KBUILD_AFLAGS   := -D__ASSEMBLY__ -fno-PIE


but for sure it might be not a real solution, just a workaround I can't 
understand yet...

Ben, do you have any clue? should the code include <drm/ttm/ttm_page_alloc.h> 
instead?

I admit I'm lost in this bug...

G.

Reply via email to