<div dir="auto">I was able to build on rpi b3 (board 2710 ) some months ago... and I didn't encounter this . Can I see the  steps you followed?<div dir="auto"><br></div><div dir="auto">Regards, Janus </div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 29, 2018, 5:05 AM Francis Booth <<a href="mailto:boothf@boothlabs.me">boothf@boothlabs.me</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Attempting to build Wireguard on a Raspberry Pi will result in an
      assembly error <br>
    </p>
    <p>    Error: immediate expression requires a # prefix -- `moveq
      r5,1'</p>
    <p>(the full build error log can be found here:
      <a class="m_777972590414573895moz-txt-link-freetext" href="https://pastebin.com/CKTXwGyG" target="_blank" rel="noreferrer">https://pastebin.com/CKTXwGyG</a>)<br>
    </p>
    <p>Appending # to the values and telling ARM to treat them as
      literals solves the issue.</p>
    <p>I was able to test this patch out on my own Raspberry Pi 3B+ and
      can confirm the resulting build is successfully able to build,
      create the wg0 interface, generate a private key, connect to a
      peer, and send encrypted messages back and forth.</p>
    <p>justw and revel assisted in providing the fix via the Wireguard
      irc channel.<br>
    </p>
    <p><br>
    </p>
    <pre style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">curve25519: arm: Compile on Raspi

diff --git a/src/crypto/curve25519-arm.S b/src/crypto/curve25519-arm.S
index cb40c24..f9d50e9 100644
--- a/src/crypto/curve25519-arm.S
+++ b/src/crypto/curve25519-arm.S
@@ -1554,35 +1554,35 @@ ENTRY(curve25519_neon)
        movw            r4, 0
        movw            r5, 2
        cmp             r1, #1
-       moveq           r5, 1
+       moveq           r5, #1
        addeq           r2, r3, #336
        addeq           r4, r3, #48
        cmp             r1, #2
-       moveq           r5, 1
+       moveq           r5, #1
        addeq           r2, r3, #48
        cmp             r1, #3
-       moveq           r5, 5
+       moveq           r5, #5
        addeq           r4, r3, #336
        cmp             r1, #4
-       moveq           r5, 10
+       moveq           r5, #10
        cmp             r1, #5
-       moveq           r5, 20
+       moveq           r5, #20
        cmp             r1, #6
-       moveq           r5, 10
+       moveq           r5, #10
        addeq           r2, r3, #336
        addeq           r4, r3, #336
        cmp             r1, #7
-       moveq           r5, 50
+       moveq           r5, #50
        cmp             r1, #8
-       moveq           r5, 100
+       moveq           r5, #100
        cmp             r1, #9
-       moveq           r5, 50
+       moveq           r5, #50
        addeq           r2, r3, #336
        cmp             r1, #10
-       moveq           r5, 5
+       moveq           r5, #5
        addeq           r2, r3, #48
        cmp             r1, #11
-       moveq           r5, 0
+       moveq           r5, #0
        addeq           r2, r3, #96
        add             r6, r3, #144
        add             r7, r3, #288</pre>
  </div>

_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank" rel="noreferrer">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div>