WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* Missing <asm/neon.h> with 0.0.20180904 on arm with kernel 3.10.107
@ 2018-09-06 21:00 Philipp Richter
  2018-09-07  2:47 ` Jason A. Donenfeld
  0 siblings, 1 reply; 5+ messages in thread
From: Philipp Richter @ 2018-09-06 21:00 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 3096 bytes --]

Hello,

while trying to install the new wireguard snapshot 0.0.20180904, I got an
error about missing <arm/neon.h> on my odroid-c1 running ArchLinux ARM

DKMS make.log for wireguard-0.0.20180904 for kernel 3.10.107-2-ARCH
(armv7l)
Thu Sep  6 22:45:48 CEST 2018
make: Entering directory '/usr/src/linux-3.10.107-2-ARCH'
 LD      /var/lib/dkms/wireguard/0.0.20180904/build/built-in.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/main.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/device.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/noise.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/peer.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/timers.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/queueing.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/send.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/receive.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/socket.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/hashtables.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/allowedips.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/ratelimiter.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/cookie.o
 CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/netlink.o
 CC [M]
 /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/chacha20/chacha20.o
 AS [M]
 /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/chacha20/chacha20-arm.o

 CC [M]
 /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/poly1305/poly1305.o
 AS [M]
 /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/poly1305/poly1305-arm.o

 CC [M]
 /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/chacha20poly1305.o
 CC [M]
 /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/curve25519/curve25519.o

In file included from <command-line>:
/var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/chacha20/chacha20-arm-glue.h:8:10:
fatal error: asm/neon.h: No such file or directory
#include <asm/neon.h>
         ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:308:
/var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/chacha20/chacha20.o]
Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from <command-line>:
/var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/poly1305/poly1305-arm-glue.h:8:10:
fatal error: asm/neon.h: No such file or directory
#include <asm/neon.h>
         ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:308:
/var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/poly1305/poly1305.o]
Error 1
make: *** [Makefile:1233:
_module_/var/lib/dkms/wireguard/0.0.20180904/build] Error 2
make: Leaving directory '/usr/src/linux-3.10.107-2-ARCH'

Unfortunately I'm stuck with 3.10.107 on my odroid-c1 :'-( , sources can be
found here : https://github.com/hardkernel/linux/tree/odroidc-3.10.y

Wireguard has been working great so far, going back to 0.0.20180809 yields
a successful compilation.

Best Regards,
Philipp Richter

*Fingerprint* : *452F 7EBD 2716 B179 5E3E  A2CB AE2B 7FFA CA43 4586*
*PGP Public Key* <https://u.teknik.io/ytoEw.asc>

[-- Attachment #2: Type: text/html, Size: 4246 bytes --]

<div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div>while trying to install the new wireguard snapshot 0.0.20180904, I got an error about missing &lt;arm/neon.h&gt; on my odroid-c1 running ArchLinux ARM<div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">DKMS make.log for wireguard-0.0.20180904 for kernel 3.10.107-2-ARCH (armv7l)
</span><br>Thu Sep  6 22:45:48 CEST 2018
<br>make: Entering directory &#39;/usr/src/linux-3.10.107-2-ARCH&#39;
<br>  LD      /var/lib/dkms/wireguard/0.0.20180904/build/built-in.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/main.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/device.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/noise.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/peer.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/timers.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/queueing.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/send.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/receive.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/socket.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/hashtables.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/allowedips.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/ratelimiter.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/cookie.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/netlink.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/chacha20/chacha20.o
<br>  AS [M]  /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/chacha20/chacha20-arm.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/poly1305/poly1305.o
<br>  AS [M]  /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/poly1305/poly1305-arm.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/chacha20poly1305.o
<br>  CC [M]  /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/curve25519/curve25519.o
<br>In file included from &lt;command-line&gt;:
<br>/var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/chacha20/chacha20-arm-glue.h:8:10: fatal error: asm/neon.h: No such file or directory
<br> #include &lt;asm/neon.h&gt;
<br>          ^~~~~~~~~~~~
<br>compilation terminated.
<br>make[1]: *** [scripts/Makefile.build:308: /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/chacha20/chacha20.o] Error 1
<br>make[1]: *** Waiting for unfinished jobs....
<br>In file included from &lt;command-line&gt;:
<br>/var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/poly1305/poly1305-arm-glue.h:8:10: fatal error: asm/neon.h: No such file or directory
<br> #include &lt;asm/neon.h&gt;
<br>          ^~~~~~~~~~~~
<br>compilation terminated.
<br>make[1]: *** [scripts/Makefile.build:308: /var/lib/dkms/wireguard/0.0.20180904/build/crypto/zinc/poly1305/poly1305.o] Error 1
<br>make: *** [Makefile:1233: _module_/var/lib/dkms/wireguard/0.0.20180904/build] Error 2
<br>make: Leaving directory &#39;/usr/src/linux-3.10.107-2-ARCH&#39;</span></div><div><span style="font-family:monospace"><br></span></div><div><font face="arial, helvetica, sans-serif">Unfortunately I&#39;m stuck with 3.10.107 on my odroid-c1 :&#39;-( , sources can be found here : <a href="https://github.com/hardkernel/linux/tree/odroidc-3.10.y">https://github.com/hardkernel/linux/tree/odroidc-3.10.y</a></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Wireguard has been working great so far, going back to </font>0.0.20180809 yields a successful compilation.</div><div><br></div><div>Best Regards,</div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><font face="arial narrow, sans-serif">Philipp Richter</font></div><div><br></div><font face="monospace, monospace" size="1"><u>Fingerprint</u> : <b>452F 7EBD 2716 B179 5E3E  A2CB AE2B 7FFA CA43 4586</b></font><div><font face="monospace, monospace" size="1"><a href="https://u.teknik.io/ytoEw.asc" target="_blank"><b>PGP Public Key</b></a><br></font></div></div></div></div></div></div></div>

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

* Re: Missing <asm/neon.h> with 0.0.20180904 on arm with kernel 3.10.107
  2018-09-06 21:00 Missing <asm/neon.h> with 0.0.20180904 on arm with kernel 3.10.107 Philipp Richter
@ 2018-09-07  2:47 ` Jason A. Donenfeld
  2018-09-07  7:24   ` Philipp Richter
  0 siblings, 1 reply; 5+ messages in thread
From: Jason A. Donenfeld @ 2018-09-07  2:47 UTC (permalink / raw)
  To: richterphilipp.pops; +Cc: WireGuard mailing list

Hi Philipp,

Thanks for the report. Can you tell me if this fixes it for you?

https://git.zx2c4.com/WireGuard/commit/?id=dcb765a453fa22e4195bc42de1792567fe511c67

Jason

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

* Re: Missing <asm/neon.h> with 0.0.20180904 on arm with kernel 3.10.107
  2018-09-07  2:47 ` Jason A. Donenfeld
@ 2018-09-07  7:24   ` Philipp Richter
  2018-09-07 14:22     ` Jason A. Donenfeld
  0 siblings, 1 reply; 5+ messages in thread
From: Philipp Richter @ 2018-09-07  7:24 UTC (permalink / raw)
  To: Jason; +Cc: wireguard

[-- Attachment #1: Type: text/plain, Size: 843 bytes --]

Hello Jason,

yes this works indeed thank you!

This means however that NEON SIMD instructions are not used, right ? The
datasheet of the board mentions that it includes the NEON SIMD coprocessor
: https://dn.odroid.com/S805/Datasheet/S805_Datasheet%20V0.8%2020150126.pdf

And CONFIG_NEON=y is activated in the kernel. Forgive me, I don't know much
about what it means for the wireguard module not using the neon simd
instructions.

Best Regards,
Philipp Richter

*Fingerprint* : *452F 7EBD 2716 B179 5E3E  A2CB AE2B 7FFA CA43 4586*
*PGP Public Key* <https://u.teknik.io/ytoEw.asc>


On Fri, 7 Sep 2018 at 04:47, Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> Hi Philipp,
>
> Thanks for the report. Can you tell me if this fixes it for you?
>
>
> https://git.zx2c4.com/WireGuard/commit/?id=dcb765a453fa22e4195bc42de1792567fe511c67
>
> Jason
>

[-- Attachment #2: Type: text/html, Size: 1820 bytes --]

<div dir="ltr"><div dir="ltr">Hello Jason,<div><br></div><div>yes this works indeed thank you!</div><div><br></div><div>This means however that NEON SIMD instructions are not used, right ? The datasheet of the board mentions that it includes the NEON SIMD coprocessor : <a href="https://dn.odroid.com/S805/Datasheet/S805_Datasheet%20V0.8%2020150126.pdf">https://dn.odroid.com/S805/Datasheet/S805_Datasheet%20V0.8%2020150126.pdf</a></div><div><br></div><div>And <span style="color:rgb(0,0,0);font-family:monospace">CONFIG_NEON=y </span>is activated in the kernel. Forgive me, I don&#39;t know much about what it means for the wireguard module not using the neon simd instructions.</div><div><br></div><div>Best Regards,</div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><font face="arial narrow, sans-serif">Philipp Richter</font></div><div><br></div><font face="monospace, monospace" size="1"><u>Fingerprint</u> : <b>452F 7EBD 2716 B179 5E3E  A2CB AE2B 7FFA CA43 4586</b></font><div><font face="monospace, monospace" size="1"><a href="https://u.teknik.io/ytoEw.asc" target="_blank"><b>PGP Public Key</b></a><br></font></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 7 Sep 2018 at 04:47, Jason A. Donenfeld &lt;<a href="mailto:Jason@zx2c4.com">Jason@zx2c4.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Philipp,<br>
<br>
Thanks for the report. Can you tell me if this fixes it for you?<br>
<br>
<a href="https://git.zx2c4.com/WireGuard/commit/?id=dcb765a453fa22e4195bc42de1792567fe511c67" rel="noreferrer" target="_blank">https://git.zx2c4.com/WireGuard/commit/?id=dcb765a453fa22e4195bc42de1792567fe511c67</a><br>
<br>
Jason<br>
</blockquote></div>

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

* Re: Missing <asm/neon.h> with 0.0.20180904 on arm with kernel 3.10.107
  2018-09-07  7:24   ` Philipp Richter
@ 2018-09-07 14:22     ` Jason A. Donenfeld
  2018-09-08 15:15       ` Philipp Richter
  0 siblings, 1 reply; 5+ messages in thread
From: Jason A. Donenfeld @ 2018-09-07 14:22 UTC (permalink / raw)
  To: richterphilipp.pops; +Cc: WireGuard mailing list

Hi Philipp,

Super ancient kernels like that cannot use Neon in kernel space.

Jason

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

* Re: Missing <asm/neon.h> with 0.0.20180904 on arm with kernel 3.10.107
  2018-09-07 14:22     ` Jason A. Donenfeld
@ 2018-09-08 15:15       ` Philipp Richter
  0 siblings, 0 replies; 5+ messages in thread
From: Philipp Richter @ 2018-09-08 15:15 UTC (permalink / raw)
  To: Jason; +Cc: wireguard

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]

Ah ok, I see. Thank you again :)
I hope some day all the necessary parts to make the board work will get
upstreamed.

Regards,
Philipp Richter

*Fingerprint* : *452F 7EBD 2716 B179 5E3E  A2CB AE2B 7FFA CA43 4586*
*PGP Public Key* <https://u.teknik.io/ytoEw.asc>


On Fri, 7 Sep 2018 at 16:22, Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> Hi Philipp,
>
> Super ancient kernels like that cannot use Neon in kernel space.
>
> Jason
>

[-- Attachment #2: Type: text/html, Size: 1085 bytes --]

<div dir="ltr">Ah ok, I see. Thank you again :)<div>I hope some day all the necessary parts to make the board work will get upstreamed.</div><div><div><br></div><div>Regards,<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font face="arial narrow, sans-serif">Philipp Richter</font></div><div><br></div><font face="monospace, monospace" size="1"><u>Fingerprint</u> : <b>452F 7EBD 2716 B179 5E3E  A2CB AE2B 7FFA CA43 4586</b></font><div><font face="monospace, monospace" size="1"><a href="https://u.teknik.io/ytoEw.asc" target="_blank"><b>PGP Public Key</b></a><br></font></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 7 Sep 2018 at 16:22, Jason A. Donenfeld &lt;<a href="mailto:Jason@zx2c4.com">Jason@zx2c4.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Philipp,<br>
<br>
Super ancient kernels like that cannot use Neon in kernel space.<br>
<br>
Jason<br>
</blockquote></div>

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

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06 21:00 Missing <asm/neon.h> with 0.0.20180904 on arm with kernel 3.10.107 Philipp Richter
2018-09-07  2:47 ` Jason A. Donenfeld
2018-09-07  7:24   ` Philipp Richter
2018-09-07 14:22     ` Jason A. Donenfeld
2018-09-08 15:15       ` Philipp Richter

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 zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


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