www.digitalmars.com         C & C++   DMDScript  

D.gnu - Where is the GDC binaries for Windows targeting windows?

reply Rufus Smith <RufusSmith indi.com> writes:
http://gdcproject.org/downloads

I've downloaded what I think is the windows binaries targeting 
unknown(windows?). Using VD, it uses gdc.exe, which is not found. 
I renamed exe. Then it doesn't recognize -m64 or -m32 switch.

If I run, from the command line,

gdc main.d

I get

as: unknown option -- mfloat-abi=hard

downloading soft floating point binaries,

as: unknown option -- mfloat-abi=soft

Does anyone actually test this stuff out before it is released?

BTW, main doesn't use any floating point, it's a simple hello 
world... not that it matters.
Jul 20 2016
parent reply Lodovico Giaretta <lodovico giaretart.net> writes:
On Wednesday, 20 July 2016 at 19:30:01 UTC, Rufus Smith wrote:
 http://gdcproject.org/downloads

 I've downloaded what I think is the windows binaries targeting 
 unknown(windows?). Using VD, it uses gdc.exe, which is not 
 found. I renamed exe. Then it doesn't recognize -m64 or -m32 
 switch.

 If I run, from the command line,

 gdc main.d

 I get

 as: unknown option -- mfloat-abi=hard

 downloading soft floating point binaries,

 as: unknown option -- mfloat-abi=soft

 Does anyone actually test this stuff out before it is released?

 BTW, main doesn't use any floating point, it's a simple hello 
 world... not that it matters.
I never used GDC, but if I understand correctly there's no windows compiler on that page. The last two headings contain compilers that run on windows but produce executables for arm-linux, as you can see from the "target" column of the tables. So they probably aren't what you are looking for.
Jul 20 2016
parent reply Rufus Smith <RufusSmith indi.com> writes:
On Wednesday, 20 July 2016 at 20:02:58 UTC, Lodovico Giaretta 
wrote:
 On Wednesday, 20 July 2016 at 19:30:01 UTC, Rufus Smith wrote:
 [...]
I never used GDC, but if I understand correctly there's no windows compiler on that page. The last two headings contain compilers that run on windows but produce executables for arm-linux, as you can see from the "target" column of the tables. So they probably aren't what you are looking for.
Yeah, that's what it looks like. Why no windows compiler then? regardless, it didn't even compile the hello world file.
Jul 20 2016
parent reply Sebastien Alaiwan <ace17 free.fr> writes:
The bad news is that you will have to build it yourself, the good 
news is that it's easy.

I recently pushed 'one-shot' build scripts for building GDC.
These might help you getting a working GDC compiler targetting 
windows.
The usage is rather simple:

$ git clone https://github.com/Ace17/toolchains
$ toolchains/deploy_toolchain_i686-ace-mingw32

The output is a standalone toolchain targetting MS Windows in:
/tmp/toolchains/i686-ace-mingw32.

Hope this helps!
Jul 20 2016
parent reply Rufus Smith <RufusSmith indi.com> writes:
On Wednesday, 20 July 2016 at 20:42:02 UTC, Sebastien Alaiwan 
wrote:
 The bad news is that you will have to build it yourself, the 
 good news is that it's easy.

 I recently pushed 'one-shot' build scripts for building GDC.
 These might help you getting a working GDC compiler targetting 
 windows.
 The usage is rather simple:

 $ git clone https://github.com/Ace17/toolchains
 $ toolchains/deploy_toolchain_i686-ace-mingw32

 The output is a standalone toolchain targetting MS Windows in:
 /tmp/toolchains/i686-ace-mingw32.

 Hope this helps!
It seems seem all that simple to me! I have to download several packages(gcc, binutils, glib, mingw, etc) and hope they all work. Would it not be possible for you to compile it(surely you already have all that working) and release the binaries? Could add it to that GDC download page. I appreciate the work though.
Jul 20 2016
parent reply Sebastien Alaiwan <ace17 free.fr> writes:
On Wednesday, 20 July 2016 at 21:23:03 UTC, Rufus Smith wrote:
 It seems seem all that simple to me! I have to download several 
 packages(gcc, binutils, glib, mingw, etc) and hope they all 
 work.
Sorry if I wasn't clear: the script will download the required packages, in pre-decided versions, compile them and assemble the result. That's the point. (That would not be "simple" if you had to do it yourself!) On Wednesday, 20 July 2016 at 21:23:03 UTC, Rufus Smith wrote:
 Would it not be possible for you to compile it(surely you 
 already have all that working) and release the binaries?
The scripts produce compilers that runs natively. Which means if I run the mingw script from GNU/Linux, I get a cross compiler, targetting mingw. If I run it from MS Windows, I get a non-cross compiler (targetting mingw). I don't have access to MS Windows machine, so I only can produce cross compilers. Is this what you want? (As a side note, am I mistaken or recent versions of Windows 10 can run native Linux binaries?)
Jul 20 2016
parent reply Rufus Smith <RufusSmith indi.com> writes:
On Thursday, 21 July 2016 at 05:09:03 UTC, Sebastien Alaiwan 
wrote:
 On Wednesday, 20 July 2016 at 21:23:03 UTC, Rufus Smith wrote:
 It seems seem all that simple to me! I have to download 
 several packages(gcc, binutils, glib, mingw, etc) and hope 
 they all work.
Sorry if I wasn't clear: the script will download the required packages, in pre-decided versions, compile them and assemble the result. That's the point. (That would not be "simple" if you had to do it yourself!) On Wednesday, 20 July 2016 at 21:23:03 UTC, Rufus Smith wrote:
 Would it not be possible for you to compile it(surely you 
 already have all that working) and release the binaries?
The scripts produce compilers that runs natively. Which means if I run the mingw script from GNU/Linux, I get a cross compiler, targetting mingw. If I run it from MS Windows, I get a non-cross compiler (targetting mingw). I don't have access to MS Windows machine, so I only can produce cross compilers. Is this what you want?
So, I donwloaded the scripts, no windows version, so I have to download mingw, then select all the correct components. Installed mingw, setup envrionmental variables, tried running script, get errors... So... seems pretty simple to me!
Jul 21 2016
parent reply Sebastien Alaiwan <ace17 free.fr> writes:
On Thursday, 21 July 2016 at 18:39:29 UTC, Rufus Smith wrote:
 So... seems pretty simple to me!
No need to be sarcastic. I understand your frustation about the unavailability of precompiled native mingw binaries ; however please understand that I'm trying to help you here.
 no windows version
It's a shellscript, dude. So yes, you need a bash interpreter. Which means if you're running Windows, you need to have something like MSYS2 ( https://sourceforge.net/projects/msys2/ ) or cygwin. I can't work miracles here: GCC, binutils, mpc, mpfr, and nearly all the others packages invovled in the build process have their build systems rely on a POSIX like environment (... and the availability of a working native gcc compiler!).
Jul 21 2016
parent reply Rufus Smith <RufusSmith indi.com> writes:
On Thursday, 21 July 2016 at 19:36:00 UTC, Sebastien Alaiwan 
wrote:
 On Thursday, 21 July 2016 at 18:39:29 UTC, Rufus Smith wrote:
 So... seems pretty simple to me!
No need to be sarcastic. I understand your frustation about the unavailability of precompiled native mingw binaries ; however please understand that I'm trying to help you here.
Then be clear and precise. You said it was simple. It is not.
 no windows version
It's a shellscript, dude. So yes, you need a bash interpreter.
Um, when I installed mingw, it installed msys. I ran bash to execute the script. That is how I got the errors about missing commands like reapath, nproc, etc. Stuff I guess that doesn't common with the install of msys or mingw. I don't feel like chasing this rabbit. We should have windows GDC binaries on the main page for download. It's not my job to waste time on things I don't know much about to do this. I know there is an anti-windows attitude, but if it's so easy then how about someone install mono and build a windows GDC binary using that?
Jul 21 2016
parent reply B. Gian James <jamesbl research.cs.colorado.edu> writes:
On Thursday, 21 July 2016 at 20:07:43 UTC, Rufus Smith wrote:
 On Thursday, 21 July 2016 at 19:36:00 UTC, Sebastien Alaiwan 
 wrote:
 On Thursday, 21 July 2016 at 18:39:29 UTC, Rufus Smith wrote:
 So... seems pretty simple to me!
No need to be sarcastic. I understand your frustation about the unavailability of precompiled native mingw binaries ; however please understand that I'm trying to help you here.
Then be clear and precise. You said it was simple. It is not.
 no windows version
It's a shellscript, dude. So yes, you need a bash interpreter.
Um, when I installed mingw, it installed msys. I ran bash to execute the script. That is how I got the errors about missing commands like reapath, nproc, etc. Stuff I guess that doesn't common with the install of msys or mingw. I don't feel like chasing this rabbit. We should have windows GDC binaries on the main page for download. It's not my job to waste time on things I don't know much about to do this. I know there is an anti-windows attitude, but if it's so easy then how about someone install mono and build a windows GDC binary using that?
Since you already have mingw environment, you could try precompiled: http://downloads.sourceforge.net/project/gdcwin/gdc/r229/gdc-trunk-r229-gcc-3.4.5.exe They tag via DMD version so not sure what GCC base was used. I do most all D work in Linux, but I do have a windows environment set up. If the link above doesn't give you what you need I can dig into my installation deeper to find the binaries i'm currently using if you need. Good luck! -gian
Jul 21 2016
parent reply B. Gian James <jamesbl research.cs.colorado.edu> writes:
On Thursday, 21 July 2016 at 20:49:41 UTC, B. Gian James wrote:

 Since you already have mingw environment, you could try 
 precompiled:
 http://downloads.sourceforge.net/project/gdcwin/gdc/r229/gdc-trunk-r229-gcc-3.4.5.exe
 They tag via DMD version so not sure what GCC base was used.
 I do most all D work in Linux, but I do have a windows 
 environment set up. If the link above doesn't give you what you 
 need I can dig into my installation deeper to find the binaries 
 i'm currently using if you need.

 Good luck!

 -gian
I went ahead and uploaded the most recent GDC 5.2 for windows to my site. You can download it here: http://botcode.net/gdc-5.2.0+2.066.1.7z Hope this helps. -gian
Jul 21 2016
parent reply Rufus Smith <RufusSmith indi.com> writes:
On Thursday, 21 July 2016 at 21:12:31 UTC, B. Gian James wrote:
 On Thursday, 21 July 2016 at 20:49:41 UTC, B. Gian James wrote:

 Since you already have mingw environment, you could try 
 precompiled:
 http://downloads.sourceforge.net/project/gdcwin/gdc/r229/gdc-trunk-r229-gcc-3.4.5.exe
 They tag via DMD version so not sure what GCC base was used.
 I do most all D work in Linux, but I do have a windows 
 environment set up. If the link above doesn't give you what 
 you need I can dig into my installation deeper to find the 
 binaries i'm currently using if you need.

 Good luck!

 -gian
I went ahead and uploaded the most recent GDC 5.2 for windows to my site. You can download it here: http://botcode.net/gdc-5.2.0+2.066.1.7z Hope this helps. -gian
Thanks! I appreciate it. Where did you get it or how did you compile it?
Jul 21 2016
parent reply B. Gian James <jamesbl research.cs.colorado.edu> writes:
On Thursday, 21 July 2016 at 23:02:47 UTC, Rufus Smith wrote:
 On Thursday, 21 July 2016 at 21:12:31 UTC, B. Gian James wrote:
 On Thursday, 21 July 2016 at 20:49:41 UTC, B. Gian James wrote:

 [...]
I went ahead and uploaded the most recent GDC 5.2 for windows to my site. You can download it here: http://botcode.net/gdc-5.2.0+2.066.1.7z Hope this helps. -gian
Thanks! I appreciate it. Where did you get it or how did you compile it?
Sure thing, hope it helps. After a quick history grep i found this: ftp://ftp.gdcproject.org/binaries/5.2.0/x86_64-w64-mingw32/gdc-5.2.0+2.066.1.7z Cheers! -gian
Jul 21 2016
parent reply Rufus Smith <RufusSmith indi.com> writes:
On Friday, 22 July 2016 at 04:01:13 UTC, B. Gian James wrote:
 On Thursday, 21 July 2016 at 23:02:47 UTC, Rufus Smith wrote:
 On Thursday, 21 July 2016 at 21:12:31 UTC, B. Gian James wrote:
 On Thursday, 21 July 2016 at 20:49:41 UTC, B. Gian James 
 wrote:

 [...]
I went ahead and uploaded the most recent GDC 5.2 for windows to my site. You can download it here: http://botcode.net/gdc-5.2.0+2.066.1.7z Hope this helps. -gian
Thanks! I appreciate it. Where did you get it or how did you compile it?
Sure thing, hope it helps. After a quick history grep i found this: ftp://ftp.gdcproject.org/binaries/5.2.0/x86_64-w64-mingw32/gdc-5.2.0+2.066.1.7z Cheers! -gian
So basically the problem is that these binaries are simply not linked on the download page.
Jul 22 2016
parent reply Sai <test test.com> writes:
 So basically the problem is that these binaries are simply not 
 linked on the download page.
Could someone please explain the reason why the windows binaries are not linked on the download page? Is this because they are not stable, have major issues? If so I would rather not use them, if this is just an oversight, then I will try them. Related question, are there any limitations of the GDC compiler when compared to DMD? besides it lagging behind 1 or 2 releases. Any major limitations? How about on ARM arch? Thank you in advance for any answers. Sai
Aug 25 2016
parent Johannes Pfau <nospam example.com> writes:
Am Thu, 25 Aug 2016 19:26:26 +0000
schrieb Sai <test test.com>:

 So basically the problem is that these binaries are simply not 
 linked on the download page.  
Could someone please explain the reason why the windows binaries are not linked on the download page? Is this because they are not stable, have major issues? If so I would rather not use them, if this is just an oversight, then I will try them.
These releases are alpha quality and IIRC the GC is not working 100% correctly. So you probably don't want to use GDC on windows ;-)
 Related question, are there any limitations of the GDC compiler 
 when compared to DMD? besides it lagging behind 1 or 2 releases. 
 Any major limitations? How about on ARM arch?
 
AFAIK there are no real limitations. ARM is 100% supported, so it should work like any other 32 bit architecture in D. One major difference is that GDC does not provide DMD like code coverage, we use the GCC/gcov tools instead.
Aug 26 2016