06-20-2018, 08:44 PM
(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