Closed foureight84 closed 5 years ago
"kernel package linux-headers-4.18.8 is not supported" this sounds like this kernel version in generel doesn't work with wireguard. Can you cross check with a mainline build?
Maybe also this comment helps that wrote you need the full source in https://github.com/M-Bab/linux-kernel-amdgpu-binaries/issues/44
Simple fix sudo su cd /usr/src ; git clone https://github.com/M-Bab/linux-kernel-amdgpu.git # run the above script. done
@M-Bab I'm seeing the same behavior with r8168-dkms – it's not something specific to Wireguard, all DKMS-related packages will fail because Ubuntu kernel builds have different structure. While full source might help, it might be a bit overkill to clone the full repository.
Ah, dkms hasn't been working for me for a little while, might well be this :)
Yeah dkms and this special kernel never played nicely together and I wasn't able to fix that. Well but Wireguard is expected to enter the official kernel soon anyways.
My dkms issue is trying to use virtualbox and anbox, but it's the same sort of error.
Can you try again with the make build?
Tried building the kernel and installing, dkms rebuild seemed to fail with some different errors:
DKMS make.log for virtualbox-5.2.18 for kernel 4.20.0-rc6-18.12.13.amdgpu.ubuntu (x86_64)
Wed 19 Dec 23:40:07 GMT 2018
make: Entering directory '/usr/src/linux-headers-4.20.0-rc6-18.12.13.amdgpu.ubuntu'
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/linux/SUPDrv-linux.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrv.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvGip.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvSem.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvTracer.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPLibAll.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/alloc-r0drv.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/initterm-r0drv.o
Assembler messages:
Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory
make[2]: *** [scripts/Makefile.build:299: /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPLibAll.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Assembler messages:
Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory
make[2]: *** [scripts/Makefile.build:299: /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvSem.o] Error 1
Assembler messages:
Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory
make[2]: *** [scripts/Makefile.build:299: /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/initterm-r0drv.o] Error 1
Assembler messages:
Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory
make[2]: *** [scripts/Makefile.build:299: /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/r0drv/alloc-r0drv.o] Error 1
Assembler messages:
Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory
make[2]: *** [scripts/Makefile.build:299: /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvTracer.o] Error 1
Assembler messages:
Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory
./arch/x86/include/asm/paravirt.h:134: Error: no such instruction: `paravirt_call type="8"clobber="511"pv_opptr="pv_ops+64"'
make[2]: *** [scripts/Makefile.build:299: /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/linux/SUPDrv-linux.o] Error 1
Assembler messages:
Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory
make[2]: *** [scripts/Makefile.build:299: /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvGip.o] Error 1
Assembler messages:
Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory
make[2]: *** [scripts/Makefile.build:299: /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrv.o] Error 1
make[1]: *** [scripts/Makefile.build:539: /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv] Error 2
make: *** [Makefile:1594: _module_/var/lib/dkms/virtualbox/5.2.18/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.20.0-rc6-18.12.13.amdgpu.ubuntu'
I tried wireguard installation with the new 5.0-rc4 kernel. Neither a problem with the Wireguard PPA and DKMS nor with building from source and installing.
Looks like there are missing dependencies in the kernel headers? I am trying to install Wireguard and even tried compiling from source and I'm getting these errors:
Compile error: