From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: kumarkarthikn@gmail.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 9a9f32a4 for ; Mon, 25 Jun 2018 02:48:09 +0000 (UTC) Received: from mail-qt0-x236.google.com (mail-qt0-x236.google.com [IPv6:2607:f8b0:400d:c0d::236]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id d04351d5 for ; Mon, 25 Jun 2018 02:48:09 +0000 (UTC) Received: by mail-qt0-x236.google.com with SMTP id e11-v6so10199995qtp.5 for ; Sun, 24 Jun 2018 19:53:30 -0700 (PDT) MIME-Version: 1.0 From: karthik kumar Date: Mon, 25 Jun 2018 08:23:18 +0530 Message-ID: Subject: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6 To: wireguard@lists.zx2c4.com Content-Type: multipart/alternative; boundary="00000000000085ece6056f6e7ce0" List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --00000000000085ece6056f6e7ce0 Content-Type: text/plain; charset="UTF-8" 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'* *.... * 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 --00000000000085ece6056f6e7ce0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0
=C2=A0 =C2=A0I get the following "no su= ch instruction" error while compiling Wireguard

# make
=C2=A0 CC [M]=C2=A0 /root/WireGuard-0.0.= 20180620/src/main.o
=C2=A0 CC [M]=C2=A0 /root/WireGuard-0.= 0.20180620/src/noise.o
=C2=A0 CC [M]=C2=A0 /root/WireGuard= -0.0.20180620/src/device.o
=C2=A0 CC [M]=C2=A0 /root/WireG= uard-0.0.20180620/src/peer.o
=C2=A0 CC [M]=C2=A0 /root/Wir= eGuard-0.0.20180620/src/timers.o
=C2=A0 CC [M]=C2=A0 /root= /WireGuard-0.0.20180620/src/queueing.o
=C2=A0 CC [M]=C2=A0= /root/WireGuard-0.0.20180620/src/send.o
=C2=A0 CC [M]=C2= =A0 /root/WireGuard-0.0.20180620/src/receive.o
=C2=A0 CC [= M]=C2=A0 /root/WireGuard-0.0.20180620/src/socket.o
=C2=A0 = CC [M]=C2=A0 /root/WireGuard-0.0.20180620/src/hashtables.o
=C2=A0 CC [M]=C2=A0 /root/WireGuard-0.0.20180620/src/allowedips.o
=C2=A0 CC [M]=C2=A0 /root/WireGuard-0.0.20180620/src/ratelimiter.o=
=C2=A0 CC [M]=C2=A0 /root/WireGuard-0.0.20180620/src/cook= ie.o
=C2=A0 CC [M]=C2=A0 /root/WireGuard-0.0.20180620/src/= netlink.o
=C2=A0 CC [M]=C2=A0 /root/WireGuard-0.0.20180620= /src/crypto/chacha20.o
=C2=A0 CC [M]=C2=A0 /root/WireGuard= -0.0.20180620/src/crypto/poly1305.o
=C2=A0 CC [M]=C2=A0 /r= oot/WireGuard-0.0.20180620/src/crypto/chacha20poly1305.o
= =C2=A0 CC [M]=C2=A0 /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/cryp= to/curve25519-x86_64.h:350: Error: no such instruction: `mulx (%r15),%r8,%r= 12'
/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:3= 50: 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=C2=A0gcc= version 8.1.0 (GCC) to build wireguard=C2=A0but my kernel was o= riginally built with gcc-4.4.7. Will that be a problem ?=C2=A0=C2=A0
<= div>Is there a way to exclude=C2=A0Ellip= tic Curve 25519 or any of the=C2=A0Elliptic Curve while making ? Any other = suggestions please ?

Thanks


--00000000000085ece6056f6e7ce0--