wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6
@ 2018-06-25  2:53 karthik kumar
  2018-06-26  0:28 ` Jason A. Donenfeld
  0 siblings, 1 reply; 9+ messages in thread
From: karthik kumar @ 2018-06-25  2:53 UTC (permalink / raw)
  To: wireguard

[-- 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 --]

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

* Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6
  2018-06-25  2:53 src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6 karthik kumar
@ 2018-06-26  0:28 ` Jason A. Donenfeld
  2018-06-26  2:57   ` karthik kumar
  0 siblings, 1 reply; 9+ messages in thread
From: Jason A. Donenfeld @ 2018-06-26  0:28 UTC (permalink / raw)
  To: kumarkarthikn; +Cc: WireGuard mailing list

Hello,

Please use CentOS 7.

Jason

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

* Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6
  2018-06-26  0:28 ` Jason A. Donenfeld
@ 2018-06-26  2:57   ` karthik kumar
  2018-06-26  3:32     ` Jason A. Donenfeld
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: karthik kumar @ 2018-06-26  2:57 UTC (permalink / raw)
  To: Jason; +Cc: wireguard

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

Hi,
  I did see the yum repo already being there RPMs available. But we use
only centos 6 and are desperately looking for alternate of strongswan :(
Is there any other suggestion for me, other than Centos 7 ? Is it worth
trying to rebuild the kernel with 8.1 gcc ? Is there an option like
*--without-elliptic-curve* that I can use ?

Thanks

On Tue, Jun 26, 2018 at 5:58 AM Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> Hello,
>
> Please use CentOS 7.
>
> Jason
>

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

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

* Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6
  2018-06-26  2:57   ` karthik kumar
@ 2018-06-26  3:32     ` Jason A. Donenfeld
  2018-06-26  6:10     ` Lucian Cristian
  2018-09-01 23:38     ` Mike Russo
  2 siblings, 0 replies; 9+ messages in thread
From: Jason A. Donenfeld @ 2018-06-26  3:32 UTC (permalink / raw)
  To: kumarkarthikn; +Cc: WireGuard mailing list

It's probably possible to get this working with CentOS 6. But I'm not
going to spend time on it, and I'd encourage you to switch to a newer
version that sees more security attention.

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

* Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6
  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-09-01 23:38     ` Mike Russo
  2 siblings, 2 replies; 9+ messages in thread
From: Lucian Cristian @ 2018-06-26  6:10 UTC (permalink / raw)
  To: wireguard

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

On 26.06.2018 05:57, karthik kumar wrote:
> Hi,
>   I did see the yum repo already being there RPMs available. But we 
> use only centos 6 and are desperately looking for alternate of 
> strongswan :(
> Is there any other suggestion for me, other than Centos 7 ? Is it 
> worth trying to rebuild the kernel with 8.1 gcc ? Is there an option 
> like /--without-elliptic-curve/ that I can use ?
>
> Thanks
>
> On Tue, Jun 26, 2018 at 5:58 AM Jason A. Donenfeld <Jason@zx2c4.com 
> <mailto:Jason@zx2c4.com>> wrote:
>
>     Hello,
>
>     Please use CentOS 7.
>
>     Jason
>
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard

search the mailing list, I proposed a patch for centos 6, see if it's 
working, but you have to use elrepo kernels 
http://elrepo.org/linux/kernel/el6/x86_64/RPMS/


Regards


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

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

* Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6
  2018-06-26  6:10     ` Lucian Cristian
@ 2018-06-26 13:32       ` Sebastian Gottschall
  2018-07-03  8:59       ` Vbook A1
  1 sibling, 0 replies; 9+ messages in thread
From: Sebastian Gottschall @ 2018-06-26 13:32 UTC (permalink / raw)
  To: wireguard

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

try at least gcc 6 minimum. i dont know which kernel is used in centos 
6. lowest kernel version i tested is 3.10


Sebastian


Am 26.06.2018 um 08:10 schrieb Lucian Cristian:
> On 26.06.2018 05:57, karthik kumar wrote:
>> Hi,
>>   I did see the yum repo already being there RPMs available. But we 
>> use only centos 6 and are desperately looking for alternate of 
>> strongswan :(
>> Is there any other suggestion for me, other than Centos 7 ? Is it 
>> worth trying to rebuild the kernel with 8.1 gcc ? Is there an option 
>> like /--without-elliptic-curve/ that I can use ?
>>
>> Thanks
>>
>> On Tue, Jun 26, 2018 at 5:58 AM Jason A. Donenfeld <Jason@zx2c4.com 
>> <mailto:Jason@zx2c4.com>> wrote:
>>
>>     Hello,
>>
>>     Please use CentOS 7.
>>
>>     Jason
>>
>>
>>
>> _______________________________________________
>> WireGuard mailing list
>> WireGuard@lists.zx2c4.com
>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>
> search the mailing list, I proposed a patch for centos 6, see if it's 
> working, but you have to use elrepo kernels 
> http://elrepo.org/linux/kernel/el6/x86_64/RPMS/
>
>
> Regards
>
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard


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

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

* Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6
  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
  1 sibling, 1 reply; 9+ messages in thread
From: Vbook A1 @ 2018-07-03  8:59 UTC (permalink / raw)
  To: Lucian Cristian; +Cc: wireguard

WARNING: if you want to use ELrepo kernel - make sure your server does
not have the Matrox G200 series video card! CentOS 6.x with kernel 4.x
will not boot on Matrox GPU.

On Tue, Jun 26, 2018 at 1:10 PM, Lucian Cristian <luci@powerneth.ro> wrote:
> On 26.06.2018 05:57, karthik kumar wrote:
>
> Hi,
>   I did see the yum repo already being there RPMs available. But we use only
> centos 6 and are desperately looking for alternate of strongswan :(
> Is there any other suggestion for me, other than Centos 7 ? Is it worth
> trying to rebuild the kernel with 8.1 gcc ? Is there an option like
> --without-elliptic-curve that I can use ?
>
> Thanks
>
> On Tue, Jun 26, 2018 at 5:58 AM Jason A. Donenfeld <Jason@zx2c4.com> wrote:
>>
>> Hello,
>>
>> Please use CentOS 7.
>>
>> Jason
>
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>
> search the mailing list, I proposed a patch for centos 6, see if it's
> working, but you have to use elrepo kernels
> http://elrepo.org/linux/kernel/el6/x86_64/RPMS/
>
>
> Regards
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>

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

* Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6
  2018-07-03  8:59       ` Vbook A1
@ 2018-07-03  9:04         ` Lucian Cristian
  0 siblings, 0 replies; 9+ messages in thread
From: Lucian Cristian @ 2018-07-03  9:04 UTC (permalink / raw)
  Cc: wireguard

On 03.07.2018 11:59, Vbook A1 wrote:
> WARNING: if you want to use ELrepo kernel - make sure your server does
> not have the Matrox G200 series video card! CentOS 6.x with kernel 4.x
> will not boot on Matrox GPU.
>
> On Tue, Jun 26, 2018 at 1:10 PM, Lucian Cristian <luci@powerneth.ro> wrote:
>> On 26.06.2018 05:57, karthik kumar wrote:
>>
>> Hi,
>>    I did see the yum repo already being there RPMs available. But we use only
>> centos 6 and are desperately looking for alternate of strongswan :(
>> Is there any other suggestion for me, other than Centos 7 ? Is it worth
>> trying to rebuild the kernel with 8.1 gcc ? Is there an option like
>> --without-elliptic-curve that I can use ?
>>
>> Thanks
>>
>> On Tue, Jun 26, 2018 at 5:58 AM Jason A. Donenfeld <Jason@zx2c4.com> wrote:
>>> Hello,
>>>
>>> Please use CentOS 7.
>>>
>>> Jason
>>
>>
>> _______________________________________________
>> WireGuard mailing list
>> WireGuard@lists.zx2c4.com
>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>>
>> search the mailing list, I proposed a patch for centos 6, see if it's
>> working, but you have to use elrepo kernels
>> http://elrepo.org/linux/kernel/el6/x86_64/RPMS/
>>
>>
>> Regards
>>
>>
>> _______________________________________________
>> WireGuard mailing list
>> WireGuard@lists.zx2c4.com
>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>>
I don't remember having trouble on a fujitsu rx300 with

10:05.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA 
G200e [Pilot] ServerEngines (SEP1) (rev 02)

but I've updated since then

Regards

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

* Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6
  2018-06-26  2:57   ` karthik kumar
  2018-06-26  3:32     ` Jason A. Donenfeld
  2018-06-26  6:10     ` Lucian Cristian
@ 2018-09-01 23:38     ` Mike Russo
  2 siblings, 0 replies; 9+ messages in thread
From: Mike Russo @ 2018-09-01 23:38 UTC (permalink / raw)
  To: wireguard

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

While I do definitely recommend their suggestion to use CentOS 7 (or take this opportunity to get on a distro like Debian or Ubuntu that supports easily upgrading to a new major version!) I was able to get this working on my CentOS 6 server using the patch from Lucian here:
https://lists.zx2c4.com/pipermail/wireguard/2017-June/001444.html
This patches version 20170613 which is definitely an older version of Wireguard, but the new client works just fine with it. So you'd have to go get the old release here https://github.com/WireGuard/WireGuard/archive/0.0.20170613.tar.gz paste that message into a file called "c6patch" or something, and then do patch -p0 < c6patch above the directory where you extracted the .tar.gz. Then follow the installation instructions and it should build with the version of gcc installed on CentOS-6.
Oh, but first you'd have to install the kernel-lt and kernel-lt-devel packages from ELRepo http://elrepo.org/tiki/kernel-lt. If wireguard is merged into the mainline, perhaps kernel-ml packages from elrepo will contain it.
There are also a couple of modifications to wg-quick (get rid of "local -n", and the check that uses ip for type of device) but after that it worked great, seriously! ☺
Not sure if they will continue support connecting to older servers however.



--

Michael Russo, Systems Engineer PaperSolve, Inc. 268 Watchogue Road Staten Island, NY 10314 Your random quote for today: One man's Mede is another man's Persian. -- George M. Cohan

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

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

end of thread, other threads:[~2018-09-01 23:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-25  2:53 src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6 karthik kumar
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

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).