mersenneforum.org > YAFU Compiling YAFU for Windows using mingw
 Register FAQ Search Today's Posts Mark Forums Read

 2018-06-21, 23:58 #34 VictordeHolland     "Victor de Hollander" Aug 2011 the Netherlands 23×3×72 Posts Thanks again ! r375 now factors the problematic C77 without issues: Win10 Core2Duo (SSE2) GMP 6.1.2 GMP-ECM 7.0.4 Msieve SVN1019 Msys2 build (make -f Makefile.mingw x86_64 NFS=1) Code: PS C:\YAFU-r375-wip-win64-core2> .\yafu-r375-wip--win64-core2.exe >> factor(48202395317126317959846339946962077929419264021859989059557078165565552082529) fac: factoring 48202395317126317959846339946962077929419264021859989059557078165565552082529 fac: using pretesting plan: normal fac: no tune info: using qs/gnfs crossover of 95 digits div: primes less than 10000 fmt: 1000000 iterations rho: x^2 + 3, starting 1000 iterations on C77 rho: x^2 + 2, starting 1000 iterations on C77 rho: x^2 + 1, starting 1000 iterations on C77 pm1: starting B1 = 150K, B2 = gmp-ecm default on C77 ecm: 30/30 curves on C52, B1=2K, B2=gmp-ecm default ecm: 11/14 curves on C52, B1=11K, B2=gmp-ecm default fac: factoring 10025238874798413268464641 fac: using pretesting plan: normal fac: no tune info: using qs/gnfs crossover of 95 digits div: primes less than 10000 fmt: 1000000 iterations rho: x^2 + 3, starting 1000 iterations on C26 rho: x^2 + 2, starting 1000 iterations on C26 rho: x^2 + 1, starting 1000 iterations on C26 Total factoring time = 0.3281 seconds Total factoring time = 1.5469 seconds ***factors found*** P21 = 140379251771132019991 P32 = 34250819522896991734742623749959 P13 = 2648315536309 P13 = 3785515259549 1 >> exit The resulting executable also seems to work on my Win7 i7-2500k and also factors the problematic C77 without problems (tested in cmd.exe and Powershell)
 2018-06-23, 06:41 #35 LaurV Romulan Interpreter     "name field" Jun 2011 Thailand 24·613 Posts Does the last release still supports 32 bits? And if so, where can I get a win32 exe? Thanks a billion in advance. edit: no zipping of .dat of relations, if possible Last fiddled with by LaurV on 2018-06-23 at 06:42
2018-06-23, 13:39   #36
VictordeHolland

"Victor de Hollander"
Aug 2011
the Netherlands

23·3·72 Posts

Quote:
 Originally Posted by LaurV Does the last release still supports 32 bits? And if so, where can I get a win32 exe?
Do you still have machines that are not 64bit capable? Everything from the first Core2Duo series (released 2006-2007) should be 64bit capable?

 2018-06-25, 14:08 #37 LaurV Romulan Interpreter     "name field" Jun 2011 Thailand 24×613 Posts These are not old machines, they are a bunch of i5 and i7 machines where I can't update the OS. It is WinXP32 and I mentioned them in the past.
2018-06-25, 14:42   #38
bsquared

"Ben"
Feb 2007

3·1,193 Posts

Quote:
 Originally Posted by LaurV These are not old machines, they are a bunch of i5 and i7 machines where I can't update the OS. It is WinXP32 and I mentioned them in the past.
I just tried to build the 32-bit version with Visual Studio and got several errors. I admit that it is somewhat difficult for me to summon the energy to deal with these errors. For better or worse, I typically don't write portable code first and then optimize... I just start with the new and exciting stuff. So going back and re-writing new things so they will work with old and dead technology is painful.

This is just me complaining... try to ignore

The list of errors is small-ish so maybe it won't be too bad.

2018-06-25, 16:40   #39
yoyo

Oct 2006
Berlin, Germany

10011100102 Posts

Quote:
 Originally Posted by LaurV These are not old machines, they are a bunch of i5 and i7 machines where I can't update the OS. It is WinXP32 and I mentioned them in the past.
You can attach those machines with BOINC to https://yafu.myfirewall.org/yafu/ or https://www.rechenkraft.net/yoyo ECM project. There are 32 bit Windows applications available. ;-)

2018-06-27, 08:43   #40
VictordeHolland

"Victor de Hollander"
Aug 2011
the Netherlands

22308 Posts

Quote:
 Originally Posted by LaurV These are not old machines, they are a bunch of i5 and i7 machines where I can't update the OS. It is WinXP32 and I mentioned them in the past.
Quote:
 Originally Posted by yoyo You can attach those machines with BOINC to https://yafu.myfirewall.org/yafu/ or https://www.rechenkraft.net/yoyo ECM project. There are 32 bit Windows applications available. ;-)
I would advice against connecting WinXP machines to the internet.

2018-06-27, 12:15   #41
henryzz
Just call me Henry

"David"
Sep 2007
Cambridge (GMT/BST)

3·1,979 Posts

Quote:
 Originally Posted by VictordeHolland Maybe, I haven't tried it yet. Some things I found in a couple of minutes: - the Linux subsystem (I installed Ubuntu from the store) gets installed very deep in: C:\users\\AppData\Local\Packages\CanonicalGroup........\ and I have no idea where it places the filesystem folders (bin etc home lib usr var etc )? and you still would have to install mingw (as the gcc compiler for Windows executables) I think. - You can't copy paste text from Windows into the Ubuntu-linuxsubsystem (which you can with the MSYS2 terminal) - If you install the mingw toolchain with the package manager (pacman) in MSYS2 you can start a new terminal with mingw64.exe it will automatically select the mingw gcc/g++ compiler as default (you can check it with "gcc -v" and "g++ -v"). It is also a quite new version (7.3.0). With Ubuntu-Linux-Subsystem after apt-get install build-essential apt-get install mingw-w64 you get: gcc -v Target: x86_64-linux-gnu gcc version 5.4.0 20160609 and (I had to lookup the full name of the mingw gcc before I could check!) x86_64-w64-mingw32-gcc -v Target: x86_64-w64-mingw32 gcc version 5.3.1 20160211 (GCC)
It doesn't really matter where the subsystem folders are as it mounts the pc's drives.

I am fairly certain I can copy and paste in and out of the Ubuntu subsystem. I will check tonight.

Installing mingw can be done by a script rather than manual fiddling.

To temporarily switch the default gcc to mingw it should be possible to use update-alternatives.

 2018-06-30, 13:02 #42 VictordeHolland     "Victor de Hollander" Aug 2011 the Netherlands 23·3·72 Posts GMP-6.1.2 GMP-ECM 7.0.4 Both compile succesfully on 32bit, but with compiling Msieve it complains about the lenght of ints and floats and I get a bunch of errors. I didn't put any more time in it.
2018-06-30, 15:56   #43
bsquared

"Ben"
Feb 2007

3×1,193 Posts

Quote:
 Originally Posted by VictordeHolland GMP-6.1.2 GMP-ECM 7.0.4 Both compile succesfully on 32bit, but with compiling Msieve it complains about the lenght of ints and floats and I get a bunch of errors. I didn't put any more time in it.
Historically I have always used visual studio to build the 32-bit executable. (Maybe once have I ever tried to get a 32-bit linux version - I'm sure it wouldn't work now.) And despite my little rant it actually wasn't too bad to get it to work. I'll check in the changes and post the result later when I get more time.

Last fiddled with by bsquared on 2018-06-30 at 15:56

2018-06-30, 17:02   #44
VictordeHolland

"Victor de Hollander"
Aug 2011
the Netherlands

23·3·72 Posts

Quote:
 Originally Posted by bsquared Historically I have always used visual studio to build the 32-bit executable. (Maybe once have I ever tried to get a 32-bit linux version - I'm sure it wouldn't work now.) And despite my little rant it actually wasn't too bad to get it to work. I'll check in the changes and post the result later when I get more time.
You're too good to LaurV

 Similar Threads Thread Thread Starter Forum Replies Last Post Mr. Odd YAFU 4 2017-04-24 15:40 wombatman YAFU 10 2016-01-21 19:48 Stargate38 YAFU 14 2016-01-20 21:46 skan NFSNET Discussion 7 2012-04-18 10:30 BotXXX Factoring 25 2005-09-13 12:24

All times are UTC. The time now is 20:55.

Sun Nov 28 20:55:00 UTC 2021 up 128 days, 15:23, 0 users, load averages: 0.95, 1.03, 1.10