mersenneforum.org  

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

Reply
 
Thread Tools
Old 2013-03-09, 01:48   #12
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

11·317 Posts
Default

Quote:
Originally Posted by leif View Post
Looks like you're feeding an Apple assembler (on MacOS X 10.5?) with assembly code for the 64-bit PowerPC ELF ABI (which e.g. Linux uses).
Yes, Mac OS X 10.5.8 - Dual 2.5 GHz PowerPC G5.

Quote:
We certainly need more details to fix this, but you may just try configuring with --disable-shared (which should be slightly faster anyway), but still --enable-asm-redc.
I still get the same make error as this post.

Quote:
What does ./config.guess (and uname -a) give?
See below.

Code:
...$ ./config.guess
powerpc-apple-darwin9.8.0

...$ uname -a
Darwin richard-d(...)-power-mac-g5.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh

Quote:
Can you upload the output of a ./configure run, and (afterwards) the file config.log?
(Too big, will try by PM.)

Quote:
(Btw., isn't MacOS X on PowerPC 32-bit only? AFAIK you may use some advanced features of 64-bit PowerPC CPUs on it, but the OS and the applications are still 32-bit.)
As I understand it, Mac PPC line had 3 flavors. G3 and G4 which were 32-bit PPC and G5 (a.k.a.970) as the first true 64-bit OS system. Perhaps Mark (a.k.a. rogue) can correct me.
RichD is offline   Reply With Quote
Old 2013-03-09, 02:09   #13
leif
 
Mar 2013

3 Posts
Default

Quote:
Originally Posted by leif View Post
And I'm pretty sure now --disable-shared --enable-asm-redc won't work for you either (with 6.4.4) on Darwin, as the PowerPC64 assembly code is ELF-only now, assuming Darwin on PowerPC was always 32-bit, hence not using it; sorry.
P.S.: As a "quick fix" for 6.4.4, it should be sufficient to simply replace all *.asm files in ecm-6.4.4/powerpc64/ by the ones of a previous release (6.4.3, 6.3.x).

If you've already configured with --enable-asm-redc, reconfiguring shouldn't be necessary, but make sure to run make clean before (re)running make again.

HTH,

-leif
leif is offline   Reply With Quote
Old 2014-01-19, 15:37   #14
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·11·191 Posts
Default Updating Question

I'm currently running GMP 5.1.2 on several machines and am going to change over to 5.1.3. Will I need to recompile GMP-ECM after the change, or is everything dynamic and ECM will make the change without recompiling?

Thanks...
EdH is offline   Reply With Quote
Old 2014-01-19, 17:11   #15
Ralf Recker
 
Ralf Recker's Avatar
 
Oct 2010

191 Posts
Default

Quote:
Originally Posted by EdH View Post
I'm currently running GMP 5.1.2 on several machines and am going to change over to 5.1.3. Will I need to recompile GMP-ECM after the change, or is everything dynamic and ECM will make the change without recompiling?

Thanks...
On my machine gmp is statically linked:

Code:
[ralf@quadriga ecm]$ ldd ecm
    linux-vdso.so.1 =>  (0x00007fff58960000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f49ca1f4000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f49c9eed000)
    libgomp.so.1 => /lib64/libgomp.so.1 (0x00007f49c9cdd000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f49c9ac0000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f49c9701000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f49ca411000)
I have to recompile ecm to take advantage of a new gmp version, even if it is "only" a bugfix release like 5.1.3.

Code:
GMP-ECM 7.0-dev [configured with GMP 5.1.90, --enable-asm-redc, --enable-gpu, --enable-assert, --enable-openmp] [ECM]
5.1.90 is the development version of gmp-5.2.0. The run time for stage 1 of one ECM curve (B1=4e8) on a 200 digit generalized Cullen Woodall number dropped from 1710s to 1310s on my box. Stage 2 runs "only" 15% faster.

This is a result of the "basecase assembly optimization project"
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	183
Size:	16.4 KB
ID:	10686  

Last fiddled with by Ralf Recker on 2014-01-19 at 17:24
Ralf Recker is offline   Reply With Quote
Old 2014-01-19, 18:21   #16
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

420210 Posts
Default

Quote:
Originally Posted by Ralf Recker View Post
On my machine gmp is statically linked:

Code:
[ralf@quadriga ecm]$ ldd ecm
    linux-vdso.so.1 =>  (0x00007fff58960000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f49ca1f4000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f49c9eed000)
    libgomp.so.1 => /lib64/libgomp.so.1 (0x00007f49c9cdd000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f49c9ac0000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f49c9701000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f49ca411000)
I have to recompile ecm to take advantage of a new gmp version, even if it is "only" a bugfix release like 5.1.3.

Code:
GMP-ECM 7.0-dev [configured with GMP 5.1.90, --enable-asm-redc, --enable-gpu, --enable-assert, --enable-openmp] [ECM]
5.1.90 is the development version of gmp-5.2.0. The run time for stage 1 of one ECM curve (B1=4e8) on a 200 digit generalized Cullen Woodall number dropped from 1710s to 1310s on my box. Stage 2 runs "only" 15% faster.

This is a result of the "basecase assembly optimization project"
Thanks! Since the release of 5.2.0 is "scheduled" for this month, I'll hold off on moving to 5.1.3 for the bulk of my machines, then. When 5.2.0 does arrive, I'll go back through all my programs...
EdH is offline   Reply With Quote
Old 2014-05-13, 21:27   #17
Nsty
 
May 2014

2 Posts
Default GMP-ECM vs compilation problem

Hi all, I hope this is the right place to ask and you can help me.
I encountered a problem compiling GMP-ECM under Win with VS 2010.
ECM 6.4.4
MPIR 2.6.0

I am using mpir and had it built and it seems to work.
I was following the README from ECM but I cannot get it build.

Code:
       _YASM:
         Assembling mulredc.asm
         Assembling redc.asm
         cmd.exe /C "C:\Users\Kamil\AppData\Local\Temp\tmp49d7d7a13cb147e6a3b8a2bb360a24a2.cmd"
         "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\"vsyasm.exe -Xvc -f Win32 -o "Win32\Release\\" -rnasm -pnasm   ..\assembler\mulredc.asm  ..\assembler\redc.asm
         The system cannot find the path specified.
     1>C:\Users\Kamil\Desktop\gmp-parent\ECM\build.vc10\vsyasm.targets(45,5): error MSB3721: The command ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\"vsyasm.exe -Xvc -f Win32 -o "Win32\Release\\" -rnasm -pnasm   ..\assembler\mulredc.asm  ..\assembler\redc.asm" exited with code 1.
     1>Done Building Project "C:\Users\Kamil\Desktop\gmp-parent\ECM\build.vc10\libecm\libecm.vcxproj" (build target(s)) -- FAILED.
I tripple-checked and I have:
- VSYASM in the Visual Studio VC\bin\
- mulredc.asm in gmp-parent\ECM\build.vc10\assembler
- redc.asm in gmp-parent\ECM\build.vc10\assembler

anyone encountered similar issue? Will appreciate any help.
Nsty is offline   Reply With Quote
Old 2014-05-14, 20:25   #18
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

32×199 Posts
Default

Someone else may know better, but right-click on the project and choose "Build Customizations". Make sure VSYASM is checked under that. That could be one possibility.
wombatman is offline   Reply With Quote
Old 2014-05-14, 20:55   #19
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

32·241 Posts
Default

Quote:
Originally Posted by Nsty View Post
Hi all, I hope this is the right place to ask and you can help me.
I encountered a problem compiling GMP-ECM under Win with VS 2010.
ECM 6.4.4
MPIR 2.6.0

I am using mpir and had it built and it seems to work.
I was following the README from ECM but I cannot get it build.

Code:
       _YASM:
         Assembling mulredc.asm
         Assembling redc.asm
         cmd.exe /C "C:\Users\Kamil\AppData\Local\Temp\tmp49d7d7a13cb147e6a3b8a2bb360a24a2.cmd"
         "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\"vsyasm.exe -Xvc -f Win32 -o "Win32\Release\\" -rnasm -pnasm   ..\assembler\mulredc.asm  ..\assembler\redc.asm
         The system cannot find the path specified.
     1>C:\Users\Kamil\Desktop\gmp-parent\ECM\build.vc10\vsyasm.targets(45,5): error MSB3721: The command ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\"vsyasm.exe -Xvc -f Win32 -o "Win32\Release\\" -rnasm -pnasm   ..\assembler\mulredc.asm  ..\assembler\redc.asm" exited with code 1.
     1>Done Building Project "C:\Users\Kamil\Desktop\gmp-parent\ECM\build.vc10\libecm\libecm.vcxproj" (build target(s)) -- FAILED.
I tripple-checked and I have:
- VSYASM in the Visual Studio VC\bin\
- mulredc.asm in gmp-parent\ECM\build.vc10\assembler
- redc.asm in gmp-parent\ECM\build.vc10\assembler

anyone encountered similar issue? Will appreciate any help.
There's a " in vsyasm.exe
kracker is offline   Reply With Quote
Old 2014-05-14, 21:22   #20
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

179110 Posts
Default

Quote:
Originally Posted by kracker View Post
There's a " in vsyasm.exe
I think that goes with the quote mark at the beginning of the line.
wombatman is offline   Reply With Quote
Old 2014-05-15, 02:02   #21
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

32×241 Posts
Default

Quote:
Originally Posted by wombatman View Post
I think that goes with the quote mark at the beginning of the line.
? If done correctly, it should be at the end of the filepath.
kracker is offline   Reply With Quote
Old 2014-05-15, 02:10   #22
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

32·199 Posts
Default

I just meant that I think it's just the path to the VC bin folder as

Code:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\"
And then the vsyasm.exe is tacked on to that.
wombatman is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed compiling GMP-ECM M0CZY GMP-ECM 76 2009-09-29 15:48
Compiling my first program by using GMP Raman Programming 3 2009-02-14 02:17
Compiling Phrot rogue Sierpinski/Riesel Base 5 142 2009-01-09 03:42
Compiling 24.14 CBoland Software 6 2007-08-01 00:11
Compiling new version of GMP-ECM M0CZY GMP-ECM 3 2006-05-27 09:54

All times are UTC. The time now is 10:58.


Fri Jan 28 10:58:18 UTC 2022 up 189 days, 5:27, 2 users, load averages: 1.49, 1.23, 1.05

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔