errors building 0.0.20170706 and later with Linux 3.14.0

Jaron Kent-Dobias jaron-wg at kent-dobias.com
Thu Jul 27 21:57:34 CEST 2017


Sorry, I was subscribed but with an different email address!

On Thu, Jul 27, 2017 at 08:08:47PM +0200, Jason A. Donenfeld wrote:
> The latest snapshot of WireGuard is 0.0.20170726. Can you tell me if
> that fixes the issue for you? Likely not, but I'd be interested in the
> newer build log.

The newer build log is attached.

> Additionally, could you tell me why you're running 3.14, and what
> package you're using to get that in Arch? Or, even better, a link to
> the kernel sources of that package.

I'm using an ARM machine, running the latest kernel built for the
Archlinux ARM project for my specific chromebook.

The kernel package: https://archlinuxarm.org/packages/armv7h/linux-veyron

Jaron

-------------- next part --------------
DKMS make.log for wireguard-0.0.20170726 for kernel 3.14.0-26-ARCH (armv7l)
Wed Jul 26 08:59:37 EDT 2017
make: Entering directory '/usr/lib/modules/3.14.0-26-ARCH/build'
  LD      /var/lib/dkms/wireguard/0.0.20170726/build/built-in.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20170726/build/main.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20170726/build/device.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20170726/build/noise.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20170726/build/peer.o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:144:0: warning: "netdev_alloc_pcpu_stats" redefined
 #define netdev_alloc_pcpu_stats(type)     \
 
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:144:0: warning: "netdev_alloc_pcpu_stats" redefined
 #define netdev_alloc_pcpu_stats(type)     \
 
In file included from include/net/ip_tunnels.h:5:0,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/netdevice.h:1795:0: note: this is the location of the previous definition
 #define netdev_alloc_pcpu_stats(type)    \
 
In file included from include/net/ip_tunnels.h:5:0,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/netdevice.h:1795:0: note: this is the location of the previous definition
 #define netdev_alloc_pcpu_stats(type)    \
 
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:307:21: error: redefinition of ?kvmalloc?
 static inline void *kvmalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:307:21: error: redefinition of ?kvmalloc?
 static inline void *kvmalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
                 from include/linux/dmaengine.h:28,
                 from include/linux/skbuff.h:31,
                 from include/linux/ip.h:20,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/mm.h:379:21: note: previous definition of ?kvmalloc? was here
 static inline void *kvmalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
                 from include/linux/dmaengine.h:28,
                 from include/linux/skbuff.h:31,
                 from include/linux/ip.h:20,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/mm.h:379:21: note: previous definition of ?kvmalloc? was here
 static inline void *kvmalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:321:21: error: redefinition of ?kvzalloc?
 static inline void *kvzalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:321:21: error: redefinition of ?kvzalloc?
 static inline void *kvzalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
                 from include/linux/dmaengine.h:28,
                 from include/linux/skbuff.h:31,
                 from include/linux/ip.h:20,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/mm.h:387:21: note: previous definition of ?kvzalloc? was here
 static inline void *kvzalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
                 from include/linux/dmaengine.h:28,
                 from include/linux/skbuff.h:31,
                 from include/linux/ip.h:20,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/mm.h:387:21: note: previous definition of ?kvzalloc? was here
 static inline void *kvzalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:144:0: warning: "netdev_alloc_pcpu_stats" redefined
 #define netdev_alloc_pcpu_stats(type)     \
 
In file included from include/net/ip_tunnels.h:5:0,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/netdevice.h:1795:0: note: this is the location of the previous definition
 #define netdev_alloc_pcpu_stats(type)    \
 
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:144:0: warning: "netdev_alloc_pcpu_stats" redefined
 #define netdev_alloc_pcpu_stats(type)     \
 
In file included from include/net/ip_tunnels.h:5:0,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/netdevice.h:1795:0: note: this is the location of the previous definition
 #define netdev_alloc_pcpu_stats(type)    \
 
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:307:21: error: redefinition of ?kvmalloc?
 static inline void *kvmalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
                 from include/linux/dmaengine.h:28,
                 from include/linux/skbuff.h:31,
                 from include/linux/ip.h:20,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/mm.h:379:21: note: previous definition of ?kvmalloc? was here
 static inline void *kvmalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:321:21: error: redefinition of ?kvzalloc?
 static inline void *kvzalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
                 from include/linux/dmaengine.h:28,
                 from include/linux/skbuff.h:31,
                 from include/linux/ip.h:20,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/mm.h:387:21: note: previous definition of ?kvzalloc? was here
 static inline void *kvzalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:307:21: error: redefinition of ?kvmalloc?
 static inline void *kvmalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
                 from include/linux/dmaengine.h:28,
                 from include/linux/skbuff.h:31,
                 from include/linux/ip.h:20,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/mm.h:379:21: note: previous definition of ?kvmalloc? was here
 static inline void *kvmalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:321:21: error: redefinition of ?kvzalloc?
 static inline void *kvzalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
In file included from include/linux/scatterlist.h:6:0,
                 from include/linux/dmaengine.h:28,
                 from include/linux/skbuff.h:31,
                 from include/linux/ip.h:20,
                 from include/linux/if_tunnel.h:4,
                 from include/net/ip_tunnels.h:4,
                 from /var/lib/dkms/wireguard/0.0.20170726/build/compat/compat.h:71,
                 from <command-line>:0:
include/linux/mm.h:387:21: note: previous definition of ?kvzalloc? was here
 static inline void *kvzalloc(size_t size, gfp_t flags)
                     ^~~~~~~~
make[1]: *** [scripts/Makefile.build:308: /var/lib/dkms/wireguard/0.0.20170726/build/main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.build:308: /var/lib/dkms/wireguard/0.0.20170726/build/peer.o] Error 1
make[1]: *** [scripts/Makefile.build:308: /var/lib/dkms/wireguard/0.0.20170726/build/device.o] Error 1
make[1]: *** [scripts/Makefile.build:308: /var/lib/dkms/wireguard/0.0.20170726/build/noise.o] Error 1
make: *** [Makefile:1298: _module_/var/lib/dkms/wireguard/0.0.20170726/build] Error 2
make: Leaving directory '/usr/lib/modules/3.14.0-26-ARCH/build'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20170727/1ac325be/attachment.asc>


More information about the WireGuard mailing list