mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2005-09-24, 17:13   #1
CBoland
 
Sep 2005
Arlington, Texas

2 Posts
Question Compiling 24.14

I am having trouble compiling 24.14. I successfully rebuilt gwnum.lib with make. When I try to build prime95 with make, I see this message:
make: Nothing to be done for 'compile'.

When I try to build with Visual Studio, I get this message:
Prime95 fatal error LNK1136: invalid or corrupt file

I built 24.13 just three weeks ago with Visual Studio, so I'm stumped at why the build fails now.

I deleted all of the source code and laid down the fresh 24.14 sources, but still got the same result.

Any suggestions?

Current toolset:
GNU Make 3.79.1
Visual Studio 2003

Platform: Windows XP Pro SP2
CBoland is offline   Reply With Quote
Old 2005-09-24, 23:13   #2
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

25×35 Posts
Default

I use nmake which comes with MSVC
Prime95 is offline   Reply With Quote
Old 2005-09-25, 19:39   #3
CBoland
 
Sep 2005
Arlington, Texas

2 Posts
Default

Thanks Prime95. That did it. I used this command:
nmake /f compile /a

Do you compile Prime95.sln also with nmake, or do you use Visual Studio? I've had to make two edits to get it to compile with Visual Studio:
1. Added security def, SECURITY_WIN32, to the "C/C++ Preprocessor" settings in the project.
2. Commented out line 1228 of commonc.c (//#include "security.c"). VS can't find security.c (and neither could I).
CBoland is offline   Reply With Quote
Old 2005-09-25, 19:56   #4
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

171408 Posts
Default

I use the .sln file with visual studio. Even though the .sln file is for MSVC 7, I used a beta of MSVC 8 to build 24.14.

The security.c file contains the secret hashing function to let primenet know this is a trusted client.
Prime95 is offline   Reply With Quote
Old 2006-03-22, 13:04   #5
marius7
 

31×89 Posts
Default

I would like also to recompile 24.14 to modify the way the program makes logs. I want to make an log file for screen output messages (with time if possible). But I'm not too good with Visual Studio so if someone can help me would be very nice.
  Reply With Quote
Old 2007-07-31, 23:51   #6
badhras
 
Jul 2007

2 Posts
Default

Quote:
Originally Posted by Prime95 View Post
I use the .sln file with visual studio. Even though the .sln file is for MSVC 7, I used a beta of MSVC 8 to build 24.14.

The security.c file contains the secret hashing function to let primenet know this is a trusted client.
Is there a special step or a command-line switch that I need to do/use to build gwnum?

I'm using prime95\prime95.sln with Visual Studio 2005 and it's complaining about the gwnum dependency. I tried using nmake /f compile all from within the gwnum directory, and I get numerous errors in the following form.

xmult1.asm(?37?) : error A2070: invalid instruction operands
_movsd(?2?): Macro Called From
xcopy_7_words(?4?): Macro Called From
xfft32(?52?): Macro Called From
type1(?11?): Macro Called From
xfft(?1?): Macro Called From
xmult1.asm(?37?): Main Line Code

The green text changes, but appears lots of times.
badhras is offline   Reply With Quote
Old 2007-08-01, 00:11   #7
badhras
 
Jul 2007

216 Posts
Default

Quote:
Originally Posted by Prime95 View Post
I use the .sln file with visual studio. Even though the .sln file is for MSVC 7, I used a beta of MSVC 8 to build 24.14.

The security.c file contains the secret hashing function to let primenet know this is a trusted client.
Is there something special I need to do before doing nmake /f compile when building gwnum using Visual Studio (2005)? I got numerous A2070 errors from ml.

ml /c /coff /DPPRO mult.asm
Assembling: mult.asm
ml /c /coff /DPPRO mult1.asm
Assembling: mult1.asm
... (lots of successful ml/assembling calls)...
Assembling: cpuidhlp.asm
ml /c /coff xmult1.asm
Assembling: xmult1.asm
xmult1.asm(37) : error A2070: invalid instruction operands
_movsd(2): Macro Called From
xcopy_7_words(4): Macro Called From
xfft32(52): Macro Called From
type1(11): Macro Called From
xfft(1): Macro Called From
xmult1.asm(37): Main Line Code
... (lots of failed ml calls with errors on different line numbers of xmult1.asm)...

I've attached the output of the nmake call.

-nkidd
Attached Files
File Type: txt build.txt (28.1 KB, 207 views)

Last fiddled with by akruppa on 2007-08-01 at 12:45 Reason: The duplicate is probably due to moderation, but I'll leave both
badhras is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling GMP-ECM ATH GMP-ECM 69 2017-01-04 12:03
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 new version of GMP-ECM M0CZY GMP-ECM 3 2006-05-27 09:54

All times are UTC. The time now is 12:51.


Fri Jan 28 12:51:47 UTC 2022 up 189 days, 7:20, 2 users, load averages: 1.49, 1.56, 1.55

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.

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