Development discussion of WireGuard
 help / color / Atom feed
* DKMS build failure 1.0.20200623 on Ubuntu 16.04 kernel 4.4.0-159-generic x86_64
@ 2020-06-28 14:04 Felix Tang
  2020-06-29 23:04 ` Jason A. Donenfeld
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Tang @ 2020-06-28 14:04 UTC (permalink / raw)
  To: wireguard

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: DKMS build failure 1.0.20200623 on Ubuntu 16.04 kernel 4.4.0-159-generic x86_64
  2020-06-28 14:04 DKMS build failure 1.0.20200623 on Ubuntu 16.04 kernel 4.4.0-159-generic x86_64 Felix Tang
@ 2020-06-29 23:04 ` Jason A. Donenfeld
  2020-06-30 12:29   ` Felix Tang
  0 siblings, 1 reply; 3+ messages in thread
From: Jason A. Donenfeld @ 2020-06-29 23:04 UTC (permalink / raw)
  To: Felix Tang; +Cc: WireGuard mailing list

Works fine for me with 4.4.0-184. Try updating?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: DKMS build failure 1.0.20200623 on Ubuntu 16.04 kernel 4.4.0-159-generic x86_64
  2020-06-29 23:04 ` Jason A. Donenfeld
@ 2020-06-30 12:29   ` Felix Tang
  0 siblings, 0 replies; 3+ messages in thread
From: Felix Tang @ 2020-06-30 12:29 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

I took the opportunity to update to the 4.15.0.106 HWE kernel.
Wireguard builds fine.  Thank you.

On Mon, Jun 29, 2020 at 7:04 PM Jason A. Donenfeld <Jason@zx2c4.com> wrote:
>
> Works fine for me with 4.4.0-184. Try updating?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-28 14:04 DKMS build failure 1.0.20200623 on Ubuntu 16.04 kernel 4.4.0-159-generic x86_64 Felix Tang
2020-06-29 23:04 ` Jason A. Donenfeld
2020-06-30 12:29   ` Felix Tang

Development discussion of WireGuard

Archives are clonable: git clone --mirror http://inbox.vuxu.org/wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git