lampra Posted December 9, 2017 Posted December 9, 2017 I tried to build the wirguard module but it seems to fail on cubietruck (Armbian 5.31) # cat /var/lib/dkms/wireguard/0.0.20171127-1/build/make.log DKMS make.log for wireguard-0.0.20171127-1 for kernel 4.11.6-sunxi (armv7l) Sat 09 Dec 2017 11:51:26 μμ EET make: Entering directory '/usr/src/linux-headers-4.11.6-sunxi' LD /var/lib/dkms/wireguard/0.0.20171127-1/build/built-in.o CC [M] /var/lib/dkms/wireguard/0.0.20171127-1/build/main.o /bin/sh: 1: ./scripts/recordmcount: not found scripts/Makefile.build:294: recipe for target '/var/lib/dkms/wireguard/0.0.20171127-1/build/main.o' failed make[1]: *** [/var/lib/dkms/wireguard/0.0.20171127-1/build/main.o] Error 127 Makefile:1492: recipe for target '_module_/var/lib/dkms/wireguard/0.0.20171127-1/build' failed make: *** [_module_/var/lib/dkms/wireguard/0.0.20171127-1/build] Error 2 make: Leaving directory '/usr/src/linux-headers-4.11.6-sunxi' Armbianmonitor -u Any idea?
lampra Posted December 10, 2017 Author Posted December 10, 2017 Compiling from source without dkms also fails make CC [M] /Downloads/WireGuard-0.0.20171127/src/device.o /bin/sh: 1: ./scripts/recordmcount: not found scripts/Makefile.build:294: recipe for target '/Downloads/WireGuard-0.0.20171127/src/device.o' failed make[2]: *** [/Downloads/WireGuard-0.0.20171127/src/device.o] Error 127 Makefile:1492: recipe for target '_module_/Downloads/WireGuard-0.0.20171127/src' failed make[1]: *** [_module_/Downloads/WireGuard-0.0.20171127/src] Error 2 Makefile:32: recipe for target 'module' failed make: *** [module] Error 2
lampra Posted December 10, 2017 Author Posted December 10, 2017 after digging a bit, it seems that we need make modules_prepare for the kernel headers but this also fails root@cubietruck:/usr/src/linux-headers-4.11.6-sunxi# make modules_prepare make[1]: *** No rule to make target 'arch/arm/tools/syscall.tbl', needed by 'arch/arm/include/generated/uapi/asm/unistd-common.h'. Stop. arch/arm/Makefile:316: recipe for target 'archheaders' failed make: *** [archheaders] Error 2 root@cubietruck:/usr/src/linux-headers-4.11.6-sunxi#
lampra Posted December 17, 2017 Author Posted December 17, 2017 For reference, on debian stretch next, the module compiles and works fine on cubietruck and kernel 4.14.4-sunxi
Recommended Posts