DisplayLink / evdi

Extensible Virtual Display Interface
MIT License
717 stars 187 forks source link

Don't compile on Debian 6.1.20-7 Kernel #412

Open marcelolaia opened 1 year ago

marcelolaia commented 1 year ago

Here is the relevante log part:

In file included from /var/lib/dkms/evdi/1.13.1/build/evdi_modeset.c:28:
/var/lib/dkms/evdi/1.13.1/build/evdi_drm.h:19:10: fatal error: drm.h: Arquivo ou diretório inexistente
   19 | #include "drm.h"
      |          ^~~~~~~
compilation terminated.

Here is the full log:

make.log

displaylink-emajewsk commented 1 year ago

Hi, could you try using our Ubuntu APT repo: https://www.synaptics.com/products/displaylink-graphics/downloads/ubuntu ?

marcelolaia commented 1 year ago

Hi, I tried it now and got these output messages errors:

$ sudo apt install displaylink-driver
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto        
The following additional packages will be installed:
  evdi
Pacotes sugeridos:
  update-notifier-common
Os NOVOS pacotes a seguir serão instalados:
  displaylink-driver evdi
0 pacotes atualizados, 2 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.

(...)

Obter:1 https://www.synaptics.com/sites/default/files/Ubuntu stable/main amd64 evdi amd64 1.13.1-18 [47,4 kB]
Obter:2 https://www.synaptics.com/sites/default/files/Ubuntu stable/non-free amd64 displaylink-driver amd64 5.7.0-129 [5.091 kB]
Baixados 5.138 kB em 6s (861 kB/s)              
A seleccionar pacote anteriormente não seleccionado evdi.
(Lendo banco de dados ... 404643 ficheiros e diretórios atualmente instalados.)
A preparar para desempacotar .../evdi_1.13.1-18_amd64.deb ...
Error: Another EVDI distribution detected
dpkg: erro ao processar o arquivo /var/cache/apt/archives/evdi_1.13.1-18_amd64.deb (--unpack):
 o subprocesso do pacote evdi, novo script pre-installation retornou erro do status de saída 1
A seleccionar pacote anteriormente não seleccionado displaylink-driver.
A preparar para desempacotar .../displaylink-driver_5.7.0-129_amd64.deb ...
dpkg: erro ao processar o arquivo /var/cache/apt/archives/displaylink-driver_5.7.0-129_amd64.deb (--unpack):
 o subprocesso do pacote displaylink-driver, novo script pre-installation retornou erro do status de saída 1
Erros foram encontrados durante o processamento de:
 /var/cache/apt/archives/evdi_1.13.1-18_amd64.deb
 /var/cache/apt/archives/displaylink-driver_5.7.0-129_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Isn't another evdi installed.

$ sudo dkms status
$

Thank you so much!

grinco commented 1 year ago

@displaylink-emajewsk how about the non-debian users? I am unable to compile it on opensuse similar to https://github.com/DisplayLink/evdi/issues/415 due to missing headers (seems to be removed in newer kernel versions).

displaylink-emajewsk commented 1 year ago

@marcelolaia There's most likely a standalone instance of our drivers on your machine in /opt/displaylink

You can run sudo /opt/displaylink/displaylink-installer uninstall to remove it. Reboot your machine and try running sudo apt install displaylink-driver again.

marcelolaia commented 1 year ago

@displaylink-emajewsk so thanks for your time in help me!

I purged the /opt/displaylink/

The correct command in my machine was: sudo /opt/displaylink/displaylink-installer.sh uninstall instead sudo /opt/displaylink/displaylink-installer uninstall

Here is the step by step I did

$ sudo /opt/displaylink/displaylink-installer.sh uninstall
$ sudo dkms status
$ ls /opt/
$ sudo shutdown -r now

$ sudo nano /etc/apt/sources.list.d/synaptics.list uncomment all lines in there

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install displaylink-driver
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto        
The following additional packages will be installed:
  evdi
Pacotes sugeridos:
  update-notifier-common
Os NOVOS pacotes a seguir serão instalados:
  displaylink-driver evdi
0 pacotes atualizados, 2 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
É preciso baixar 0 B/5.138 kB de arquivos.
Depois desta operação, 0 B adicionais de espaço em disco serão usados.
Você quer continuar? [S/n] 
A seleccionar pacote anteriormente não seleccionado evdi.
(Lendo banco de dados ... 404690 ficheiros e diretórios atualmente instalados.)
A preparar para desempacotar .../evdi_1.13.1-18_amd64.deb ...
A descompactar evdi (1.13.1-18) ...
A preparar para desempacotar .../displaylink-driver_5.7.0-129_amd64.deb ...
A descompactar displaylink-driver (5.7.0-129) ...
Configurando evdi (1.13.1-18) ...
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Creating symlink /var/lib/dkms/evdi/1.13.1/source -> /usr/src/evdi-1.13.1

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.1.0-7-amd64 all INCLUDEDIR=/lib/modules/6.1.0-7-amd64/build/include KVERSION=6.1.0-7-amd64 DKMS_BU
ILD=1...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-7-amd64 (x86_64)
Consult /var/lib/dkms/evdi/1.13.1/build/make.log for more information.
dpkg: erro ao processar o pacote evdi (--configure):
 o subprocesso instalado, do pacote evdi, o script post-installation retornou erro do status de saída 10
dpkg: problemas com dependências impedem a configuração de displaylink-driver:
 displaylink-driver depende de evdi (>= 1.13.1); porém:
  Pacote evdi não está configurado ainda.
 displaylink-driver depende de evdi (<< 1.14.0); porém:
  Pacote evdi não está configurado ainda.

dpkg: erro ao processar o pacote displaylink-driver (--configure):
 problemas de dependência - deixando desconfigurado
Erros foram encontrados durante o processamento de:
 evdi
 displaylink-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ cat /var/lib/dkms/evdi/1.13.1/build/make.log

DKMS make.log for evdi-1.13.1 for kernel 6.1.0-7-amd64 (x86_64)
seg 24 abr 2023 12:25:31 -03
make KBUILD_VERBOSE=1 M=/var/lib/dkms/evdi/1.13.1/build SUBDIRS=/var/lib/dkms/evdi/1.13.1/build SRCROOT=/var/lib/dkms/evdi/1.13.1/build CONFIG_MODULE_SIG= -C /lib/modules/6.1.0-7-amd64/build modules
make[1]: Entrando no diretório '/usr/src/linux-headers-6.1.0-7-amd64'

make -f /usr/src/linux-headers-6.1.0-7-common/scripts/Makefile.build obj=/var/lib/dkms/evdi/1.13.1/build need-builtin=1 need-modorder=1 
  printf '%s
'   evdi_platform_drv.o evdi_platform_dev.o evdi_sysfs.o evdi_modeset.o evdi_connector.o evdi_encoder.o evdi_drm_drv.o evdi_fb.o evdi_gem.o evdi_painter.o evdi_params.o evdi_cursor.o evdi_debug.o evdi_i2c.o evdi_ioc32.o | awk '!x[$0]++ { print("/var/lib/dkms/evdi/1.13.1/build/"$0) }' > /var/lib/dkms/evdi/1.13.1/build/evdi.mod
   gcc-12 -Wp,-MMD,/var/lib/dkms/evdi/1.13.1/build/.evdi_platform_drv.o.d -nostdinc -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-7-common/include -I./include -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-7-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.1.0-7-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -Iinclude/uapi/drm -Iinclude/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_platform_drv"' -DKBUILD_MODNAME='"evdi"' -D__KBUILD_MODNAME=kmod_evdi -c -o /var/lib/dkms/evdi/1.13.1/build/evdi_platform_drv.o /var/lib/dkms/evdi/1.13.1/build/evdi_platform_drv.c   ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --orc --retpoline --rethunk --sls --static-call --uaccess   --module /var/lib/dkms/evdi/1.13.1/build/evdi_platform_drv.o
   gcc-12 -Wp,-MMD,/var/lib/dkms/evdi/1.13.1/build/.evdi_platform_dev.o.d -nostdinc -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-7-common/include -I./include -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-7-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.1.0-7-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -Iinclude/uapi/drm -Iinclude/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_platform_dev"' -DKBUILD_MODNAME='"evdi"' -D__KBUILD_MODNAME=kmod_evdi -c -o /var/lib/dkms/evdi/1.13.1/build/evdi_platform_dev.o /var/lib/dkms/evdi/1.13.1/build/evdi_platform_dev.c   ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --orc --retpoline --rethunk --sls --static-call --uaccess   --module /var/lib/dkms/evdi/1.13.1/build/evdi_platform_dev.o

   gcc-12 -Wp,-MMD,/var/lib/dkms/evdi/1.13.1/build/.evdi_sysfs.o.d -nostdinc -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-7-common/include -I./include -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-7-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.1.0-7-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -Iinclude/uapi/drm -Iinclude/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_sysfs"' -DKBUILD_MODNAME='"evdi"' -D__KBUILD_MODNAME=kmod_evdi -c -o /var/lib/dkms/evdi/1.13.1/build/evdi_sysfs.o /var/lib/dkms/evdi/1.13.1/build/evdi_sysfs.c   ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --orc --retpoline --rethunk --sls --static-call --uaccess   --module /var/lib/dkms/evdi/1.13.1/build/evdi_sysfs.o
   gcc-12 -Wp,-MMD,/var/lib/dkms/evdi/1.13.1/build/.evdi_modeset.o.d -nostdinc -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-7-common/include -I./include -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-7-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.1.0-7-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -Iinclude/uapi/drm -Iinclude/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_modeset"' -DKBUILD_MODNAME='"evdi"' -D__KBUILD_MODNAME=kmod_evdi -c -o /var/lib/dkms/evdi/1.13.1/build/evdi_modeset.o /var/lib/dkms/evdi/1.13.1/build/evdi_modeset.c   ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --orc --retpoline --rethunk --sls --static-call --uaccess   --module /var/lib/dkms/evdi/1.13.1/build/evdi_modeset.o
  /usr/src/linux-headers-6.1.0-7-common/scripts/check-local-export /var/lib/dkms/evdi/1.13.1/build/evdi_sysfs.o
   { echo ; echo '/var/lib/dkms/evdi/1.13.1/build/evdi_sysfs.o: $(wildcard ./tools/objtool/objtool)' ; } >> /var/lib/dkms/evdi/1.13.1/build/.evdi_sysfs.o.cmd
  if nm /var/lib/dkms/evdi/1.13.1/build/evdi_sysfs.o 2>/dev/null | grep -q __ksymtab; then  gcc-12 -E -D__GENKSYMS__ -Wp,-MMD,/var/lib/dkms/evdi/1.13.1/build/.evdi_sysfs.o.d -nostdinc -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-7-common/include -I./include -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-7-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.1.0-7-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -Iinclude/uapi/drm -Iinclude/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_sysfs"' -DKBUILD_MODNAME='"evdi"' -D__KBUILD_MODNAME=kmod_evdi /var/lib/dkms/evdi/1.13.1/build/evdi_sysfs.c | scripts/genksyms/genksyms   -r /dev/null >> /var/lib/dkms/evdi/1.13.1/build/.evdi_sysfs.o.cmd; fi
   gcc-12 -Wp,-MMD,/var/lib/dkms/evdi/1.13.1/build/.evdi_connector.o.d -nostdinc -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-7-common/include -I./include -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-7-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.1.0-7-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -Iinclude/uapi/drm -Iinclude/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_connector"' -DKBUILD_MODNAME='"evdi"' -D__KBUILD_MODNAME=kmod_evdi -c -o /var/lib/dkms/evdi/1.13.1/build/evdi_connector.o /var/lib/dkms/evdi/1.13.1/build/evdi_connector.c   ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --orc --retpoline --rethunk --sls --static-call --uaccess   --module /var/lib/dkms/evdi/1.13.1/build/evdi_connector.o
  /usr/src/linux-headers-6.1.0-7-common/scripts/check-local-export /var/lib/dkms/evdi/1.13.1/build/evdi_platform_drv.o
   { echo ; echo '/var/lib/dkms/evdi/1.13.1/build/evdi_platform_drv.o: $(wildcard ./tools/objtool/objtool)' ; } >> /var/lib/dkms/evdi/1.13.1/build/.evdi_platform_drv.o.cmd
  if nm /var/lib/dkms/evdi/1.13.1/build/evdi_platform_drv.o 2>/dev/null | grep -q __ksymtab; then  gcc-12 -E -D__GENKSYMS__ -Wp,-MMD,/var/lib/dkms/evdi/1.13.1/build/.evdi_platform_drv.o.d -nostdinc -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-7-common/include -I./include -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-7-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.1.0-7-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -Iinclude/uapi/drm -Iinclude/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_platform_drv"' -DKBUILD_MODNAME='"evdi"' -D__KBUILD_MODNAME=kmod_evdi /var/lib/dkms/evdi/1.13.1/build/evdi_platform_drv.c | scripts/genksyms/genksyms   -r /dev/null >> /var/lib/dkms/evdi/1.13.1/build/.evdi_platform_drv.o.cmd; fi
   gcc-12 -Wp,-MMD,/var/lib/dkms/evdi/1.13.1/build/.evdi_encoder.o.d -nostdinc -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-7-common/include -I./include -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-7-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.1.0-7-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -Iinclude/uapi/drm -Iinclude/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_encoder"' -DKBUILD_MODNAME='"evdi"' -D__KBUILD_MODNAME=kmod_evdi -c -o /var/lib/dkms/evdi/1.13.1/build/evdi_encoder.o /var/lib/dkms/evdi/1.13.1/build/evdi_encoder.c   ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --orc --retpoline --rethunk --sls --static-call --uaccess   --module /var/lib/dkms/evdi/1.13.1/build/evdi_encoder.o
In file included from /var/lib/dkms/evdi/1.13.1/build/evdi_modeset.c:28:
/var/lib/dkms/evdi/1.13.1/build/evdi_drm.h:19:10: fatal error: drm.h: Arquivo ou diretório inexistente
   19 | #include "drm.h"
      |          ^~~~~~~
compilation terminated.
make[2]: *** [/usr/src/linux-headers-6.1.0-7-common/scripts/Makefile.build:255: /var/lib/dkms/evdi/1.13.1/build/evdi_modeset.o] Erro 1
make[2]: ** Esperando que outros processos terminem.
  /usr/src/linux-headers-6.1.0-7-common/scripts/check-local-export /var/lib/dkms/evdi/1.13.1/build/evdi_platform_dev.o
   { echo ; echo '/var/lib/dkms/evdi/1.13.1/build/evdi_platform_dev.o: $(wildcard ./tools/objtool/objtool)' ; } >> /var/lib/dkms/evdi/1.13.1/build/.evdi_platform_dev.o.cmd
  if nm /var/lib/dkms/evdi/1.13.1/build/evdi_platform_dev.o 2>/dev/null | grep -q __ksymtab; then  gcc-12 -E -D__GENKSYMS__ -Wp,-MMD,/var/lib/dkms/evdi/1.13.1/build/.evdi_platform_dev.o.d -nostdinc -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-7-common/include -I./include -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-7-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.1.0-7-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -Iinclude/uapi/drm -Iinclude/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_platform_dev"' -DKBUILD_MODNAME='"evdi"' -D__KBUILD_MODNAME=kmod_evdi /var/lib/dkms/evdi/1.13.1/build/evdi_platform_dev.c | scripts/genksyms/genksyms   -r /dev/null >> /var/lib/dkms/evdi/1.13.1/build/.evdi_platform_dev.o.cmd; fi
  /usr/src/linux-headers-6.1.0-7-common/scripts/check-local-export /var/lib/dkms/evdi/1.13.1/build/evdi_connector.o
   { echo ; echo '/var/lib/dkms/evdi/1.13.1/build/evdi_connector.o: $(wildcard ./tools/objtool/objtool)' ; } >> /var/lib/dkms/evdi/1.13.1/build/.evdi_connector.o.cmd
  if nm /var/lib/dkms/evdi/1.13.1/build/evdi_connector.o 2>/dev/null | grep -q __ksymtab; then  gcc-12 -E -D__GENKSYMS__ -Wp,-MMD,/var/lib/dkms/evdi/1.13.1/build/.evdi_connector.o.d -nostdinc -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-7-common/include -I./include -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-7-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.1.0-7-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -Iinclude/uapi/drm -Iinclude/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_connector"' -DKBUILD_MODNAME='"evdi"' -D__KBUILD_MODNAME=kmod_evdi /var/lib/dkms/evdi/1.13.1/build/evdi_connector.c | scripts/genksyms/genksyms   -r /dev/null >> /var/lib/dkms/evdi/1.13.1/build/.evdi_connector.o.cmd; fi
  /usr/src/linux-headers-6.1.0-7-common/scripts/check-local-export /var/lib/dkms/evdi/1.13.1/build/evdi_encoder.o
   { echo ; echo '/var/lib/dkms/evdi/1.13.1/build/evdi_encoder.o: $(wildcard ./tools/objtool/objtool)' ; } >> /var/lib/dkms/evdi/1.13.1/build/.evdi_encoder.o.cmd

  if nm /var/lib/dkms/evdi/1.13.1/build/evdi_encoder.o 2>/dev/null | grep -q __ksymtab; then  gcc-12 -E -D__GENKSYMS__ -Wp,-MMD,/var/lib/dkms/evdi/1.13.1/build/.evdi_encoder.o.d -nostdinc -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-7-common/include -I./include -I/usr/src/linux-headers-6.1.0-7-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-7-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/kconfig.h -include /usr/src/linux-headers-6.1.0-7-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-6.1.0-7-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -Iinclude/uapi/drm -Iinclude/drm  -DMODULE  -DKBUILD_BASENAME='"evdi_encoder"' -DKBUILD_MODNAME='"evdi"' -D__KBUILD_MODNAME=kmod_evdi /var/lib/dkms/evdi/1.13.1/build/evdi_encoder.c | scripts/genksyms/genksyms   -r /dev/null >> /var/lib/dkms/evdi/1.13.1/build/.evdi_encoder.o.cmd; fi
make[1]: *** [/usr/src/linux-headers-6.1.0-7-common/Makefile:2037: /var/lib/dkms/evdi/1.13.1/build] Erro 2
make[1]: Saindo do diretório '/usr/src/linux-headers-6.1.0-7-amd64'

make: *** [Makefile:38: all] Erro 2

Are there a chance to test evdi 1.14.0?

pitch-d commented 1 year ago

I'm having the same problem on Debian 5.10.162-1 kernel (Bullseye)

sepek commented 1 year ago

The workaround should be to change in /usr/src/evdi-1.13.1/evdi_drm.h the line:

#include "drm.h"

to

#include <drm/drm.h>

Remove the dkms module again to force a recreation:

dkms remove evdi/1.13.1

And retrigger the install:

apt install -f
grinco commented 1 year ago

The workaround should be to change in /usr/src/evdi-1.13.1/evdi_drm.h the line:

#include "drm.h"

to

#include <drm/drm.h>

Remove the dkms module again to force a recreation:

dkms remove evdi/1.13.1

And retrigger the install:

apt install -f

Can confirm it working on both openSUSE leap and tumbleweed. The quality of image, however, is quite terrible. It's slow and looks compressed making the dock barely usable...

displaylink-emajewsk commented 1 year ago

@sepek Oh, good catch. :) This seems to work on all our platforms. I went for the flags in the Makefile, which we recently changed for ChromeOS.