mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > CADO-NFS

Reply
 
Thread Tools
Old 2019-11-12, 12:08   #23
Andy
 
Nov 2019

18 Posts
Default

Hi,


I try to build cado-nfs, but run into following issue.
Appreciate for any help



Code:
$ make
[  0%] Configuring gf2x
Configuring gf2x with options --disable-shared --disable-dependency-tracking --enable-fft-interface CC=/usr/bin/cc CXX=/usr/bin/c++.exe CFLAGS=-std=c99 -g -W -Wall -O2  -I/usr/include -I/home/myUser/BC/cado-nfs CXXFLAGS=-std=c++11 -Wno-c++11-compat -g -W -Wall -O2  -Wno-literal-suffix -I/usr/include -I/home/myUser/BC/cado-nfs LDFLAGS=-Wl,-rpath,/usr/lib -L/usr/lib
configure: error: cannot run /bin/sh /home/myUser/BC/cado-nfs/gf2x/config/config.sub
make[2]: *** [CMakeFiles/gf2x-build.dir/build.make:64: gf2x/Makefile] Error 2
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/gf2x-build.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
make: *** [Makefile:7: all] Error 2
Andy is offline   Reply With Quote
Old 2021-07-13, 05:32   #24
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

3·5·7·17 Posts
Default

For anyone operating with WSL2 and trying to connect to a CADO-NFS server hosted within WSL2, you have to do something particular to connect the virtual ethernet adapter created for WSL2 with your actual network connection. See link:

https://www.williamjbowman.com/blog/...er-from-wsl-2/

In particular, this step:
Code:
netsh interface portproxy add v4tov4 listenport=$PORT listenaddress=0.0.0.0 connectport=$PORT connectaddress=127.0.0.1
followed by setting an inbound rule for the port of choice.

I've done this and can confirm that it works. What I'm not clear on is whether you will have to repeat this process every time you restart WSL2/your computer as I've not done that yet.
wombatman is offline   Reply With Quote
Old 2021-07-13, 11:26   #25
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

22·33·5·11 Posts
Default

If you do need to repeat it after rebooting you could add it to .bashrc
henryzz is offline   Reply With Quote
Old 2021-07-13, 23:53   #26
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

3·5·7·17 Posts
Default

Quote:
Originally Posted by henryzz View Post
If you do need to repeat it after rebooting you could add it to .bashrc
It needs to be run in Windows Powershell, but someone posted a Powershell script for it elsewhere.

https://dev.to/vishnumohanrk/wsl-port-forwarding-2e22

I haven't tried this script, but it does the same thing more or less.
wombatman is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
CADO NFS Shaopu Lin CADO-NFS 522 2021-05-04 18:28
CADO help henryzz CADO-NFS 4 2017-11-20 15:14
CADO and WinBlows akruppa Programming 22 2015-12-31 08:37
CADO-NFS skan Information & Answers 1 2013-10-22 07:00
CADO R.D. Silverman Factoring 4 2008-11-06 12:35

All times are UTC. The time now is 07:39.


Wed Dec 8 07:39:41 UTC 2021 up 138 days, 2:08, 1 user, load averages: 1.34, 1.58, 1.62

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.