DKMS build failure 1.0.20200623 on Ubuntu 16.04 kernel 4.4.0-159-generic x86_64

Felix Tang felix.gofaster at gmail.com
Sun Jun 28 16:04:27 CEST 2020


Hello. Updating Wireguard from PPA fails.


$ sudo apt list --upgradable
Listing... Done
wireguard-dkms/xenial,xenial 1.0.20200623-1~16.04 all [upgradable
from: 1.0.20200611-0ppa1~16.04]

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  wireguard-dkms
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 252 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ppa.launchpad.net/wireguard/wireguard/ubuntu xenial/main
amd64 wireguard-dkms all 1.0.20200623-1~16.04 [252 kB]
Fetched 252 kB in 0s (395 kB/s)
(Reading database ... 309479 files and directories currently installed.)
Preparing to unpack .../wireguard-dkms_1.0.20200623-1~16.04_all.deb ...

------------------------------
Deleting module version: 1.0.20200611
completely from the DKMS tree.
------------------------------
Done.
Unpacking wireguard-dkms (1.0.20200623-1~16.04) over
(1.0.20200611-0ppa1~16.04) ...
Setting up wireguard-dkms (1.0.20200623-1~16.04) ...
Loading new wireguard-1.0.20200623 DKMS files...
Building for 4.4.0-159-generic and 4.4.0-161-generic
Building initial module for 4.4.0-159-generic
Error! Bad return status for module build on kernel: 4.4.0-159-generic (x86_64)
Consult /var/lib/dkms/wireguard/1.0.20200623/build/make.log for more
information.

====

$cat /var/lib/dkms/wireguard/1.0.20200623/build/make.log

DKMS make.log for wireguard-1.0.20200623 for kernel 4.4.0-159-generic (x86_64)
Sun Jun 28 09:05:14 EDT 2020
make: Entering directory '/usr/src/linux-headers-4.4.0-159-generic'
  LD      /var/lib/dkms/wireguard/1.0.20200623/build/built-in.o
  CC [M]  /var/lib/dkms/wireguard/1.0.20200623/build/main.o
In file included from include/linux/phy.h:22,
                 from include/net/dsa.h:19,
                 from include/linux/netdevice.h:44,
                 from include/net/ip_tunnels.h:5,
                 from include/net/udp_tunnel.h:4,
                 from
/var/lib/dkms/wireguard/1.0.20200623/build/compat/udp_tunnel/udp_tunnel_partial_compat.h:143,
                 from
/var/lib/dkms/wireguard/1.0.20200623/build/compat/compat.h:73,
                 from <command-line>:
include/linux/module.h:130:6: warning: ‘init_module’ specifies less
restrictive attribute than its target ‘mod_init’: ‘cold’
[-Wmissing-attributes]
  130 |  int init_module(void) __attribute__((alias(#initfn)));
      |      ^~~~~~~~~~~
/var/lib/dkms/wireguard/1.0.20200623/build/main.c:61:1: note: in
expansion of macro ‘module_init’
   61 | module_init(mod_init);
      | ^~~~~~~~~~~
/var/lib/dkms/wireguard/1.0.20200623/build/main.c:20:19: note:
‘init_module’ target declared here
   20 | static int __init mod_init(void)
      |                   ^~~~~~~~
In file included from include/linux/phy.h:22,
                 from include/net/dsa.h:19,
                 from include/linux/netdevice.h:44,
                 from include/net/ip_tunnels.h:5,
                 from include/net/udp_tunnel.h:4,
                 from
/var/lib/dkms/wireguard/1.0.20200623/build/compat/udp_tunnel/udp_tunnel_partial_compat.h:143,
                 from
/var/lib/dkms/wireguard/1.0.20200623/build/compat/compat.h:73,
                 from <command-line>:
include/linux/module.h:136:7: warning: ‘cleanup_module’ specifies less
restrictive attribute than its target ‘mod_exit’: ‘cold’
[-Wmissing-attributes]
  136 |  void cleanup_module(void) __attribute__((alias(#exitfn)));
      |       ^~~~~~~~~~~~~~
/var/lib/dkms/wireguard/1.0.20200623/build/main.c:62:1: note: in
expansion of macro ‘module_exit’
   62 | module_exit(mod_exit);
      | ^~~~~~~~~~~
/var/lib/dkms/wireguard/1.0.20200623/build/main.c:55:20: note:
‘cleanup_module’ target declared here
   55 | static void __exit mod_exit(void)
      |                    ^~~~~~~~
  CC [M]  /var/lib/dkms/wireguard/1.0.20200623/build/noise.o
  CC [M]  /var/lib/dkms/wireguard/1.0.20200623/build/device.o
  CC [M]  /var/lib/dkms/wireguard/1.0.20200623/build/peer.o
  CC [M]  /var/lib/dkms/wireguard/1.0.20200623/build/timers.o
  CC [M]  /var/lib/dkms/wireguard/1.0.20200623/build/queueing.o
  CC [M]  /var/lib/dkms/wireguard/1.0.20200623/build/send.o
  CC [M]  /var/lib/dkms/wireguard/1.0.20200623/build/receive.o
  CC [M]  /var/lib/dkms/wireguard/1.0.20200623/build/socket.o
/var/lib/dkms/wireguard/1.0.20200623/build/socket.c: In function ‘send6’:
/var/lib/dkms/wireguard/1.0.20200623/build/socket.c:139:20: error:
‘const struct ipv6_stub’ has no member named ‘ipv6_dst_lookup_flow’;
did you mean ‘ipv6_dst_lookup’?
  139 |   dst = ipv6_stub->ipv6_dst_lookup_flow(sock_net(sock), sock, &fl,
      |                    ^~~~~~~~~~~~~~~~~~~~
      |                    ipv6_dst_lookup
scripts/Makefile.build:285: recipe for target
'/var/lib/dkms/wireguard/1.0.20200623/build/socket.o' failed
make[1]: *** [/var/lib/dkms/wireguard/1.0.20200623/build/socket.o] Error 1
Makefile:1454: recipe for target
'_module_/var/lib/dkms/wireguard/1.0.20200623/build' failed
make: *** [_module_/var/lib/dkms/wireguard/1.0.20200623/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.4.0-159-generic'

====
$ uname -a
Linux sandbox 4.4.0-159-generic #187-Ubuntu SMP Thu Aug 1 16:28:06 UTC
2019 x86_64 x86_64 x86_64 GNU/Linux

$ apt policy |grep -i wireguard
 500 http://ppa.launchpad.net/wireguard/wireguard/ubuntu xenial/main
i386 Packages
     release v=16.04,o=LP-PPA-wireguard-wireguard,a=xenial,n=xenial,l=WireGuard,c=main,b=i386
 500 http://ppa.launchpad.net/wireguard/wireguard/ubuntu xenial/main
amd64 Packages
     release v=16.04,o=LP-PPA-wireguard-wireguard,a=xenial,n=xenial,l=WireGuard,c=main,b=amd64


More information about the WireGuard mailing list