Development discussion of WireGuard
 help / color / mirror / Atom feed
From: karthik kumar <kumarkarthikn@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6
Date: Mon, 25 Jun 2018 08:23:18 +0530	[thread overview]
Message-ID: <CAK+ZqRryNNWq1yhAQKbzOxTKrzRmO_gfM47F18YCGOiYcdumdg@mail.gmail.com> (raw)

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

Hi,
   I get the following "no such instruction" error while compiling Wireguard

*# make*
*  CC [M]  /root/WireGuard-0.0.20180620/src/main.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/noise.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/device.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/peer.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/timers.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/queueing.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/send.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/receive.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/socket.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/hashtables.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/allowedips.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/ratelimiter.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/cookie.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/netlink.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/crypto/chacha20.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/crypto/poly1305.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/crypto/chacha20poly1305.o*
*  CC [M]  /root/WireGuard-0.0.20180620/src/crypto/curve25519.o*
*/root/WireGuard-0.0.20180620/src/crypto/curve25519-x86_64.h: Assembler
messages:*
*/root/WireGuard-0.0.20180620/src/crypto/curve25519-x86_64.h:350: Error: no
such instruction: `mulx (%r15),%r8,%r12'*
*/root/WireGuard-0.0.20180620/src/crypto/curve25519-x86_64.h:350: Error: no
such instruction: `mulx 8(%r15),%r10,%rax'*
*/root/WireGuard-0.0.20180620/src/crypto/curve25519-x86_64.h:350: Error: no
such instruction: `adox %r10,%r12'*
*/root/WireGuard-0.0.20180620/src/crypto/curve25519-x86_64.h:350: Error: no
such instruction: `mulx 16(%r15),%r8,%rbx'*
*/root/WireGuard-0.0.20180620/src/crypto/curve25519-x86_64.h:350: Error: no
such instruction: `adox %r8,%rax'*
*.... <lots of such no such instruction errors>*

I am on centos 6, and my kernel version is 4.9.34.I just compiled and
installed *gcc version 8.1.0 (GCC) *to build wireguard but my kernel was
originally built with gcc-4.4.7. Will that be a problem ?
Is there a way to exclude Elliptic Curve 25519 or any of the Elliptic Curve
while making ? Any other suggestions please ?


Thanks

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

             reply	other threads:[~2018-06-25  2:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-25  2:53 karthik kumar [this message]
2018-06-26  0:28 ` Jason A. Donenfeld
2018-06-26  2:57   ` karthik kumar
2018-06-26  3:32     ` Jason A. Donenfeld
2018-06-26  6:10     ` Lucian Cristian
2018-06-26 13:32       ` Sebastian Gottschall
2018-07-03  8:59       ` Vbook A1
2018-07-03  9:04         ` Lucian Cristian
2018-09-01 23:38     ` Mike Russo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK+ZqRryNNWq1yhAQKbzOxTKrzRmO_gfM47F18YCGOiYcdumdg@mail.gmail.com \
    --to=kumarkarthikn@gmail.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).