![]() |
![]() |
#23 |
"Carlos Pinho"
Oct 2011
Milton Keynes, UK
514110 Posts |
![]()
Anyone from UK, is this site trustful? I can buy http://www.techee.co.uk/windows-7-pr...nal-64-bit-oem and send across the product key.
|
![]() |
![]() |
![]() |
#24 | |
∂2ω=0
Sep 2002
República de California
5×2,351 Posts |
![]() Quote:
Edit: OK, same version of msys as described in WraithX's gmp-ecm post installed in my C: drive. Only difference is that since I just have a single version of each of mingw64 and msys installed, I used the simpler path here: export PATH=".:/c/mingw64/bin:/usr/local/bin:/bin:$PATH" Now, is there something besides attempting to compile a .c source file I should do to make sure both msys and mingw64 installs are copacetic and playing nice with each other? And should I be doing my gcc compilation from within an msys or a mingw64 shell? Last fiddled with by ewmayer on 2017-06-07 at 00:03 |
|
![]() |
![]() |
![]() |
#25 | |
"Antonio Key"
Sep 2011
UK
21316 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#26 | |
Mar 2006
21D16 Posts |
![]() Quote:
One note about the difference between the two packages. Mingw64 is just the compiler toolchain, it provides things like gcc, g++, ar, as, ld, etc. Msys is the linux like environment, it provides things like grep, gunzip, make, autoconf, sed, awk, cat, head, tail, etc. So, to answer your last question, you'll compile everything inside an msys shell, as there is no mingw64 shell. |
|
![]() |
![]() |
![]() |
#27 | |
∂2ω=0
Sep 2002
República de California
1175510 Posts |
![]() Quote:
In answer to own question, opened an MSYS terminal last night ... ah, Linux, I'd hardly left you and still I missed you so. Then did 'which gcc', that correctly pointed to c:\mingw\bin\gcc.exe (may have the slashes wrong-way, I'm typing this from memory on my macbook), and trial-compilation of a small file worked, in the sense that I need to modify my platform-related preprocessing code to allow Win builds and make gcc-or-compatible-compiler (e.g. clang) the only gating requirement. Will be especially interested to see if all the multithreading and core-affinity stuff works in this emulation environment. Thanks for the tips, WraithX et al! |
|
![]() |
![]() |
![]() |
#28 |
∂2ω=0
Sep 2002
República de California
5·2,351 Posts |
![]()
Unthreaded 64-bit SSE2 build looks good - I just had a gander at the mingw32 predefine list and then used defined(__MINGW32__) to override the 'is windows?' preprocessing section in favor of yes-it's-linux, but it appears that pthreaded build is gonna be more of a challenge - get multiple missing-include-file errors during preprocessing, e.g. files like these are not in the various mingw32 include-dirs:
#include <sys/resource.h> #include <sys/sysctl.h> #include <linux/unistd.h> #include <asm/unistd.h> Has any of the readership done pthreaded code building under msys/mingw32? |
![]() |
![]() |
![]() |
#29 |
Einyen
Dec 2003
Denmark
32·383 Posts |
![]()
It is really easy to use MSYS2: Download the msys2-x86_64 package and install: http://www.msys2.org/
Run these commands in MSYS2: pacman -Syu (restart MSYS2) pacman -Su (restart MSYS2) To install the packages needed to compile GMPECM i usually download these packages: pacman -S mingw-w64-x86_64-gcc pacman -S mingw-w64-x86_64-make pacman -S mingw-w64-x86_64-libtool pacman -S autoconf pacman -S automake pacman -S mingw-w64-x86_64-python3 and then you are ready to go and everything is located inside the C:\msys64 folder, there is no additional c:\mingw64 folder installation needed like in MSYS. Last fiddled with by ATH on 2017-06-08 at 10:28 |
![]() |
![]() |
![]() |
#30 | |
∂2ω=0
Sep 2002
República de California
101101111010112 Posts |
![]() Quote:
But even after restarting msys2 after those installs, 'which gcc' comes up empty - but I do see gcc inside the /c/msys64/mingw64/bin folder, and [path to that] -v shows it's version 6.3.0. Is there a path file somewhere which I need to edit? Also, doing [path-to-gcc] -c of a small sample C file returns (sans errors) almost immediately, but I see no resulting object file. Last fiddled with by ewmayer on 2017-06-09 at 01:32 |
|
![]() |
![]() |
![]() |
#31 |
Einyen
Dec 2003
Denmark
32×383 Posts |
![]()
Yes, sorry. It is a while since I installed it from scratch, so I forgot I edited the path line:
c:\msys64\etc\profile Changed the line: MSYS2_PATH="/usr/local/bin:/usr/bin:/bin" to MSYS2_PATH="/usr/local/bin:/usr/bin:/bin:/mingw64/bin" |
![]() |
![]() |
![]() |
#32 |
Einyen
Dec 2003
Denmark
32·383 Posts |
![]()
I did a reinstall now of my MSYS2 just to make sure there was nothing else I forgot. There was one more thing:
If you install "make" at a later stage, the file is called "mingw32-make.exe" for some reason in the folder "C:\msys64\mingw64\bin". So you just need to make a copy of the file and call it "make.exe" otherwise it does not work for GMPECM at least. |
![]() |
![]() |
![]() |
#33 | |
∂2ω=0
Sep 2002
República de California
2DEB16 Posts |
![]() Quote:
As with the separate msys+mingw method, though, no pthread support - looks like users will be limited to unthreaded mode. |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
MFAKTC won't start under RDP (win7) | swl551 | Software | 23 | 2014-10-17 16:25 |
getting all cores to work on Win7 | wildrabbitt | Information & Answers | 16 | 2014-07-16 06:01 |
The webpage cannot be found for win7 64 | benDan | Software | 4 | 2012-12-17 05:59 |
XP 32-bit to Win7 64-bit slowdown | willmore | Software | 6 | 2009-11-07 05:33 |
How do I get my ubuntu install past minimal install? | jasong | Linux | 2 | 2006-12-07 00:38 |