mersenneforum.org  

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

Reply
 
Thread Tools
Old 2022-01-19, 20:11   #177
WraithX
 
WraithX's Avatar
 
Mar 2006

5×101 Posts
Default

Hello Prime95, I just ran into a small issue when compiling 30.7b9 with MingW64 in MSYS. I just needed to make two small changes to the makemw64 file to correct these issues and get the gwnum.a library to build.

First, on line 29 I needed to add a line continuation character \.
Second, I needed to add a target to build radix.o.

Third, I needed to add "#include <sys/time.h>" to line 68 of gwutil.h to get rid of a warning during compile:
Code:
gcc -I.. -I../sqlite-amalgamation-3180000 -DX86_64 -DWINDOWS64 -O2 -o mw64/giants.o -c giants.c
In file included from giants.c:23:
gwutil.h:68:26: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
 int gettimeofday (struct timeval *tp, void *tzp);
                          ^~~~~~~
gcc -I.. -I../sqlite-amalgamation-3180000 -DX86_64 -DWINDOWS64 -O2 -o mw64/radix.o -c radix.c
In file included from radix.c:17:
gwutil.h:68:26: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
 int gettimeofday (struct timeval *tp, void *tzp);
                          ^~~~~~~
I have attached the updated makemw64.
Attached Files
File Type: txt makemw64.txt (3.3 KB, 4 views)
WraithX is offline   Reply With Quote
Old 2022-01-19, 23:17   #178
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2×132×23 Posts
Default

Quote:
Originally Posted by WraithX View Post
Third, I needed to add "#include <sys/time.h>" to line 68 of gwutil.h to get rid of a warning during compile
Which, of course, breaks the MSVC build. Is there a MINGW ifdef I can test?
Prime95 is online now   Reply With Quote
Old 2022-01-20, 01:09   #179
WraithX
 
WraithX's Avatar
 
Mar 2006

5·101 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Which, of course, breaks the MSVC build. Is there a MINGW ifdef I can test?
Ah, sorry. Good catch! Yes, there are two you can use:
Code:
#define __MINGW32__ 1
#define __MINGW64__ 1
I'd recommend using the mingw64 target. If someone needs the mingw32 target, we can check at that time how to resolve any issues they have.
WraithX is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 21:50.


Sat Jan 22 21:50:58 UTC 2022 up 183 days, 16:19, 0 users, load averages: 1.76, 1.48, 1.38

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.

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