DKMS on kernel 3.10.107-pine64
#1
Attempting to install wireguard using DKMS on Armbian Xenial (legacy kernel). I've apt-installed kernel headers, but DKMS is failing to build the wireguard kernel module with the following error:


Code:
DKMS make.log for wireguard-0.0.20180613 for kernel 3.10.107-pine64 (aarch64) Wed Jun 20 12:47:41 PDT 2018 make: Entering directory '/usr/src/linux-headers-3.10.107-pine64' Makefile:581: /usr/src/linux-headers-3.10.107-pine64/arch//Makefile: No such file or directory make: *** No rule to make target '/usr/src/linux-headers-3.10.107-pine64/arch//Makefile'.  Stop. make: Leaving directory '/usr/src/linux-headers-3.10.107-pine64'

It looks like something is missing between 'arch/' and '/Makefile' in the target path.

Any ideas? Something obvious I'm missing?
#2
try going into the source directory and typing

make ARCH=arm64
#3
(06-20-2018, 06:01 PM)evilbunny Wrote: try going into the source directory and typing

make ARCH=arm64

 Result - failure, log below. If it helps, this built with no problem using DKMS on H5 3.10.something(I forget) Kernel in a NanoPi Neo2... I believe it was a Xenial build.
Code:
CC [M]  /usr/src/wireguard-0.0.20180613/main.o In file included from <command-line>:0:0: /usr/src/wireguard-0.0.20180613/compat/compat.h:218:19: error: redefinition of ‘prandom_u32_max’  static inline u32 prandom_u32_max(u32 ep_ro)                    ^ In file included from include/linux/net.h:22:0,                  from include/linux/skbuff.h:27,                  from include/linux/ip.h:20,                  from include/linux/if_tunnel.h:4,                  from include/net/ip_tunnels.h:4,                  from /usr/src/wireguard-0.0.20180613/compat/compat.h:83,                  from <command-line>:0: include/linux/random.h:48:19: note: previous definition of ‘prandom_u32_max’ was here  static inline u32 prandom_u32_max(u32 ep_ro)                    ^ scripts/Makefile.build:308: recipe for target '/usr/src/wireguard-0.0.20180613/main.o' failed make[2]: *** [/usr/src/wireguard-0.0.20180613/main.o] Error 1 Makefile:1228: recipe for target '_module_/usr/src/wireguard-0.0.20180613' failed make[1]: *** [_module_/usr/src/wireguard-0.0.20180613] Error 2 Makefile:36: recipe for target 'module' failed make: *** [module] Error 2
#4
(06-20-2018, 08:44 PM)obrienmd Wrote:
(06-20-2018, 06:01 PM)evilbunny Wrote: try going into the source directory and typing

make ARCH=arm64

 Result - failure, log below. If it helps, this built with no problem using DKMS on H5 3.10.something(I forget) Kernel in a NanoPi Neo2... I believe it was a Xenial build.
Code:
CC [M]  /usr/src/wireguard-0.0.20180613/main.o In file included from <command-line>:0:0: /usr/src/wireguard-0.0.20180613/compat/compat.h:218:19: error: redefinition of ‘prandom_u32_max’  static inline u32 prandom_u32_max(u32 ep_ro)                    ^ In file included from include/linux/net.h:22:0,                  from include/linux/skbuff.h:27,                  from include/linux/ip.h:20,                  from include/linux/if_tunnel.h:4,                  from include/net/ip_tunnels.h:4,                  from /usr/src/wireguard-0.0.20180613/compat/compat.h:83,                  from <command-line>:0: include/linux/random.h:48:19: note: previous definition of ‘prandom_u32_max’ was here  static inline u32 prandom_u32_max(u32 ep_ro)                    ^ scripts/Makefile.build:308: recipe for target '/usr/src/wireguard-0.0.20180613/main.o' failed make[2]: *** [/usr/src/wireguard-0.0.20180613/main.o] Error 1 Makefile:1228: recipe for target '_module_/usr/src/wireguard-0.0.20180613' failed make[1]: *** [_module_/usr/src/wireguard-0.0.20180613] Error 2 Makefile:36: recipe for target 'module' failed make: *** [module] Error 2


Ok, so you got past the previous problem, try ARCH=armhf or just arm
#5
[quote pid='38663' dateline='1529551443']

Ok, so you got past the previous problem, try ARCH=armhf or just arm
[/quote]

Different failures Smile, aarch64 also no-go:


Code:
root@host:/usr/src/wireguard-0.0.20180613# make ARCH=arm  CC [M]  /usr/src/wireguard-0.0.20180613/main.o gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’ gcc: note: valid arguments to ‘-mabi=’ are: ilp32 lp64 gcc: error: unrecognized command line option ‘-msoft-float’ scripts/Makefile.build:308: recipe for target '/usr/src/wireguard-0.0.20180613/main.o' failed make[2]: *** [/usr/src/wireguard-0.0.20180613/main.o] Error 1 Makefile:1228: recipe for target '_module_/usr/src/wireguard-0.0.20180613' failed make[1]: *** [_module_/usr/src/wireguard-0.0.20180613] Error 2 Makefile:36: recipe for target 'module' failed make: *** [module] Error 2 root@host:/usr/src/wireguard-0.0.20180613# make ARCH=armhf Makefile:581: /usr/src/linux-headers-3.10.107-pine64/arch/armhf/Makefile: No such file or directory make[1]: *** No rule to make target '/usr/src/linux-headers-3.10.107-pine64/arch/armhf/Makefile'.  Stop. Makefile:36: recipe for target 'module' failed make: *** [module] Error 2 root@host:/usr/src/wireguard-0.0.20180613# make ARCH=aarch64 Makefile:581: /usr/src/linux-headers-3.10.107-pine64/arch/aarch64/Makefile: No such file or directory make[1]: *** No rule to make target '/usr/src/linux-headers-3.10.107-pine64/arch/aarch64/Makefile'.  Stop. Makefile:36: recipe for target 'module' failed make: *** [module] Error 2
#6
(06-21-2018, 08:38 AM)obrienmd Wrote: Different failures Smile, aarch64 also no-go:

Have you tried older/newer versions? or reported your troubles on the wire guard mailing list?


Possibly Related Threads…
Thread Author Replies Views Last Post
  Programming languages support under PINE64 baryluk 6 20,566 09-23-2020, 11:46 PM
Last Post: Phillip Bell
  PineA64+: Audio in 5.0 Kernel puzzles 6 16,687 11-13-2019, 09:41 AM
Last Post: roel
  Manjaro arm on pine64+ roel 2 10,589 10-19-2019, 05:13 AM
Last Post: roel
  Volumio for PINE64 Released mikelangeloz 11 38,949 03-22-2019, 09:25 AM
Last Post: llungster
  I2S Audio patches for Pine64+ uploaded to GitHub ramstadt 1 6,628 01-19-2019, 11:31 AM
Last Post: ramstadt
  Pine64: Minimal SDL config Max11 3 10,068 01-04-2019, 03:47 PM
Last Post: Max11
  Fedora 27 on Pine64 gregjo 18 56,774 01-02-2019, 10:42 PM
Last Post: heatfanjohn
  Rockpro64 NFS root mount (kernel 4.20) - ethernet help? tenspd137 0 4,926 12-06-2018, 01:14 AM
Last Post: tenspd137
  NVMe and new kernel bjbb17 0 4,386 09-25-2018, 03:39 PM
Last Post: bjbb17
  Real-time linux kernel Artyom 45 124,246 09-11-2018, 01:08 AM
Last Post: zzwpine

Forum Jump:


Users browsing this thread: 1 Guest(s)