WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* Wireguard installation on Ubuntu 16.04 / kernel 4.4.0-161-generic fails
@ 2019-09-04 11:34 Martin Jurasik
  2019-09-06 19:13 ` Jason A. Donenfeld
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Jurasik @ 2019-09-04 11:34 UTC (permalink / raw)
  To: wireguard

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

Tried to install Wireguard on a newly setup Ubuntu 16.04 VPS.

Building initial module  fails with „Error! Bad return status …“ 

Please see log file attached.

Thanks & Regards,
Martin

##### make.log #####

ProblemType: Package
DKMSBuildLog:
 DKMS make.log for wireguard-0.0.20190702 for kernel 4.4.0-161-generic (x86_64)
 Wed  4 Sep 12:47:09 CEST 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: Wed Sep  4 12:47:19 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

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

<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:13px; ">Tried to install Wireguard on a newly setup Ubuntu 16.04 VPS.</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">Building initial module &nbsp;fails with „Error! Bad return status …“&nbsp;</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">Please see log file attached.</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">Thanks &amp; Regards,</div><div style="font-family:Helvetica,Arial;font-size:13px; ">Martin</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">##### make.log #####</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; "><div style="margin: 0px;">ProblemType: Package</div><div style="margin: 0px;">DKMSBuildLog:</div><div style="margin: 0px;">&nbsp;DKMS make.log for wireguard-0.0.20190702 for kernel 4.4.0-161-generic (x86_64)</div><div style="margin: 0px;">&nbsp;Wed &nbsp;4 Sep 12:47:09 CEST 2019</div><div style="margin: 0px;">&nbsp;make: Entering directory '/usr/src/linux-headers-4.4.0-161-generic'</div><div style="margin: 0px;">&nbsp; &nbsp;LD &nbsp; &nbsp; &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/built-in.o</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/main.o</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/noise.o</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/device.o</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/peer.o</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/timers.o</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/queueing.o</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/send.o</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/receive.o</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/socket.o</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/peerlookup.o</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.o</div><div style="margin: 0px;">&nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘root_remove_peer_lists’:</div><div style="margin: 0px;">&nbsp;/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=]</div><div style="margin: 0px;">&nbsp; }</div><div style="margin: 0px;">&nbsp; ^</div><div style="margin: 0px;">&nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘root_free_rcu’:</div><div style="margin: 0px;">&nbsp;/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=]</div><div style="margin: 0px;">&nbsp; }</div><div style="margin: 0px;">&nbsp; ^</div><div style="margin: 0px;">&nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/allowedips.c: In function ‘walk_remove_by_peer.isra.3’:</div><div style="margin: 0px;">&nbsp;/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=]</div><div style="margin: 0px;">&nbsp; }</div><div style="margin: 0px;">&nbsp; ^</div><div style="margin: 0px;">&nbsp; &nbsp;CC [M] &nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o</div><div style="margin: 0px;">&nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:25:8: error: unknown type name ‘hsiphash_key_t’</div><div style="margin: 0px;">&nbsp; static hsiphash_key_t key;</div><div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^</div><div style="margin: 0px;">&nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c: In function ‘wg_ratelimiter_allow’:</div><div style="margin: 0px;">&nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:109:22: error: implicit declaration of function ‘hsiphash_2u32’ [-Werror=implicit-function-declaration]</div><div style="margin: 0px;">&nbsp; &nbsp; bucket = &amp;table_v4[hsiphash_2u32(net_word, ip, &amp;key) &amp;</div><div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^</div><div style="margin: 0px;">&nbsp;/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.c:116:22: error: implicit declaration of function ‘hsiphash_3u32’ [-Werror=implicit-function-declaration]</div><div style="margin: 0px;">&nbsp; &nbsp; bucket = &amp;table_v6[hsiphash_3u32(net_word, ip &gt;&gt; 32, ip, &amp;key) &amp;</div><div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^</div><div style="margin: 0px;">&nbsp;cc1: some warnings being treated as errors</div><div style="margin: 0px;">&nbsp;scripts/Makefile.build:285: recipe for target '/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o' failed</div><div style="margin: 0px;">&nbsp;make[1]: *** [/var/lib/dkms/wireguard/0.0.20190702/build/ratelimiter.o] Error 1</div><div style="margin: 0px;">&nbsp;Makefile:1454: recipe for target '_module_/var/lib/dkms/wireguard/0.0.20190702/build' failed</div><div style="margin: 0px;">&nbsp;make: *** [_module_/var/lib/dkms/wireguard/0.0.20190702/build] Error 2</div><div style="margin: 0px;">&nbsp;make: Leaving directory '/usr/src/linux-headers-4.4.0-161-generic'</div><div style="margin: 0px;">DKMSKernelVersion: 4.4.0-161-generic</div><div style="margin: 0px;">Date: Wed Sep &nbsp;4 12:47:19 2019</div><div style="margin: 0px;">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’</div><div style="margin: 0px;">Package: wireguard-dkms 0.0.20190702-wg1~xenial</div><div style="margin: 0px;">PackageVersion: 0.0.20190702-wg1~xenial</div><div style="margin: 0px;">SourcePackage: wireguard</div><div style="margin: 0px;">Title: wireguard-dkms 0.0.20190702-wg1~xenial: wireguard kernel module failed to build</div></div></body></html>

[-- 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: Wireguard installation on Ubuntu 16.04 / kernel 4.4.0-161-generic fails
  2019-09-04 11:34 Wireguard installation on Ubuntu 16.04 / kernel 4.4.0-161-generic fails Martin Jurasik
@ 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: Martin Jurasik; +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-04 11:34 Wireguard installation on Ubuntu 16.04 / kernel 4.4.0-161-generic fails Martin Jurasik
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