Jump to page: 1 2
Thread overview
Where is the GDC binaries for Windows targeting windows?
Jul 20, 2016
Rufus Smith
Jul 20, 2016
Lodovico Giaretta
Jul 20, 2016
Rufus Smith
Jul 20, 2016
Sebastien Alaiwan
Jul 20, 2016
Rufus Smith
Jul 21, 2016
Sebastien Alaiwan
Jul 21, 2016
Rufus Smith
Jul 21, 2016
Sebastien Alaiwan
Jul 21, 2016
Rufus Smith
Jul 21, 2016
B. Gian James
Jul 21, 2016
B. Gian James
Jul 21, 2016
Rufus Smith
Jul 22, 2016
B. Gian James
Jul 22, 2016
Rufus Smith
Aug 25, 2016
Sai
Aug 26, 2016
Johannes Pfau
July 20, 2016
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.





July 20, 2016
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.
July 20, 2016
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.

July 20, 2016
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!
July 20, 2016
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.

July 21, 2016
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?)

July 21, 2016
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!

July 21, 2016
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!).


July 21, 2016
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?


July 21, 2016
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
« First   ‹ Prev
1 2