WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* dkms build failure - Ubuntu 16.04 kernel 4.4.0-161-generic
@ 2019-09-03 22:07 Felix Tang
  2019-09-06 19:13 ` Jason A. Donenfeld
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Tang @ 2019-09-03 22:07 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1.1: Type: text/plain, Size: 7859 bytes --]

Hi -

The wireguard dkms build failed with a recent Ubuntu 16.04 kernel upgrade
4.4.0-161-generic.  The build was successful with the previous kernel
4.4.0-159-generic.

---

* dkms: running auto installation service for kernel 4.4.0-161-generic

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.4.0-161-generic -C
/lib/modules/4.4.0-161-generic/build
M=/var/lib/dkms/wireguard/0.0.20190702/build......(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists:
'/var/crash/wireguard-dkms.0.crash'
Error! Bad return status for module build on kernel: 4.4.0-161-generic
(x86_64)
Consult /var/lib/dkms/wireguard/0.0.20190702/build/make.log for more
information.
   ...done.

---

$ cat /var/crash/wireguard-dkms.0.crash
ProblemType: Package
DKMSBuildLog:
 DKMS make.log for wireguard-0.0.20190702 for kernel 4.4.0-161-generic
(x86_64)
 Mon Sep  2 18:20:16 EDT 2019
 make: Entering directory '/usr/src/linux-headers-4.4.0-161-generic'
   LD      /var/lib/dkms/wireguard/0.0.20190702/build/built-in.o
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/main.o
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/noise.o
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/device.o
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/peer.o
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/timers.o
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/queueing.o
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/send.o
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/receive.o
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/socket.o
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/peerlookup.o
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.o
 /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function
‘root_remove_peer_lists’:
 /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:72:1: warning: the
frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  }
  ^
 /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function
‘root_free_rcu’:
 /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:59:1: warning: the
frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  }
  ^
 /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function
‘walk_remove_by_peer.isra.3’:
 /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:126:1: warning:
the frame size of 1032 bytes is larger than 1024 bytes
[-Wframe-larger-than=]
  }
  ^
   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o
 /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:25:8: error:
unknown type name ‘hsiphash_key_t’
  static hsiphash_key_t key;
         ^
 /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c: In function
‘wg_ratelimiter_allow’:
 /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:109:22: error:
implicit declaration of function ‘hsiphash_2u32’
[-Werror=implicit-function-declaration]
    bucket = &table_v4[hsiphash_2u32(net_word, ip, &key) &
                       ^
 /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:116:22: error:
implicit declaration of function ‘hsiphash_3u32’
[-Werror=implicit-function-declaration]
    bucket = &table_v6[hsiphash_3u32(net_word, ip >> 32, ip, &key) &
                       ^
 cc1: some warnings being treated as errors
 scripts/Makefile.build:285: recipe for target
'/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o' failed
 make[1]: *** [/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o]
Error 1
 Makefile:1454: recipe for target
'_module_/var/lib/dkms/wireguard/0.0.20190702/build' failed
 make: *** [_module_/var/lib/dkms/wireguard/0.0.20190702/build] Error 2
 make: Leaving directory '/usr/src/linux-headers-4.4.0-161-generic'
DKMSKernelVersion: 4.4.0-161-generic
Date: Mon Sep  2 18:20:27 2019
DuplicateSignature:
dkms:wireguard-dkms:0.0.20190702-wg1~xenial:/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:25:8:
error: unknown type name ‘hsiphash_key_t’
Package: wireguard-dkms 0.0.20190702-wg1~xenial
PackageVersion: 0.0.20190702-wg1~xenial
SourcePackage: wireguard
Title: wireguard-dkms 0.0.20190702-wg1~xenial: wireguard kernel module
failed to build

---

$ cat  /var/lib/dkms/wireguard/0.0.20190702/build/make.log
DKMS make.log for wireguard-0.0.20190702 for kernel 4.4.0-161-generic
(x86_64)
Tue Sep  3 15:36:39 EDT 2019
make: Entering directory '/usr/src/linux-headers-4.4.0-161-generic'
  LD      /var/lib/dkms/wireguard/0.0.20190702/build/built-in.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/main.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/noise.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/device.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/peer.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/timers.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/queueing.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/send.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/receive.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/socket.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/peerlookup.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.o
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function
‘root_remove_peer_lists’:
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:72:1: warning: the
frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function
‘root_free_rcu’:
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:59:1: warning: the
frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function
‘walk_remove_by_peer.isra.3’:
/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:126:1: warning: the
frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o
/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:25:8: error:
unknown type name ‘hsiphash_key_t’
 static hsiphash_key_t key;
        ^
/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c: In function
‘wg_ratelimiter_allow’:
/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:109:22: error:
implicit declaration of function ‘hsiphash_2u32’
[-Werror=implicit-function-declaration]
   bucket = &table_v4[hsiphash_2u32(net_word, ip, &key) &
                      ^
/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:116:22: error:
implicit declaration of function ‘hsiphash_3u32’
[-Werror=implicit-function-declaration]
   bucket = &table_v6[hsiphash_3u32(net_word, ip >> 32, ip, &key) &
                      ^
cc1: some warnings being treated as errors
scripts/Makefile.build:285: recipe for target
'/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o' failed
make[1]: *** [/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o]
Error 1
Makefile:1454: recipe for target
'_module_/var/lib/dkms/wireguard/0.0.20190702/build' failed
make: *** [_module_/var/lib/dkms/wireguard/0.0.20190702/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.4.0-161-generic'

--
# lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:        16.04
Codename:       xenial
---

# apt list |grep wireguard|grep installed
wireguard-dkms/xenial,xenial,now 0.0.20190702-wg1~xenial all
[installed,automatic]
wireguard-tools/xenial,now 0.0.20190702-wg1~xenial amd64 [installed]

[-- Attachment #1.2: Type: text/html, Size: 9109 bytes --]

<div dir="ltr"><div><font face="monospace">Hi -  </font></div><div><font face="monospace"><br></font></div><div><font face="monospace">The wireguard dkms build failed with a recent Ubuntu 16.04 kernel upgrade 4.4.0-161-generic.  The build was successful with the previous kernel 4.4.0-159-generic.</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">---</font></div><font face="monospace"><div><font face="monospace"><br></font></div>* dkms: running auto installation service for kernel 4.4.0-161-generic<br><br>Kernel preparation unnecessary for this kernel.  Skipping...<br><br>Building module:<br>cleaning build area....<br>make KERNELRELEASE=4.4.0-161-generic -C /lib/modules/4.4.0-161-generic/build M=/var/lib/dkms/wireguard/0.0.20190702/build......(bad exit status: 2)<br>ERROR: Cannot create report: [Errno 17] File exists: &#39;/var/crash/wireguard-dkms.0.crash&#39;<br>Error! Bad return status for module build on kernel: 4.4.0-161-generic (x86_64)<br>Consult /var/lib/dkms/wireguard/0.0.20190702/build/make.log for more information.<br>   ...done.<br><br>---<br><br>$ cat /var/crash/wireguard-dkms.0.crash<br>ProblemType: Package<br>DKMSBuildLog:<br> DKMS make.log for wireguard-0.0.20190702 for kernel 4.4.0-161-generic (x86_64)<br> Mon Sep  2 18:20:16 EDT 2019<br> make: Entering directory &#39;/usr/src/linux-headers-4.4.0-161-generic&#39;<br>   LD      /var/lib/dkms/wireguard/0.0.20190702/build/built-in.o<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/main.o<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/noise.o<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/device.o<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/peer.o<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/timers.o<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/queueing.o<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/send.o<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/receive.o<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/socket.o<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/peerlookup.o<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.o<br> /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘root_remove_peer_lists’:<br> /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:72:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]<br>  }<br>  ^<br> /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘root_free_rcu’:<br> /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:59:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]<br>  }<br>  ^<br> /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘walk_remove_by_peer.isra.3’:<br> /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:126:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]<br>  }<br>  ^<br>   CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o<br> /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:25:8: error: unknown type name ‘hsiphash_key_t’<br>  static hsiphash_key_t key;<br>         ^<br> /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c: In function ‘wg_ratelimiter_allow’:<br> /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:109:22: error: implicit declaration of function ‘hsiphash_2u32’ [-Werror=implicit-function-declaration]<br>    bucket = &amp;table_v4[hsiphash_2u32(net_word, ip, &amp;key) &amp;<br>                       ^<br> /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:116:22: error: implicit declaration of function ‘hsiphash_3u32’ [-Werror=implicit-function-declaration]<br>    bucket = &amp;table_v6[hsiphash_3u32(net_word, ip &gt;&gt; 32, ip, &amp;key) &amp;<br>                       ^<br> cc1: some warnings being treated as errors<br> scripts/Makefile.build:285: recipe for target &#39;/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o&#39; failed<br> make[1]: *** [/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o] Error 1<br> Makefile:1454: recipe for target &#39;_module_/var/lib/dkms/wireguard/0.0.20190702/build&#39; failed<br> make: *** [_module_/var/lib/dkms/wireguard/0.0.20190702/build] Error 2<br> make: Leaving directory &#39;/usr/src/linux-headers-4.4.0-161-generic&#39;<br>DKMSKernelVersion: 4.4.0-161-generic<br>Date: Mon Sep  2 18:20:27 2019<br>DuplicateSignature: dkms:wireguard-dkms:0.0.20190702-wg1~xenial:/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:25:8: error: unknown type name ‘hsiphash_key_t’<br>Package: wireguard-dkms 0.0.20190702-wg1~xenial<br>PackageVersion: 0.0.20190702-wg1~xenial<br>SourcePackage: wireguard<br>Title: wireguard-dkms 0.0.20190702-wg1~xenial: wireguard kernel module failed to build<br><br>---<br><br>$ cat  /var/lib/dkms/wireguard/0.0.20190702/build/make.log<br>DKMS make.log for wireguard-0.0.20190702 for kernel 4.4.0-161-generic (x86_64)<br>Tue Sep  3 15:36:39 EDT 2019<br>make: Entering directory &#39;/usr/src/linux-headers-4.4.0-161-generic&#39;<br>  LD      /var/lib/dkms/wireguard/0.0.20190702/build/built-in.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/main.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/noise.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/device.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/peer.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/timers.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/queueing.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/send.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/receive.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/socket.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/peerlookup.o<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/allowedips.o<br>/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘root_remove_peer_lists’:<br>/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:72:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]<br> }<br> ^<br>/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘root_free_rcu’:<br>/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:59:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]<br> }<br> ^<br>/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘walk_remove_by_peer.isra.3’:<br>/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c:126:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]<br> }<br> ^<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o<br>/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:25:8: error: unknown type name ‘hsiphash_key_t’<br> static hsiphash_key_t key;<br>        ^<br>/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c: In function ‘wg_ratelimiter_allow’:<br>/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:109:22: error: implicit declaration of function ‘hsiphash_2u32’ [-Werror=implicit-function-declaration]<br>   bucket = &amp;table_v4[hsiphash_2u32(net_word, ip, &amp;key) &amp;<br>                      ^<br>/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:116:22: error: implicit declaration of function ‘hsiphash_3u32’ [-Werror=implicit-function-declaration]<br>   bucket = &amp;table_v6[hsiphash_3u32(net_word, ip &gt;&gt; 32, ip, &amp;key) &amp;<br>                      ^<br>cc1: some warnings being treated as errors<br>scripts/Makefile.build:285: recipe for target &#39;/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o&#39; failed<br>make[1]: *** [/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o] Error 1<br>Makefile:1454: recipe for target &#39;_module_/var/lib/dkms/wireguard/0.0.20190702/build&#39; failed<br>make: *** [_module_/var/lib/dkms/wireguard/0.0.20190702/build] Error 2<br>make: Leaving directory &#39;/usr/src/linux-headers-4.4.0-161-generic&#39;<br></font><div class="gmail-yj6qo"></div><div class="gmail-adL"><br></div><div class="gmail-adL">--</div><div class="gmail-adL"><span style="font-family:monospace"># lsb_release --all</span><br></div><div class="gmail-adL"><font face="monospace">No LSB modules are available.<br>Distributor ID: Ubuntu<br>Description:    Ubuntu 16.04.6 LTS<br>Release:        16.04<br>Codename:       xenial</font><br></div><div class="gmail-adL"><span style="font-family:monospace">---</span><br></div><div class="gmail-adL"><span style="font-family:monospace"><br></span></div><div class="gmail-adL"><font face="monospace"># apt list |grep wireguard|grep installed<br>wireguard-dkms/xenial,xenial,now 0.0.20190702-wg1~xenial all [installed,automatic]<br>wireguard-tools/xenial,now 0.0.20190702-wg1~xenial amd64 [installed]</font><br></div></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

* Re: dkms build failure - Ubuntu 16.04 kernel 4.4.0-161-generic
  2019-09-03 22:07 dkms build failure - Ubuntu 16.04 kernel 4.4.0-161-generic Felix Tang
@ 2019-09-06 19:13 ` Jason A. Donenfeld
  0 siblings, 0 replies; 2+ messages in thread
From: Jason A. Donenfeld @ 2019-09-06 19:13 UTC (permalink / raw)
  To: Felix Tang; +Cc: WireGuard mailing list

Thanks for the report. Ubuntu's kernel team made an error in
backporting a patch from mainline. They're aware of this error, but
they're unable to rectify it for another 7 weeks, which clearly isn't
an acceptable amount of downtime for WireGuard servers. So yesterday
we made a new WireGuard release that works around this issue. Then,
this morning, Egbert, the maintainer of our Ubuntu package, published
a new Ubuntu package for our new release. So you should be all set by
running `apt update && apt upgrade`. Sorry for the hassle. I'm not too
happy about this situation myself, and I'm going to try to figure out
how the Ubuntu kernel people can make sure they don't break WireGuard
in the future with some sort of CI.
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-03 22:07 dkms build failure - Ubuntu 16.04 kernel 4.4.0-161-generic Felix Tang
2019-09-06 19:13 ` Jason A. Donenfeld

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


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