Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6

2018-09-03 Thread Mike Russo
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
___
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard


Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6

2018-07-03 Thread Lucian Cristian

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

___
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard


Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6

2018-07-03 Thread Vbook A1
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  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  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
>
___
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard


Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6

2018-06-26 Thread Sebastian Gottschall
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 > 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


___
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard


Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6

2018-06-25 Thread 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 > 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


Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6

2018-06-25 Thread Jason A. Donenfeld
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.
___
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard


Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6

2018-06-25 Thread karthik kumar
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  wrote:

> Hello,
>
> Please use CentOS 7.
>
> Jason
>
___
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard


Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6

2018-06-25 Thread Jason A. Donenfeld
Hello,

Please use CentOS 7.

Jason
___
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard


src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6

2018-06-25 Thread karthik kumar
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
___
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard