mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > GMP-ECM

Reply
 
Thread Tools
Old 2019-11-10, 21:58   #463
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

3×5×29 Posts
Default

There seems to be at least a bit of traffic at https://gmplib.org/repo/gmp/.

It says:
Code:
./gmpecmcompile: Zeile 210: tar: Kommando nicht gefunden.
./gmpecmcompile: Zeile 212: cd: /c/msys64/home/gmp-6.1.2: No such file or directory
This translates to:
Code:
./gmpecmcompile: line 210: tar: Command not found.
./gmpecmcompile: line 212: cd: /c/msys64/home/gmp-6.1.2: No such file or directory
Actually, /usr/bin does not include a tar binary.
It cannot cd since the call to tar never actually created that folder.
kruoli is offline   Reply With Quote
Old 2019-11-11, 08:16   #464
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

3,037 Posts
Default

I'm not sure why your error is in German, I'm don't think that MSYS2 follows the Windows language?

Did you extract the file gmpecmcompile.zip with 7-zip to C:\ so the folder is called c:\msys64 ?

The file to start MSYS2 should be: C:\msys64\msys2_shell.cmd and when you start it, it should look like the screenshot. If you do a "ls -l" the tar file should be right there.

The tar file is located here: C:\msys64\home\gmp-6.1.2.tar
Attached Thumbnails
Click image for larger version

Name:	Msys2.png
Views:	172
Size:	32.1 KB
ID:	21292  

Last fiddled with by ATH on 2019-11-11 at 08:20
ATH is offline   Reply With Quote
Old 2019-11-11, 13:58   #465
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

3·5·29 Posts
Default

Could you please type which tar on your end? I have a suspicion...

Quote:
Originally Posted by ATH View Post
I'm not sure why your error is in German, I'm don't think that MSYS2 follows the Windows language?
It seems to do that for some reason... (see also in the screenshots):
Code:
Oliver Kruse@OLLAPTOP MSYS /c/msys64/home
# echo $LANG
de_DE.UTF-8
Quote:
Originally Posted by ATH View Post
Did you extract the file gmpecmcompile.zip with 7-zip to C:\ so the folder is called c:\msys64?
Yes, I am using 7-zip 19.00 x64. See the screenshots, the path is correct (I actually extracted it freshly to make those screenshots).

Quote:
Originally Posted by ATH View Post
The file to start MSYS2 should be: C:\msys64\msys2_shell.cmd and when you start it, it should look like the screenshot. If you do a "ls -l" the tar file should be right there.
Yes, that's not the problem. But when starting the script, it simply cannot find tar.

Quote:
Originally Posted by ATH View Post
The tar file is located here: C:\msys64\home\gmp-6.1.2.tar
Indeed, see the screenshots.
Attached Thumbnails
Click image for larger version

Name:	Script Path.png
Views:	160
Size:	27.3 KB
ID:	21293   Click image for larger version

Name:	Startup.png
Views:	164
Size:	41.1 KB
ID:	21294   Click image for larger version

Name:	Tar File Path.png
Views:	150
Size:	27.6 KB
ID:	21295   Click image for larger version

Name:	Script Run.png
Views:	165
Size:	78.6 KB
ID:	21296  
kruoli is offline   Reply With Quote
Old 2019-11-11, 17:53   #466
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

303710 Posts
Default

Ah it was the tar program itself you were missing, I misunderstood.
I had tar.exe in my windows\system32 folder for some reason, so I did not notice it needed to be installed.

You can install it in MSYS2 with the command:
pacman -S tar

I also updated the zip file, so it is already installed.
ATH is offline   Reply With Quote
Old 2019-11-11, 18:44   #467
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

3·5·29 Posts
Red face

Nice! This time, I got a working ecm.exe (if I ignore the problem with the missing libgmp-10.dll as seen previously, which I then fixed manually).
Quote:
Originally Posted by Belteshazzar View Post
For some reason the binaries also needed a libgmp-10.dll.
kruoli is offline   Reply With Quote
Old 2019-11-12, 10:43   #468
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

BDD16 Posts
Default

You can find libgmp-10.dll and any other needed files in the C:\msys64\mingw64\bin folder. You can add that folder to the PATH variable, or copy just that file to another folder in your PATH variable or to the folder with ecm.exe.



Anyone know why libgmp-10.dll that comes with MSYS2 is needed for MSYS2 programs? Programs still uses the GMP version you compiled yourself, you can check by making a C/C++ program printing the GMP version used:
printf("%i %i %i\n",__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL);

and it shows it actually uses the version you compiled yourself.

Here is even an example of a program not using GMP at all that requires libgmp-10.dll:
https://stackoverflow.com/questions/...dll-is-missing

Last fiddled with by ATH on 2019-11-12 at 10:49
ATH is offline   Reply With Quote
Old 2019-11-12, 14:00   #469
unconnected
 
unconnected's Avatar
 
May 2009
Russia, Moscow

47518 Posts
Default

JIC, if anyone have 32bit static build for Linux, please share. Can't compile it by myself due to many compiler errors.
unconnected is online now   Reply With Quote
Old 2019-11-12, 15:02   #470
PhilF
 
PhilF's Avatar
 
Feb 2005
Colorado

2×5×59 Posts
Default

There is a 32-bit version compiled for Ivy Bridge in this post:

https://www.mersenneforum.org/showpo...&postcount=439
PhilF is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Project Links masser Sierpinski/Riesel Base 5 25 2011-11-26 09:21
Links to Precompiled Msieve versions wblipp Msieve 0 2011-07-17 20:59
Links davieddy Information & Answers 9 2010-10-08 14:27
Links question ET_ PrimeNet 0 2008-01-26 09:35
Links. Xyzzy Forum Feedback 2 2007-03-18 02:17

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

Mon Mar 1 22:20:18 UTC 2021 up 88 days, 18:31, 0 users, load averages: 2.21, 2.34, 2.42

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.