www.digitalmars.com         C & C++   DMDScript  

D.gnu - To build GDC for Windows 32/64

reply "Ludovit Lucenic" <llucenic gmail.com> writes:
Hello out there,

is anybody here, please, who would help me to compile/get a
working GDC in Windows environments (both 32 and 64 bit,
preferably 64 bit) ?

I have studied all the GDC-stuff online, but I cannot figure out
this mission :-)
Maybe there is something I am missing, but in general the
documentation seems to be obsolete and the provided packages of
GDC I downloaded seem not to work for me out of the box.

I would very much appreciate some sort of assistance.
When success, I will update the Wiki on the topic.

Thank you very much in advance, dear Dees.

Ludovit
skype: moondog82
Aug 27 2013
next sibling parent reply Benjamin Thaut <code benjamin-thaut.de> writes:
Am 27.08.2013 09:17, schrieb Ludovit Lucenic:
 Hello out there,

 is anybody here, please, who would help me to compile/get a
 working GDC in Windows environments (both 32 and 64 bit,
 preferably 64 bit) ?

 I have studied all the GDC-stuff online, but I cannot figure out
 this mission :-)
 Maybe there is something I am missing, but in general the
 documentation seems to be obsolete and the provided packages of
 GDC I downloaded seem not to work for me out of the box.

 I would very much appreciate some sort of assistance.
 When success, I will update the Wiki on the topic.

 Thank you very much in advance, dear Dees.

 Ludovit
 skype: moondog82

http://3d.benjamin-thaut.de/?p=71 I don't know if this still works though. Kind Regards Benjamin Thaut
Aug 27 2013
parent reply Benjamin Thaut <code benjamin-thaut.de> writes:
Am 28.08.2013 00:50, schrieb Ludovit Lucenic:
 On Tuesday, 27 August 2013 at 10:34:20 UTC, Benjamin Thaut wrote:
 Am 27.08.2013 09:17, schrieb Ludovit Lucenic:
 Hello out there,

 is anybody here, please, who would help me to compile/get a
 working GDC in Windows environments (both 32 and 64 bit,
 preferably 64 bit) ?

 I have studied all the GDC-stuff online, but I cannot figure out
 this mission :-)
 Maybe there is something I am missing, but in general the
 documentation seems to be obsolete and the provided packages of
 GDC I downloaded seem not to work for me out of the box.

 I would very much appreciate some sort of assistance.
 When success, I will update the Wiki on the topic.

 Thank you very much in advance, dear Dees.

 Ludovit
 skype: moondog82

http://3d.benjamin-thaut.de/?p=71 I don't know if this still works though. Kind Regards Benjamin Thaut

Thank you, Benjamin. It took me almost an hour to compile the GDC following your guidelines (on Dell:i7, 8G RAM, Win8-64), but ended with an error not being able to find GMP, which was actually in src folder. The build script must have looked somewhere else. I'll try tomorrow to fix it. Anyway, I have noticed the GDC repository https://github.com/venix1/GDC is used in your guidelines. What is the basic difference between this one and the one of Iain at https://github.com/D-Programming-GDC/GDC that seems to be updated more recently? Is it possible to build GDC on Windows from the Iain's repository's trunk at all? Cheers, Ludovit

The difference is, that the one at venix1 has some mingw patches. Without them a couple of features will be broken, like TLS. I think it should be possible to build from directly from the offical GDC branch, but don't expect a working compiler then. Kind Regards Benjamin Thaut
Aug 27 2013
parent reply Benjamin Thaut <code benjamin-thaut.de> writes:
Am 28.08.2013 09:51, schrieb Ludovit Lucenic:
 On Wednesday, 28 August 2013 at 06:30:04 UTC, Benjamin Thaut wrote:
 The difference is, that the one at venix1 has some mingw patches.
 Without them a couple of features will be broken, like TLS.
 I think it should be possible to build from directly from the offical
 GDC branch, but don't expect a working compiler then.

 Kind Regards
 Benjamin Thaut

Thank you Benjamin. Is here anybody, who would assist me to somehow prepare the latest working GDC compiler for win32/win64 ? I mean, the one built from official GDC branch (either gdc-4.8 or master) so we have something that works out of the box as latest stable/unstable installable executable, because the target of links to GDC from http://dlang.org/download.html does not apparently work ... Thanks. Nice day to everyone. Ludovit

Well the main problem is, that tdm-gcc (which you really want to have nice working gcc on windows) does not support gcc 4.8 yet. They are still at 4.7 so porting it over will be quite some work. There has been a posting on the newsgroup from venix where he statet that he started porting the newest version, but it still had many bugs. http://tdm-gcc.tdragon.net/download Kind Regards Benjamin Thaut
Aug 28 2013
parent reply Benjamin Thaut <code benjamin-thaut.de> writes:
The last offical binary was posted with this discription:

 A new binary has been posted.  This contains GDC master up to Nov. 28th.

 There's one annoyingly significant bug that I am aware of regarding 

 Any uncaught exceptions will result in an infinite loop eventually 

and something to keep in mind when using GDB.
 Installation instructions:

 1. Download and install TDM 4.6.1 MinGW64( To a dedicated directory 

 2. Extract the downloaded archive into the base of the newly 

 If you've done this before, you can just do step 2.

 MinGW64 installer
 http://tdm-gcc.tdragon.net/

 You'll need to pull it from the archives. 

 GDC binary
 

 Please post all issues in D.gnu or on GDC's bugzilla at 

Sep 01 2013
parent Benjamin Thaut <code benjamin-thaut.de> writes:
Am 03.09.2013 18:23, schrieb Ludovit Lucenic:
 Hello

 Benjamin, if you don't mind I would update the GDC project wiki with the
 information you provided in this thread, once I get to the working GDC
 executable for Windows.
 Are you ok with it?

 Ludovit

Yes of course. It would be really awesome to have a compiler with a good optimizer on windows using a up to date frontend.
Sep 03 2013
prev sibling next sibling parent "Ludovit Lucenic" <llucenic gmail.com> writes:
On Tuesday, 27 August 2013 at 10:34:20 UTC, Benjamin Thaut wrote:
 Am 27.08.2013 09:17, schrieb Ludovit Lucenic:
 Hello out there,

 is anybody here, please, who would help me to compile/get a
 working GDC in Windows environments (both 32 and 64 bit,
 preferably 64 bit) ?

 I have studied all the GDC-stuff online, but I cannot figure 
 out
 this mission :-)
 Maybe there is something I am missing, but in general the
 documentation seems to be obsolete and the provided packages of
 GDC I downloaded seem not to work for me out of the box.

 I would very much appreciate some sort of assistance.
 When success, I will update the Wiki on the topic.

 Thank you very much in advance, dear Dees.

 Ludovit
 skype: moondog82

http://3d.benjamin-thaut.de/?p=71 I don't know if this still works though. Kind Regards Benjamin Thaut

Thank you, Benjamin. It took me almost an hour to compile the GDC following your guidelines (on Dell:i7, 8G RAM, Win8-64), but ended with an error not being able to find GMP, which was actually in src folder. The build script must have looked somewhere else. I'll try tomorrow to fix it. Anyway, I have noticed the GDC repository https://github.com/venix1/GDC is used in your guidelines. What is the basic difference between this one and the one of Iain at https://github.com/D-Programming-GDC/GDC that seems to be updated more recently? Is it possible to build GDC on Windows from the Iain's repository's trunk at all? Cheers, Ludovit
Aug 27 2013
prev sibling next sibling parent "Ludovit Lucenic" <llucenic gmail.com> writes:
On Wednesday, 28 August 2013 at 06:30:04 UTC, Benjamin Thaut 
wrote:
 The difference is, that the one at venix1 has some mingw 
 patches. Without them a couple of features will be broken, like 
 TLS.
 I think it should be possible to build from directly from the 
 offical GDC branch, but don't expect a working compiler then.

 Kind Regards
 Benjamin Thaut

Thank you Benjamin. Is here anybody, who would assist me to somehow prepare the latest working GDC compiler for win32/win64 ? I mean, the one built from official GDC branch (either gdc-4.8 or master) so we have something that works out of the box as latest stable/unstable installable executable, because the target of links to GDC from http://dlang.org/download.html does not apparently work ... Thanks. Nice day to everyone. Ludovit
Aug 28 2013
prev sibling next sibling parent "Ludovit Lucenic" <llucenic gmail.com> writes:
On Wednesday, 28 August 2013 at 08:51:57 UTC, Benjamin Thaut 
wrote:
 Well the main problem is, that tdm-gcc (which you really want 
 to have nice working gcc on windows) does not support gcc 4.8 
 yet. They are still at 4.7 so porting it over will be quite 
 some work. There has been a posting on the newsgroup from venix 
 where he statet that he started porting the newest version, but 
 it still had many bugs.

 http://tdm-gcc.tdragon.net/download

 Kind Regards
 Benjamin Thaut

Thank you for the information, Benjamin. I haven't manage to build the GDC so far. According to your guidelines, I had problems with the missing libraries of GMP, MFPR and MPC. But when I copied the missing files all over the MinGW, it ran a bit further. Nevertheless, the compilation ended with an error later. I'll try to compile the version from the branch 4.7, as this is supported by the TDM-GCC. Let you know. Ludovit
Aug 31 2013
prev sibling next sibling parent "Ludovit Lucenic" <llucenic gmail.com> writes:
Does anyone here have a working copy of GDC executables for 
Win32/64 platform.
Not even necessarily built from latest sources.
If so, please share :-)
Thanks.

I am looking for a compiler that would enable me to use GDB on 
Windows to debug D programs. So far, no luck.

Cheers,

Ludovit
Aug 31 2013
prev sibling next sibling parent Manu <turkeyman gmail.com> writes:
--001a11c2e81c4c3fbf04e54dac82
Content-Type: text/plain; charset=UTF-8

Me too, the 'official' ones are missing dependencies... :/
On 1 Sep 2013 08:15, "Ludovit Lucenic" <llucenic gmail.com> wrote:

 Does anyone here have a working copy of GDC executables for Win32/64
 platform.
 Not even necessarily built from latest sources.
 If so, please share :-)
 Thanks.

 I am looking for a compiler that would enable me to use GDB on Windows to
 debug D programs. So far, no luck.

 Cheers,

 Ludovit

--001a11c2e81c4c3fbf04e54dac82 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr">Me too, the &#39;official&#39; ones are missing dependencies= ... :/</p> <div class=3D"gmail_quote">On 1 Sep 2013 08:15, &quot;Ludovit Lucenic&quot;= &lt;<a href=3D"mailto:llucenic gmail.com">llucenic gmail.com</a>&gt; wrote= :<br type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"margin= :0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Does anyone here have a working copy of GDC executables for Win32/64 platfo= rm.<br> Not even necessarily built from latest sources.<br> If so, please share :-)<br> Thanks.<br> <br> I am looking for a compiler that would enable me to use GDB on Windows to d= ebug D programs. So far, no luck.<br> <br> Cheers,<br> <br> Ludovit<br> </blockquote></div> --001a11c2e81c4c3fbf04e54dac82--
Sep 01 2013
prev sibling parent "Ludovit Lucenic" <llucenic gmail.com> writes:
Hello

Benjamin, if you don't mind I would update the GDC project wiki 
with the information you provided in this thread, once I get to 
the working GDC executable for Windows.
Are you ok with it?

Ludovit
Sep 03 2013