digitalmars.D.announce - Release: GDC for Windows
- Daniel Green (13/13) Mar 21 2011 GDC D1 binaries are now available for Windows. The binaries are
- Long Chang (8/21) Mar 21 2011 kaged as
- Andrej Mitrovic (1/1) Mar 21 2011 Woho!
- Caligo (7/16) Mar 21 2011 piled to coexist. =A0So a single installation should be capable of runni...
- dsimcha (4/17) Mar 22 2011 Excellent! Now that you've apparently got a build process working, are
- SiegeLord (2/2) Mar 22 2011 Does it work with Tango or will that need to be patched?
- Daniel Green (12/17) Mar 22 2011 That's the impression I got too. I've recently joined to keep Windows
- Andrej Mitrovic (2/2) Mar 22 2011 I'm rooting for GDC as well. I just had another Optlink crash, yay. :/
- Daniel Green (7/7) Mar 22 2011 D2 has been released for testing. Now in a zip file.
- dsimcha (4/11) Mar 22 2011 I can't run it because I get the following error:
- =?UTF-8?B?IkrDqXLDtG1lIE0uIEJlcmdlciI=?= (8/25) Mar 23 2011 Did you also install the tdm-gcc core package? IIRC libcloog should
- dsimcha (4/25) Mar 23 2011 Ok, did that and moved the GDC binaries into the bin/ directory of this
- Daniel Green (4/7) Mar 23 2011 Did you move any of the files in libexec? You may want to extract the
- Andrej Mitrovic (1/1) Mar 23 2011 I think you need to add GDC's /bin to path.
- Gour (10/11) Mar 23 2011 Yay! I hope there will be release for FreeBSD soon so we can have
- Kagamin (16/27) Mar 24 2011 ----
- Kagamin (3/33) Mar 24 2011 turned out that the executable has a dependency on sjlj runtime
- Kagamin (2/13) Mar 24 2011 Is the AIX problem valid for windows too?
- Daniel Green (2/3) Mar 24 2011 What is the AIX problem?
- Kagamin (6/9) Mar 24 2011 https://bitbucket.org/goshawk/gdc/wiki/UserDocumentation#!known-issues
- Nick Sabalausky (3/12) Mar 24 2011 That poor datetime module just can't catch a break! :)
- Andrej Mitrovic (9/17) Mar 25 2011 The real issue here is that the GDC binaries that were just released
- Kagamin (2/6) Mar 25 2011 Forgot about that, thanks.
- Daniel Green (15/25) Mar 25 2011 It doesn't. The following sizes I think use shared libgcc. Might be a
- Andrej Mitrovic (8/8) Mar 25 2011 Apparently there is a way to strip the debuggin info and put it in
- Kagamin (22/32) Mar 26 2011 ----
- Daniel Green (14/36) Mar 26 2011 Apparently, I used core.std.stdio. When I retested using std.stdio I
- Kagamin (4/12) Mar 26 2011 lol, winsock, regex, regexp, random(?)
- Kagamin (8/9) Mar 26 2011 as to std.random, in std.algorithm we have
- Daniel Green (3/12) Mar 26 2011 I'm not sure. Phobos is built using the default configuration supplied
- Bruno Medeiros (4/17) Mar 23 2011 Another great news... looking forward to the D2 release as well!
- Kagamin (3/5) Mar 26 2011 got it
- Daniel Green (5/10) Mar 26 2011 https://bitbucket.org/goshawk/gdc/issue/173/writeln-hangs-with-more-than...
- Kagamin (2/4) Mar 27 2011 it would be nice to have all crt declarations qualified with `export`, t...
GDC D1 binaries are now available for Windows. The binaries are packaged as an addon for TDM-GCC 4.5.1. D2 will follow in the next couple of days. Both versions are being compiled to coexist. So a single installation should be capable of running D1 and D2. gcc version 4.5.1 20100731 (gdc hg r499:886b0a5af18a, using dmd 1.067) http://tdm-gcc.tdragon.net/download https://bitbucket.org/goshawk/gdc/downloads/gcc-4.5.1-tdm-1-gdc-r499.7z 7-zip is required to extract the package. http://7-zip.org - Disclaimer: This binary release is a developmental snapshot. It is highly probable things won't work right. Please post any issues at https://bitbucket.org/goshawk/gdc/issue/170
Mar 21 2011
Congratulations , This is great news . On Tue, Mar 22, 2011 at 11:26 AM, Daniel Green <venix1 gmail.com> wrote:GDC D1 binaries are now available for Windows. =C2=A0The binaries are pac=kaged asan addon for TDM-GCC 4.5.1. D2 will follow in the next couple of days. =C2=A0Both versions are being =compiledto coexist. =C2=A0So a single installation should be capable of running D=1 andD2. gcc version 4.5.1 20100731 (gdc hg r499:886b0a5af18a, using dmd 1.067) http://tdm-gcc.tdragon.net/download https://bitbucket.org/goshawk/gdc/downloads/gcc-4.5.1-tdm-1-gdc-r499.7z 7-zip is required to extract the package. http://7-zip.org - Disclaimer: =C2=A0This binary release is a developmental snapshot. =C2==A0It ishighly probable things won't work right. Please post any issues at https://bitbucket.org/goshawk/gdc/issue/170--=20 .
Mar 21 2011
On Mon, Mar 21, 2011 at 10:26 PM, Daniel Green <venix1 gmail.com> wrote:GDC D1 binaries are now available for Windows. =A0The binaries are packag=ed as an addon for TDM-GCC 4.5.1.D2 will follow in the next couple of days. =A0Both versions are being com=piled to coexist. =A0So a single installation should be capable of running = D1 and D2.gcc version 4.5.1 20100731 (gdc hg r499:886b0a5af18a, using dmd 1.067) http://tdm-gcc.tdragon.net/download https://bitbucket.org/goshawk/gdc/downloads/gcc-4.5.1-tdm-1-gdc-r499.7z 7-zip is required to extract the package. http://7-zip.org - Disclaimer: =A0This binary release is a developmental snapshot. =A0It i=s highly probable things won't work right.Please post any issues at https://bitbucket.org/goshawk/gdc/issue/170Is Iain Buclaw really the only one who is contributing to GDC source? That's what the changesets are showing on bitbucket!
Mar 21 2011
Excellent! Now that you've apparently got a build process working, are you going to make new builds frequently (nightly/weekly/etc.) until GDC has a stable release? On 3/21/2011 11:26 PM, Daniel Green wrote:GDC D1 binaries are now available for Windows. The binaries are packaged as an addon for TDM-GCC 4.5.1. D2 will follow in the next couple of days. Both versions are being compiled to coexist. So a single installation should be capable of running D1 and D2. gcc version 4.5.1 20100731 (gdc hg r499:886b0a5af18a, using dmd 1.067) http://tdm-gcc.tdragon.net/download https://bitbucket.org/goshawk/gdc/downloads/gcc-4.5.1-tdm-1-gdc-r499.7z 7-zip is required to extract the package. http://7-zip.org - Disclaimer: This binary release is a developmental snapshot. It is highly probable things won't work right. Please post any issues at https://bitbucket.org/goshawk/gdc/issue/170
Mar 22 2011
Does it work with Tango or will that need to be patched? -SiegeLord
Mar 22 2011
On 3/22/2011 12:50 AM, Caligo wrote:Is Iain Buclaw really the only one who is contributing to GDC source?That's the impression I got too. I've recently joined to keep Windows supported and to learn more about GCC/GDC. On 3/22/2011 8:53 AM, dsimcha wrote:Excellent! Now that you've apparently got a build process working, are you going to make new builds frequently (nightly/weekly/etc.) until GDC has a stable release?I'm shooting for weekly, unless something important gets fixed. The process isn't automated yet and still takes about an hour for each version of D. On 3/22/2011 10:00 AM, SiegeLord wrote:Does it work with Tango or will that need to be patched?Tango will probably require changes. Last I knew, GDC on Windows wasn't supported. The process was trivial. Mostly updating the build script and module names. I saw a patch on the tango website claiming to support GDC/MinGW.
Mar 22 2011
I'm rooting for GDC as well. I just had another Optlink crash, yay. :/ So the GCC tools and its linker look like a nice alternative.
Mar 22 2011
D2 has been released for testing. Now in a zip file. https://bitbucket.org/goshawk/gdc/downloads gcc-4.5.1-tdm-1-gdc-r499-20110322.zip From here on out, D1 and D2 will be combined into a single release. Since D1 appears more stable it is the default. Use -v2 to access D2.
Mar 22 2011
On 3/22/2011 8:22 PM, Daniel Green wrote:D2 has been released for testing. Now in a zip file. https://bitbucket.org/goshawk/gdc/downloads gcc-4.5.1-tdm-1-gdc-r499-20110322.zip From here on out, D1 and D2 will be combined into a single release. Since D1 appears more stable it is the default. Use -v2 to access D2.I can't run it because I get the following error: cc1d.exe: The program can't start because libcloog-0.dll is missing from your computer.
Mar 22 2011
dsimcha wrote:On 3/22/2011 8:22 PM, Daniel Green wrote:Did you also install the tdm-gcc core package? IIRC libcloog should be part of it... Jerome --=20 mailto:jeberger free.fr http://jeberger.free.fr Jabber: jeberger jabber.frD2 has been released for testing. Now in a zip file. https://bitbucket.org/goshawk/gdc/downloads gcc-4.5.1-tdm-1-gdc-r499-20110322.zip From here on out, D1 and D2 will be combined into a single release. Since D1 appears more stable it is the default. Use -v2 to access D2.=20 I can't run it because I get the following error: =20 cc1d.exe: The program can't start because libcloog-0.dll is missing from your computer.
Mar 23 2011
On 3/23/2011 3:46 PM, "Jérôme M. Berger" wrote:dsimcha wrote:Ok, did that and moved the GDC binaries into the bin/ directory of this installation. Now, I get: gdc.exe: CreateProcess: No such file or directoryOn 3/22/2011 8:22 PM, Daniel Green wrote:Did you also install the tdm-gcc core package? IIRC libcloog should be part of it... JeromeD2 has been released for testing. Now in a zip file. https://bitbucket.org/goshawk/gdc/downloads gcc-4.5.1-tdm-1-gdc-r499-20110322.zip From here on out, D1 and D2 will be combined into a single release. Since D1 appears more stable it is the default. Use -v2 to access D2.I can't run it because I get the following error: cc1d.exe: The program can't start because libcloog-0.dll is missing from your computer.
Mar 23 2011
On 3/23/2011 7:15 PM, dsimcha wrote:Ok, did that and moved the GDC binaries into the bin/ directory of this installation. Now, I get: gdc.exe: CreateProcess: No such file or directoryDid you move any of the files in libexec? You may want to extract the zip file to your TDM installation. Headers and libraries will need copied as well.
Mar 23 2011
I think you need to add GDC's /bin to path.
Mar 23 2011
On Tue, 22 Mar 2011 20:22:18 -0400 Daniel Green <venix1 gmail.com> wrote:D2 has been released for testing. Now in a zip file.Yay! I hope there will be release for FreeBSD soon so we can have proper 64bit port of D2 compiler. Sincerely, Gour --=20 =E2=80=9CIn the material world, conceptions of good and bad are all mental speculations=E2=80=A6=E2=80=9D (Sri Caitanya Mahaprabhu) http://atmarama.net | Hlapicina (Croatia) | GPG: CDBF17CA
Mar 23 2011
Daniel Green Wrote:D2 has been released for testing. Now in a zip file. https://bitbucket.org/goshawk/gdc/downloads gcc-4.5.1-tdm-1-gdc-r499-20110322.zip From here on out, D1 and D2 will be combined into a single release. Since D1 appears more stable it is the default. Use -v2 to access D2.---- import core.stdc.stdio; int main() { printf("hello, world"); return 0; } ---- gdc -v2 test.d -o test.exe ---- test ---- (no text) ---- the same for d1, lol
Mar 24 2011
Kagamin Wrote:Daniel Green Wrote:turned out that the executable has a dependency on sjlj runtime now works fineD2 has been released for testing. Now in a zip file. https://bitbucket.org/goshawk/gdc/downloads gcc-4.5.1-tdm-1-gdc-r499-20110322.zip From here on out, D1 and D2 will be combined into a single release. Since D1 appears more stable it is the default. Use -v2 to access D2.---- import core.stdc.stdio; int main() { printf("hello, world"); return 0; } ---- gdc -v2 test.d -o test.exe ---- test ---- (no text) ---- the same for d1, lol
Mar 24 2011
Daniel Green Wrote:D2 has been released for testing. Now in a zip file. https://bitbucket.org/goshawk/gdc/downloads gcc-4.5.1-tdm-1-gdc-r499-20110322.zip From here on out, D1 and D2 will be combined into a single release. Since D1 appears more stable it is the default. Use -v2 to access D2.Is the AIX problem valid for windows too?
Mar 24 2011
On 3/24/2011 6:53 PM, Kagamin wrote:Is the AIX problem valid for windows too?What is the AIX problem?
Mar 24 2011
Daniel Green Wrote:On 3/24/2011 6:53 PM, Kagamin wrote:https://bitbucket.org/goshawk/gdc/wiki/UserDocumentation#!known-issues writeln("hello world") compiles to 3MB exe which is approx 1/3 of libgphobos2. object file is just 3KB. or may be it's just the datetime module...Is the AIX problem valid for windows too?What is the AIX problem?
Mar 24 2011
"Kagamin" <spam here.lot> wrote in message news:imha5f$2tke$1 digitalmars.com...Daniel Green Wrote:That poor datetime module just can't catch a break! :)On 3/24/2011 6:53 PM, Kagamin wrote:https://bitbucket.org/goshawk/gdc/wiki/UserDocumentation#!known-issues writeln("hello world") compiles to 3MB exe which is approx 1/3 of libgphobos2. object file is just 3KB. or may be it's just the datetime module...Is the AIX problem valid for windows too?What is the AIX problem?
Mar 24 2011
On 3/25/11, Kagamin <spam here.lot> wrote:Daniel Green Wrote:The real issue here is that the GDC binaries that were just released weren't stripped. I guess Daniel forgot about that. :) There's strip.exe that you can use on Windows. It usually comes with either TDM-GCC or MinGW binaries. Once you have it, run this batch file from GDC's main directory: for /F %%G in ('dir /B /S *.exe;*.a;*.so') do strip --strip-unneeded %%G Now libgphobos2 will be 3.5 megs in size, and a test project with a writeln() will compile to 966Kb.On 3/24/2011 6:53 PM, Kagamin wrote:https://bitbucket.org/goshawk/gdc/wiki/UserDocumentation#!known-issues writeln("hello world") compiles to 3MB exe which is approx 1/3 of libgphobos2. object file is just 3KB.Is the AIX problem valid for windows too?What is the AIX problem?
Mar 25 2011
Andrej Mitrovic Wrote:for /F %%G in ('dir /B /S *.exe;*.a;*.so') do strip --strip-unneeded %%G Now libgphobos2 will be 3.5 megs in size, and a test project with a writeln() will compile to 966Kb.Forgot about that, thanks.
Mar 25 2011
On 3/25/11, Kagamin<spam here.lot> wrote:Daniel Green Wrote:It doesn't. The following sizes I think use shared libgcc. Might be a couple hundred more for a static build. A lot of the size is overhead. 856 hello.o 682,987 hello.exe 112,128 hello.exe after strip hello.exe 39,424 hello.exe upx... On 3/25/2011 11:35 AM, Andrej Mitrovic wrote:On 3/24/2011 6:53 PM, Kagamin wrote:https://bitbucket.org/goshawk/gdc/wiki/UserDocumentation#!known-issues writeln("hello world") compiles to 3MB exe which is approx 1/3 of libgphobos2. object file is just 3KB.Is the AIX problem valid for windows too?What is the AIX problem?The real issue here is that the GDC binaries that were just released weren't stripped. I guess Daniel forgot about that. :)That was on purpose. Unless it's an actual release, I won't strip them. Also, stripping the GDC binaries won't have any effect on output file size. Stripping the phobos libraries will, but I believe you'll also permanently lose any debugging information in the process. A better solution is to strip the outputted binary when your done with it. Does GCC have something equivalent to Microsoft's PDB file? Essentially it's all the debug information stored in a separate file.
Mar 25 2011
Apparently there is a way to strip the debuggin info and put it in another file, and then link the executable to the debug file so GDB can automatically load it. But this doesn't seem to work for me: gdc -g foo.d -o foo.exe objcopy --only-keep-debug foo.exe foo.debug strip -g foo.exe objcopy --add-gnu-debuglink=foo.debug foo.exe It doesn't add the .gnu_debuglink section to foo.exe, I don't know why..
Mar 25 2011
---- gdc -v2 test4.d -o test4.exe ---- dir test4* ---- 26.03.2011 19:17 78 test4.d 26.03.2011 19:18 2Â 835Â 758 test4.exe 2 File(s) 2Â 835Â 836 bytes ---- copy test4.d con ---- import std.stdio; int main() { writeln("hello world"); return 0; } 1 file(s) copied. ---- with gdc -v2 test4.d -o test4.exe -s it's 454kbwriteln("hello world") compiles to 3MB exe which is approx 1/3 of libgphobos2. object file is just 3KB.It doesn't. The following sizes I think use shared libgcc. Might be a couple hundred more for a static build. A lot of the size is overhead. 856 hello.o 682,987 hello.exe 112,128 hello.exe after strip hello.exe 39,424 hello.exe upx...
Mar 26 2011
On 3/26/2011 12:27 PM, Kagamin wrote:---- gdc -v2 test4.d -o test4.exe ---- dir test4* ---- 26.03.2011 19:17 78 test4.d 26.03.2011 19:18 2Â 835Â 758 test4.exe 2 File(s) 2Â 835Â 836 bytesApparently, I used core.std.stdio. When I retested using std.stdio I got similar numbers. About 2 megs can be removed by stripping libgphobos2.a. I'll start doing that now that I know it's possible to separate debug information. nm test4.exe | grep ModuleInfo Run for a list of included modules. The best way to tell would be compare outputs with linux.---- copy test4.d con ---- import std.stdio; int main() { writeln("hello world"); return 0; } 1 file(s) copied. ---- with gdc -v2 test4.d -o test4.exe -s it's 454kbFrom the GCC manual. -s Remove all symbol table and relocation information from the executable. It also looks like the AIX issue was related to the linker for the platform and applied to c++ as well.
Mar 26 2011
Daniel Green Wrote:nm test4.exe | grep ModuleInfolol, winsock, regex, regexp, random(?) Well, std.datetime and std.complex can be understandable: they can be used by writeln...yes, -s means stripwith gdc -v2 test4.d -o test4.exe -s it's 454kbFrom the GCC manual. -s Remove all symbol table and relocation information from the executable.
Mar 26 2011
Daniel Green Wrote:nm test4.exe | grep ModuleInfoas to std.random, in std.algorithm we have version(unittest) { import std.random, std.stdio, std.string; mixin(dummyRanges); } is phobos compiled with unittests enabled?
Mar 26 2011
On 3/26/2011 6:09 PM, Kagamin wrote:Daniel Green Wrote:I'm not sure. Phobos is built using the default configuration supplied by GDC.nm test4.exe | grep ModuleInfoas to std.random, in std.algorithm we have version(unittest) { import std.random, std.stdio, std.string; mixin(dummyRanges); } is phobos compiled with unittests enabled?
Mar 26 2011
On 22/03/2011 03:26, Daniel Green wrote:GDC D1 binaries are now available for Windows. The binaries are packaged as an addon for TDM-GCC 4.5.1. D2 will follow in the next couple of days. Both versions are being compiled to coexist. So a single installation should be capable of running D1 and D2. gcc version 4.5.1 20100731 (gdc hg r499:886b0a5af18a, using dmd 1.067) http://tdm-gcc.tdragon.net/download https://bitbucket.org/goshawk/gdc/downloads/gcc-4.5.1-tdm-1-gdc-r499.7z 7-zip is required to extract the package. http://7-zip.org - Disclaimer: This binary release is a developmental snapshot. It is highly probable things won't work right. Please post any issues at https://bitbucket.org/goshawk/gdc/issue/170Another great news... looking forward to the D2 release as well! -- Bruno Medeiros - Software Engineer
Mar 23 2011
Daniel Green Wrote:Please post any issues at https://bitbucket.org/goshawk/gdc/issue/170got it https://bitbucket.org/goshawk/gdc/issue/170/problems-relating-to-windows-binaries#comment-417100
Mar 26 2011
On 3/26/2011 5:28 PM, Kagamin wrote:Daniel Green Wrote:https://bitbucket.org/goshawk/gdc/issue/173/writeln-hangs-with-more-than-one-argument The problems been solved both examples now work. I will likely release a new build Sunday evening(EST). I was hoping to make some headway into the auto import warning.Please post any issues at https://bitbucket.org/goshawk/gdc/issue/170got it https://bitbucket.org/goshawk/gdc/issue/170/problems-relating-to-windows-binaries#comment-417100
Mar 26 2011
Daniel Green Wrote:I was hoping to make some headway into the auto import warning.it would be nice to have all crt declarations qualified with `export`, this way they will be bound directly to __imp_ symbols, though, D provides no easy way to do this, only another version block.
Mar 27 2011