D.gnu - Are there any GDC builds available for Windows?
- Preetpal (1/1) Feb 20 2021 It would be great if it GDC could be installed with MSYS2.
- Siemargl (3/4) Feb 20 2021 Not in near plans
- Imperatorn (3/4) Feb 23 2021 IIRC gcc will be updated with it later this year. Iain Buclaw
- Imperatorn (2/6) Feb 23 2021 with *it* I meant latest D just to clarify 😎
- Imperatorn (4/5) Mar 20 2021 Update:
- Preetpal (3/8) Mar 20 2021 That's cool :). Do you have any idea though when? Are you working
- Mike Parker (3/12) Mar 21 2021 What Imperatorn is referring to is this, I believe:
- Imperatorn (6/15) Mar 21 2021 I'm working in parallell with Adam Ruppe on it. Iain has a patch
- Preetpal (3/19) Mar 21 2021 That's awesome. It's better to have everything to "just work"
- Imperatorn (3/19) Mar 22 2021 Yeah, we will post smth when we're ready. We will try to also get
- Imperatorn (5/26) Apr 05 2021 Just FYI, we're getting closer, but have some stuff not working
- Imperatorn (3/21) Apr 05 2021 gdc --version
- Preetpal (2/6) Apr 07 2021 That's great. Thanks for the progress update.
- Imperatorn (4/11) Apr 07 2021 Just got a version working with std.stdio as well. Try it out and
- Preetpal (30/42) Apr 07 2021 Well I had issues running the compiler so I cannot give you
- Adam D. Ruppe (5/8) Apr 07 2021 The PATH needs to include the normal mingw64 bin path as well as
- Preetpal (14/22) Apr 07 2021 Well I do have mingw64 on my path, but his build does not work. I
- Preetpal (3/14) Apr 07 2021 To be clear, I tried it with mingw64 on my path and with a clean
- Imperatorn (11/27) Apr 08 2021 These are the steps you need to follow:
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (4/21) Apr 09 2021 Very good job. I am playing around with it. I am not so much
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (3/25) Apr 09 2021 I think there should be a gdmd executable. My compilations
- Imperatorn (2/11) Apr 09 2021 Did you succeed in building?
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (36/49) Apr 09 2021 Yes. "hello world" compiles and runs. Now I am trying to compile
- Imperatorn (4/12) Apr 09 2021 I can take a look in a couple of hours, in the meantime, read
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (22/37) Apr 10 2021 The below is the output of "gdc -print-search-dirs" command. As
- Imperatorn (4/11) Apr 10 2021 Did you install msys on D:? Does it work if you manually supply
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (5/18) Apr 10 2021 Actually, I did a workaround by supplying the LIBRARY_PATH
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (4/23) Apr 10 2021 Here are the command and the output.
- Imperatorn (4/20) Apr 11 2021 Thanks, what can we do to reproduce this? Just try do anything
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (9/31) Apr 11 2021 The server code in Adam's socket tutorial:
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (5/26) Apr 20 2021 The only working solution is explicitly providing all library
- Imperatorn (5/36) Apr 21 2021 Good catch, we have some more patches coming. But I've had a NDE
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (9/48) Apr 21 2021 Thank you for your valued efforts. I would like to report some
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (3/13) Apr 21 2021 *cpp runtime should be standard library sorry.
- Imperatorn (4/14) Apr 21 2021 Did you try running this with the build script pointing to
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (5/20) Apr 22 2021 I did not understand what you mean, I am sorry. If you mean if I
- Imperatorn (4/15) Apr 22 2021 Sorry, yes, that's what I meant. I'm currently trying another
- Imperatorn (8/25) Apr 22 2021 Currently these seem to not be correctly linked in libphobos:
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (6/32) Apr 22 2021 Yes, I saw those definitions in the sources of Phobos and thought
- Imperatorn (3/21) Apr 22 2021 Yeah, DMD and LDC supports them, but not G[D|C]C
- Imperatorn (5/23) Apr 23 2021 The good news is, there aren't many of them. So we can fix it,
- Preetpal (3/18) Jun 19 2021 Are there any new problems in solving this issue or is it an
- Imperatorn (3/13) Jun 22 2021 Most things should be fixed now. Unfortunately I don't have any
- Preetpal (5/34) Apr 11 2021 The build script ran successfully! :)
- Imperatorn (2/8) Apr 11 2021 Cool! We'll try and fix those winsock problems as well.
- Preetpal (7/19) Apr 07 2021 How are you building this on Windows? Are you doing anything
- Imperatorn (8/29) Apr 07 2021 Sorry, I forgot to say, you cannot currently build it without
- Preetpal (8/20) Apr 07 2021 I am not familiar with tooling related to linking but I have had
It would be great if it GDC could be installed with MSYS2.
Feb 20 2021
On Sunday, 21 February 2021 at 01:56:28 UTC, Preetpal wrote:It would be great if it GDC could be installed with MSYS2.Not in near plans https://github.com/msys2/MINGW-packages/issues/6806
Feb 20 2021
On Sunday, 21 February 2021 at 01:56:28 UTC, Preetpal wrote:It would be great if it GDC could be installed with MSYS2.IIRC gcc will be updated with it later this year. Iain Buclaw would know more about this tho.
Feb 23 2021
On Tuesday, 23 February 2021 at 10:16:33 UTC, Imperatorn wrote:On Sunday, 21 February 2021 at 01:56:28 UTC, Preetpal wrote:with *it* I meant latest D just to clarify 😎It would be great if it GDC could be installed with MSYS2.IIRC gcc will be updated with it later this year. Iain Buclaw would know more about this tho.
Feb 23 2021
On Sunday, 21 February 2021 at 01:56:28 UTC, Preetpal wrote:It would be great if it GDC could be installed with MSYS2.Update: There will soon be a native Windows gdc build w native druntime! Wait for it :)
Mar 20 2021
On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:On Sunday, 21 February 2021 at 01:56:28 UTC, Preetpal wrote:That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?It would be great if it GDC could be installed with MSYS2.Update: There will soon be a native Windows gdc build w native druntime! Wait for it :)
Mar 20 2021
On Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal wrote:On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:What Imperatorn is referring to is this, I believe: https://github.com/brechtsanders/winlibs_mingw/issues/48On Sunday, 21 February 2021 at 01:56:28 UTC, Preetpal wrote:That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?It would be great if it GDC could be installed with MSYS2.Update: There will soon be a native Windows gdc build w native druntime! Wait for it :)
Mar 21 2021
On Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal wrote:On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:I'm working in parallell with Adam Ruppe on it. Iain has a patch that we're looking at. Time wise, maybe a couple of weeks? A month? We technically have native gdc for Windows already, but we want it everything to "just work" TM.On Sunday, 21 February 2021 at 01:56:28 UTC, Preetpal wrote:That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?It would be great if it GDC could be installed with MSYS2.Update: There will soon be a native Windows gdc build w native druntime! Wait for it :)
Mar 21 2021
On Sunday, 21 March 2021 at 11:19:57 UTC, Imperatorn wrote:On Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal wrote:That's awesome. It's better to have everything to "just work" than doing an early release.On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:I'm working in parallell with Adam Ruppe on it. Iain has a patch that we're looking at. Time wise, maybe a couple of weeks? A month? We technically have native gdc for Windows already, but we want it everything to "just work" TM.On Sunday, 21 February 2021 at 01:56:28 UTC, Preetpal wrote:That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?It would be great if it GDC could be installed with MSYS2.Update: There will soon be a native Windows gdc build w native druntime! Wait for it :)
Mar 21 2021
On Sunday, 21 March 2021 at 13:26:53 UTC, Preetpal wrote:On Sunday, 21 March 2021 at 11:19:57 UTC, Imperatorn wrote:Yeah, we will post smth when we're ready. We will try to also get it into mingw.On Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal wrote:That's awesome. It's better to have everything to "just work" than doing an early release.On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:I'm working in parallell with Adam Ruppe on it. Iain has a patch that we're looking at. Time wise, maybe a couple of weeks? A month? We technically have native gdc for Windows already, but we want it everything to "just work" TM.[...]That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?
Mar 22 2021
On Sunday, 21 March 2021 at 13:26:53 UTC, Preetpal wrote:On Sunday, 21 March 2021 at 11:19:57 UTC, Imperatorn wrote:Just FYI, we're getting closer, but have some stuff not working properly with std.stdio. You can use it now but with printf: https://gofile.io/d/mdCW2cOn Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal wrote:That's awesome. It's better to have everything to "just work" than doing an early release.On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:I'm working in parallell with Adam Ruppe on it. Iain has a patch that we're looking at. Time wise, maybe a couple of weeks? A month? We technically have native gdc for Windows already, but we want it everything to "just work" TM.On Sunday, 21 February 2021 at 01:56:28 UTC, Preetpal wrote:That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?[...]Update: There will soon be a native Windows gdc build w native druntime! Wait for it :)
Apr 05 2021
On Tuesday, 6 April 2021 at 05:49:16 UTC, Imperatorn wrote:On Sunday, 21 March 2021 at 13:26:53 UTC, Preetpal wrote:gdc --version gdc (GCC) 11.0.1 20210321On Sunday, 21 March 2021 at 11:19:57 UTC, Imperatorn wrote:Just FYI, we're getting closer, but have some stuff not working properly with std.stdio. You can use it now but with printf: https://gofile.io/d/mdCW2cOn Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal wrote:That's awesome. It's better to have everything to "just work" than doing an early release.[...]I'm working in parallell with Adam Ruppe on it. Iain has a patch that we're looking at. Time wise, maybe a couple of weeks? A month? We technically have native gdc for Windows already, but we want it everything to "just work" TM.
Apr 05 2021
On Tuesday, 6 April 2021 at 05:49:16 UTC, Imperatorn wrote:Just FYI, we're getting closer, but have some stuff not working properly with std.stdio. You can use it now but with printf: https://gofile.io/d/mdCW2cThat's great. Thanks for the progress update.
Apr 07 2021
On Wednesday, 7 April 2021 at 22:37:33 UTC, Preetpal wrote:On Tuesday, 6 April 2021 at 05:49:16 UTC, Imperatorn wrote:Just got a version working with std.stdio as well. Try it out and report any bugs: https://github.com/Imperatorn/gcc/releasesJust FYI, we're getting closer, but have some stuff not working properly with std.stdio. You can use it now but with printf: https://gofile.io/d/mdCW2cThat's great. Thanks for the progress update.
Apr 07 2021
On Wednesday, 7 April 2021 at 23:01:41 UTC, Imperatorn wrote:On Wednesday, 7 April 2021 at 22:37:33 UTC, Preetpal wrote:Well I had issues running the compiler so I cannot give you meaningful feedback. I downloaded all files on the release page and placed them in a directory. At first I ran into a System Error on Windows, where a dialog box opened up and said "The code execution cannot proceed because libwinpthread-1.dll was not found. Reinstalling the program may fix this problem." Then I copied and pasted the libwinpthread-1.dll from my Mingw64 MSYS2 installation (it has GCC 10 though so that may or may not be cause of the following problem). Then I had the following errors trying to use your release: B:\D\GDC-BETA>gdc.exe main.d gdc.exe: fatal error: cannot execute 'd21': CreateProcess: No such file or directory compilation terminated. B:\D\GDC-BETA>x86_64-w64-mingw32-gcc.exe main.c x86_64-w64-mingw32-gcc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory compilation terminated. B:\D\GDC-BETA>gcc main.c gcc: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory compilation terminated. B:\D\GDC-BETA>x86_64-w64-mingw32-gdc.exe main.d x86_64-w64-mingw32-gdc.exe: fatal error: cannot execute 'd21': CreateProcess: No such file or directory compilation terminated. B:\D\GDC-BETA>On Tuesday, 6 April 2021 at 05:49:16 UTC, Imperatorn wrote:Just got a version working with std.stdio as well. Try it out and report any bugs: https://github.com/Imperatorn/gcc/releasesJust FYI, we're getting closer, but have some stuff not working properly with std.stdio. You can use it now but with printf: https://gofile.io/d/mdCW2cThat's great. Thanks for the progress update.
Apr 07 2021
On Thursday, 8 April 2021 at 02:05:56 UTC, Preetpal wrote:gdc.exe: fatal error: cannot execute 'd21': CreateProcess: No such file or directory compilation terminated.The PATH needs to include the normal mingw64 bin path as well as the path for gdc. Though I haven't tried the download here I got mine successfully building and running from the same source code..
Apr 07 2021
On Thursday, 8 April 2021 at 02:18:13 UTC, Adam D. Ruppe wrote:On Thursday, 8 April 2021 at 02:05:56 UTC, Preetpal wrote:Well I do have mingw64 on my path, but his build does not work. I might try to build GDC from source at a later time to test the release. B:\D\GDC-BETA>gdc main.d gdc: fatal error: cannot execute 'd21': CreateProcess: No such file or directory compilation terminated. B:\D\GDC-BETA>x86_64-w64-mingw32-gdc.exe main.d x86_64-w64-mingw32-gdc.exe: fatal error: cannot execute 'd21': CreateProcess: No such file or directory compilation terminated. B:\D\GDC-BETA>where clang c:\msys64\mingw64\bin\clang.exegdc.exe: fatal error: cannot execute 'd21': CreateProcess: No such file or directory compilation terminated.The PATH needs to include the normal mingw64 bin path as well as the path for gdc. Though I haven't tried the download here I got mine successfully building and running from the same source code..
Apr 07 2021
On Thursday, 8 April 2021 at 02:22:41 UTC, Preetpal wrote:On Thursday, 8 April 2021 at 02:18:13 UTC, Adam D. Ruppe wrote:To be clear, I tried it with mingw64 on my path and with a clean environment (running command prompt without mingw64 on my path).On Thursday, 8 April 2021 at 02:05:56 UTC, Preetpal wrote:Well I do have mingw64 on my path, but his build does not work. I might try to build GDC from source at a later time to test the release.gdc.exe: fatal error: cannot execute 'd21': CreateProcess: No such file or directory compilation terminated.The PATH needs to include the normal mingw64 bin path as well as the path for gdc.
Apr 07 2021
On Thursday, 8 April 2021 at 02:29:41 UTC, Preetpal wrote:On Thursday, 8 April 2021 at 02:22:41 UTC, Preetpal wrote:These are the steps you need to follow: 1. Download MSYS2 (https://www.msys2.org/) or "choco install msys2" if you have chocolatey 2. Start msys2 and paste the following: wget https://gist.githubusercontent.com/Imperatorn/7d37f22140ea5b2c80dee5a86ffff2a3/raw/761ea945c28586f5c6bbc2e09d93a 7383701da8/build.sh && ./build.sh 3. Wait :) 4. Pray... 5. Celebrate!? The build script has hopefully run and will open the bin directory with explorerOn Thursday, 8 April 2021 at 02:18:13 UTC, Adam D. Ruppe wrote:To be clear, I tried it with mingw64 on my path and with a clean environment (running command prompt without mingw64 on my path).On Thursday, 8 April 2021 at 02:05:56 UTC, Preetpal wrote:Well I do have mingw64 on my path, but his build does not work. I might try to build GDC from source at a later time to test the release.gdc.exe: fatal error: cannot execute 'd21': CreateProcess: No such file or directory compilation terminated.The PATH needs to include the normal mingw64 bin path as well as the path for gdc.
Apr 08 2021
On Thursday, 8 April 2021 at 19:10:03 UTC, Imperatorn wrote:On Thursday, 8 April 2021 at 02:29:41 UTC, Preetpal wrote:Very good job. I am playing around with it. I am not so much familiar with GDC. Looks like there is no something like "rdmd" in /opt/mingw64/bin? I want to test it to build dub.On Thursday, 8 April 2021 at 02:22:41 UTC, Preetpal wrote:These are the steps you need to follow: 1. Download MSYS2 (https://www.msys2.org/) or "choco install msys2" if you have chocolatey 2. Start msys2 and paste the following: wget https://gist.githubusercontent.com/Imperatorn/7d37f22140ea5b2c80dee5a86ffff2a3/raw/761ea945c28586f5c6bbc2e09d93a 7383701da8/build.sh && ./build.sh 3. Wait :) 4. Pray... 5. Celebrate!? The build script has hopefully run and will open the bin directory with explorer[...]To be clear, I tried it with mingw64 on my path and with a clean environment (running command prompt without mingw64 on my path).
Apr 09 2021
On Friday, 9 April 2021 at 17:32:51 UTC, Ferhat Kurtulmuş wrote:On Thursday, 8 April 2021 at 19:10:03 UTC, Imperatorn wrote:I think there should be a gdmd executable. My compilations process did not yield one.On Thursday, 8 April 2021 at 02:29:41 UTC, Preetpal wrote:Very good job. I am playing around with it. I am not so much familiar with GDC. Looks like there is no something like "rdmd" in /opt/mingw64/bin? I want to test it to build dub.[...]These are the steps you need to follow: 1. Download MSYS2 (https://www.msys2.org/) or "choco install msys2" if you have chocolatey 2. Start msys2 and paste the following: wget https://gist.githubusercontent.com/Imperatorn/7d37f22140ea5b2c80dee5a86ffff2a3/raw/761ea945c28586f5c6bbc2e09d93a 7383701da8/build.sh && ./build.sh 3. Wait :) 4. Pray... 5. Celebrate!? The build script has hopefully run and will open the bin directory with explorer
Apr 09 2021
On Friday, 9 April 2021 at 17:45:12 UTC, Ferhat Kurtulmuş wrote:On Friday, 9 April 2021 at 17:32:51 UTC, Ferhat Kurtulmuş wrote:Did you succeed in building?On Thursday, 8 April 2021 at 19:10:03 UTC, Imperatorn wrote:I think there should be a gdmd executable. My compilations process did not yield one.[...]Very good job. I am playing around with it. I am not so much familiar with GDC. Looks like there is no something like "rdmd" in /opt/mingw64/bin? I want to test it to build dub.
Apr 09 2021
On Friday, 9 April 2021 at 18:13:31 UTC, Imperatorn wrote:On Friday, 9 April 2021 at 17:45:12 UTC, Ferhat Kurtulmuş wrote:Yes. "hello world" compiles and runs. Now I am trying to compile dub. I found https://github.com/D-Programming-GDC/GDMD. but I decided to use dub for building dub with ```somefolder/bin/dub.exe build --compiler=gdc ``` which is easier for me. it complained about missing d21 executable. So, I copied it (~430 mb) from gcc-source/build/gcc into /opt/mingw64/bin which is in my $PATH. Now it says: ```d dub 1.25.0+commit.17.g79e312d0: building configuration "application"... d:/msys64/opt/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.0.1/../../../../x86_64-w64 mingw32/bin/ld.exe: cannot find -lcurl collect2.exe: error: ld returned 1 exit status ``` I have curl, libcurl, libcurl-devel, etc. installed though: ``` $ pacman -Ss curl mingw32/mingw-w64-i686-curl 7.74.0-2 Command line tool and library for transferring data with URLs. (mingw-w64) mingw32/mingw-w64-i686-flickcurl 1.26-2 Flickcurl is a C library for the Flickr API (mingw-w64) mingw64/mingw-w64-x86_64-curl 7.74.0-2 [installed] Command line tool and library for transferring data with URLs. (mingw-w64) mingw64/mingw-w64-x86_64-flickcurl 1.26-2 Flickcurl is a C library for the Flickr API (mingw-w64) msys/curl 7.74.0-4 [installed] Multi-protocol file transfer utility msys/libcurl 7.74.0-4 (libraries) [installed] Multi-protocol file transfer library (runtime) msys/libcurl-devel 7.74.0-4 (development) [installed] Libcurl headers and libraries ```On Friday, 9 April 2021 at 17:32:51 UTC, Ferhat Kurtulmuş wrote:Did you succeed in building?On Thursday, 8 April 2021 at 19:10:03 UTC, Imperatorn wrote:I think there should be a gdmd executable. My compilations process did not yield one.[...]Very good job. I am playing around with it. I am not so much familiar with GDC. Looks like there is no something like "rdmd" in /opt/mingw64/bin? I want to test it to build dub.
Apr 09 2021
On Friday, 9 April 2021 at 18:37:23 UTC, Ferhat Kurtulmuş wrote:On Friday, 9 April 2021 at 18:13:31 UTC, Imperatorn wrote:I can take a look in a couple of hours, in the meantime, read this: https://stackoverflow.com/questions/335928/ld-cannot-find-an-existing-library[...]Yes. "hello world" compiles and runs. Now I am trying to compile dub. I found https://github.com/D-Programming-GDC/GDMD. but I decided to use dub for building dub with ```somefolder/bin/dub.exe build --compiler=gdc ``` which is easier for me. [...]
Apr 09 2021
On Friday, 9 April 2021 at 18:42:21 UTC, Imperatorn wrote:On Friday, 9 April 2021 at 18:37:23 UTC, Ferhat Kurtulmuş wrote:The below is the output of "gdc -print-search-dirs" command. As you can see, there are search paths beginning with "d:/msys64". I think they should be /d/msys64 or just /msys64 in msys2. That is the problem. ```gdc -print-search-dirs | sed '/^lib/b 1;d;:1;s,/[^/.][^/]*/\.\./,/,;t 1;s,:[^=]*=,:;,;s,;,; ,g' | tr \; \\012 libraries: d:/msys64/opt/mingw64/lib/gcc/x86_64-w64-mingw32/11.0.1/ d:/msys64/opt/mingw64/lib/gcc/ d:/msys64/opt/mingw64/x86_64-w64-mingw32/lib/x86_64-w64-mingw32/11.0.1/ d:/msys64/opt/mingw64/x86_64-w64-mingw32/lib/ d:/msys64/opt/mingw64/lib/x86_64-w64-mingw32/11.0.1/ d:/msys64/opt/mingw64/lib/ /mingw/lib/x86_64-w64-mingw32/11.0.1/ /mingw/lib/ d:/msys64/opt/mingw64/x86_64-w64-mingw32/lib/ d:/msys64/opt/mingw64/lib/ /mingw/lib/ ```On Friday, 9 April 2021 at 18:13:31 UTC, Imperatorn wrote:I can take a look in a couple of hours, in the meantime, read this: https://stackoverflow.com/questions/335928/ld-cannot-find-an-existing-library[...]Yes. "hello world" compiles and runs. Now I am trying to compile dub. I found https://github.com/D-Programming-GDC/GDMD. but I decided to use dub for building dub with ```somefolder/bin/dub.exe build --compiler=gdc ``` which is easier for me. [...]
Apr 10 2021
On Saturday, 10 April 2021 at 10:59:58 UTC, Ferhat Kurtulmuş wrote:On Friday, 9 April 2021 at 18:42:21 UTC, Imperatorn wrote:Did you install msys on D:? Does it work if you manually supply -L?[...]The below is the output of "gdc -print-search-dirs" command. As you can see, there are search paths beginning with "d:/msys64". I think they should be /d/msys64 or just /msys64 in msys2. That is the problem. [...]
Apr 10 2021
On Saturday, 10 April 2021 at 12:31:27 UTC, Imperatorn wrote:On Saturday, 10 April 2021 at 10:59:58 UTC, Ferhat Kurtulmuş wrote:Actually, I did a workaround by supplying the LIBRARY_PATH manually. Now curl is found. But I am having some linker errors related to winsockets (missing symbols). I will share the linker errors when I back home.On Friday, 9 April 2021 at 18:42:21 UTC, Imperatorn wrote:Did you install msys on D:? Does it work if you manually supply -L?[...]The below is the output of "gdc -print-search-dirs" command. As you can see, there are search paths beginning with "d:/msys64". I think they should be /d/msys64 or just /msys64 in msys2. That is the problem. [...]
Apr 10 2021
On Saturday, 10 April 2021 at 13:02:36 UTC, Ferhat Kurtulmuş wrote:On Saturday, 10 April 2021 at 12:31:27 UTC, Imperatorn wrote:Here are the command and the output. https://controlc.com/a0968e90On Saturday, 10 April 2021 at 10:59:58 UTC, Ferhat Kurtulmuş wrote:Actually, I did a workaround by supplying the LIBRARY_PATH manually. Now curl is found. But I am having some linker errors related to winsockets (missing symbols). I will share the linker errors when I back home.On Friday, 9 April 2021 at 18:42:21 UTC, Imperatorn wrote:Did you install msys on D:? Does it work if you manually supply -L?[...]The below is the output of "gdc -print-search-dirs" command. As you can see, there are search paths beginning with "d:/msys64". I think they should be /d/msys64 or just /msys64 in msys2. That is the problem. [...]
Apr 10 2021
On Saturday, 10 April 2021 at 15:08:56 UTC, Ferhat Kurtulmuş wrote:On Saturday, 10 April 2021 at 13:02:36 UTC, Ferhat Kurtulmuş wrote:Thanks, what can we do to reproduce this? Just try do anything socket-related?On Saturday, 10 April 2021 at 12:31:27 UTC, Imperatorn wrote:Here are the command and the output. https://controlc.com/a0968e90On Saturday, 10 April 2021 at 10:59:58 UTC, Ferhat Kurtulmuş wrote:Actually, I did a workaround by supplying the LIBRARY_PATH manually. Now curl is found. But I am having some linker errors related to winsockets (missing symbols). I will share the linker errors when I back home.[...]Did you install msys on D:? Does it work if you manually supply -L?
Apr 11 2021
On Sunday, 11 April 2021 at 18:32:19 UTC, Imperatorn wrote:On Saturday, 10 April 2021 at 15:08:56 UTC, Ferhat Kurtulmuş wrote:The server code in Adam's socket tutorial: http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html#server ```d gdc test.d -o test-L/opt/mingw64/x86_64-w64-mingw32/lib -lws2_32 -lwsock32 ./test ``` Looks like a name mangling problem. I don't know.On Saturday, 10 April 2021 at 13:02:36 UTC, Ferhat Kurtulmuş wrote:Thanks, what can we do to reproduce this? Just try do anything socket-related?On Saturday, 10 April 2021 at 12:31:27 UTC, Imperatorn wrote:Here are the command and the output. https://controlc.com/a0968e90On Saturday, 10 April 2021 at 10:59:58 UTC, Ferhat Kurtulmuş wrote:Actually, I did a workaround by supplying the LIBRARY_PATH manually. Now curl is found. But I am having some linker errors related to winsockets (missing symbols). I will share the linker errors when I back home.[...]Did you install msys on D:? Does it work if you manually supply -L?
Apr 11 2021
On Sunday, 11 April 2021 at 19:15:18 UTC, Ferhat Kurtulmuş wrote:On Sunday, 11 April 2021 at 18:32:19 UTC, Imperatorn wrote:The only working solution is explicitly providing all library files and the source as inputs. ```gdc main.d libgdruntime.a libgphobos.a libwsock32.a libws2_32.a -o main```On Saturday, 10 April 2021 at 15:08:56 UTC, Ferhat Kurtulmuş wrote:The server code in Adam's socket tutorial: http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html#server ```d gdc test.d -o test-L/opt/mingw64/x86_64-w64-mingw32/lib -lws2_32 -lwsock32 ./test ``` Looks like a name mangling problem. I don't know.On Saturday, 10 April 2021 at 13:02:36 UTC, Ferhat Kurtulmuş wrote:Thanks, what can we do to reproduce this? Just try do anything socket-related?[...]Here are the command and the output. https://controlc.com/a0968e90
Apr 20 2021
On Tuesday, 20 April 2021 at 09:48:01 UTC, Ferhat Kurtulmuş wrote:On Sunday, 11 April 2021 at 19:15:18 UTC, Ferhat Kurtulmuş wrote:Good catch, we have some more patches coming. But I've had a NDE aka mancold so not so active. Iain is working hard to get gcc 11 ready. If the gods are with us I might have time to try build the latest tonight or tomorrow.On Sunday, 11 April 2021 at 18:32:19 UTC, Imperatorn wrote:The only working solution is explicitly providing all library files and the source as inputs. ```gdc main.d libgdruntime.a libgphobos.a libwsock32.a libws2_32.a -o main```On Saturday, 10 April 2021 at 15:08:56 UTC, Ferhat Kurtulmuş wrote:The server code in Adam's socket tutorial: http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html#server ```d gdc test.d -o test-L/opt/mingw64/x86_64-w64-mingw32/lib -lws2_32 -lwsock32 ./test ``` Looks like a name mangling problem. I don't know.On Saturday, 10 April 2021 at 13:02:36 UTC, Ferhat Kurtulmuş wrote:Thanks, what can we do to reproduce this? Just try do anything socket-related?[...]Here are the command and the output. https://controlc.com/a0968e90
Apr 21 2021
On Wednesday, 21 April 2021 at 18:03:57 UTC, Imperatorn wrote:On Tuesday, 20 April 2021 at 09:48:01 UTC, Ferhat Kurtulmuş wrote:Thank you for your valued efforts. I would like to report some additional results of my tests. I could also compile dub by adding "gdruntime" "gphobos" "wsock32" "ws2_32" in dub.sdl. I don't know if it is expected, but it looks like GDC does not link Phobos automatically as LDC does. If I am not wrong g++ also expects c++ runtime must be linked explicitly with -lstd++. And, I tried a simple SDL2 based dub project but I got a Segmentation fault during compilation.On Sunday, 11 April 2021 at 19:15:18 UTC, Ferhat Kurtulmuş wrote:Good catch, we have some more patches coming. But I've had a NDE aka mancold so not so active. Iain is working hard to get gcc 11 ready. If the gods are with us I might have time to try build the latest tonight or tomorrow.On Sunday, 11 April 2021 at 18:32:19 UTC, Imperatorn wrote:The only working solution is explicitly providing all library files and the source as inputs. ```gdc main.d libgdruntime.a libgphobos.a libwsock32.a libws2_32.a -o main```On Saturday, 10 April 2021 at 15:08:56 UTC, Ferhat Kurtulmuş wrote:The server code in Adam's socket tutorial: http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html#server ```d gdc test.d -o test-L/opt/mingw64/x86_64-w64-mingw32/lib -lws2_32 -lwsock32 ./test ``` Looks like a name mangling problem. I don't know.On Saturday, 10 April 2021 at 13:02:36 UTC, Ferhat Kurtulmuş wrote:Thanks, what can we do to reproduce this? Just try do anything socket-related?[...]Here are the command and the output. https://controlc.com/a0968e90
Apr 21 2021
On Thursday, 22 April 2021 at 06:31:14 UTC, Ferhat Kurtulmuş wrote:On Wednesday, 21 April 2021 at 18:03:57 UTC, Imperatorn wrote:*cpp runtime should be standard library sorry.[...]Thank you for your valued efforts. I would like to report some additional results of my tests. I could also compile dub by adding "gdruntime" "gphobos" "wsock32" "ws2_32" in dub.sdl. I don't know if it is expected, but it looks like GDC does not link Phobos automatically as LDC does. If I am not wrong g++ also expects c++ runtime must be linked explicitly with -lstd++. And, I tried a simple SDL2 based dub project but I got a Segmentation fault during compilation.
Apr 21 2021
On Thursday, 22 April 2021 at 06:31:14 UTC, Ferhat Kurtulmuş wrote:On Wednesday, 21 April 2021 at 18:03:57 UTC, Imperatorn wrote:Did you try running this with the build script pointing to http://github.com/Imperatorn/gcc?[...]Thank you for your valued efforts. I would like to report some additional results of my tests. I could also compile dub by adding "gdruntime" "gphobos" "wsock32" "ws2_32" in dub.sdl. I don't know if it is expected, but it looks like GDC does not link Phobos automatically as LDC does. If I am not wrong g++ also expects c++ runtime must be linked explicitly with -lstd++. And, I tried a simple SDL2 based dub project but I got a Segmentation fault during compilation.
Apr 21 2021
On Thursday, 22 April 2021 at 06:55:05 UTC, Imperatorn wrote:On Thursday, 22 April 2021 at 06:31:14 UTC, Ferhat Kurtulmuş wrote:I did not understand what you mean, I am sorry. If you mean if I used your build scripts in gist repo[1], yes. 1: https://gist.githubusercontent.com/Imperatorn/7d37f22140ea5b2c80dee5a86ffff2a3/raw/761ea945c28586f5c6bbc2e09d93a27383701da8/build.shOn Wednesday, 21 April 2021 at 18:03:57 UTC, Imperatorn wrote:Did you try running this with the build script pointing to http://github.com/Imperatorn/gcc?[...]Thank you for your valued efforts. I would like to report some additional results of my tests. I could also compile dub by adding "gdruntime" "gphobos" "wsock32" "ws2_32" in dub.sdl. I don't know if it is expected, but it looks like GDC does not link Phobos automatically as LDC does. If I am not wrong g++ also expects c++ runtime must be linked explicitly with -lstd++. And, I tried a simple SDL2 based dub project but I got a Segmentation fault during compilation.
Apr 22 2021
On Thursday, 22 April 2021 at 07:09:01 UTC, Ferhat Kurtulmuş wrote:On Thursday, 22 April 2021 at 06:55:05 UTC, Imperatorn wrote:Sorry, yes, that's what I meant. I'm currently trying another branch, I'll report back when I have more information.On Thursday, 22 April 2021 at 06:31:14 UTC, Ferhat Kurtulmuş wrote:I did not understand what you mean, I am sorry. If you mean if I used your build scripts in gist repo[1], yes. 1: https://gist.githubusercontent.com/Imperatorn/7d37f22140ea5b2c80dee5a86ffff2a3/raw/761ea945c28586f5c6bbc2e09d93a27383701da8/build.sh[...]Did you try running this with the build script pointing to http://github.com/Imperatorn/gcc?
Apr 22 2021
On Thursday, 22 April 2021 at 07:19:37 UTC, Imperatorn wrote:On Thursday, 22 April 2021 at 07:09:01 UTC, Ferhat Kurtulmuş wrote:Currently these seem to not be correctly linked in libphobos: process.d needs shell32.lib advapi32.d needs advapi32.lib winsock2.d needs ws2_32 socket.d needs ws2_32.lib and wsock32.lib Since gcc doesn't support pragma lib we have to fix those (it's used in the sources)On Thursday, 22 April 2021 at 06:55:05 UTC, Imperatorn wrote:Sorry, yes, that's what I meant. I'm currently trying another branch, I'll report back when I have more information.On Thursday, 22 April 2021 at 06:31:14 UTC, Ferhat Kurtulmuş wrote:I did not understand what you mean, I am sorry. If you mean if I used your build scripts in gist repo[1], yes. 1: https://gist.githubusercontent.com/Imperatorn/7d37f22140ea5b2c80dee5a86ffff2a3/raw/761ea945c28586f5c6bbc2e09d93a27383701da8/build.sh[...]Did you try running this with the build script pointing to http://github.com/Imperatorn/gcc?
Apr 22 2021
On Thursday, 22 April 2021 at 09:40:51 UTC, Imperatorn wrote:On Thursday, 22 April 2021 at 07:19:37 UTC, Imperatorn wrote:Yes, I saw those definitions in the sources of Phobos and thought that they might be the reason. libphobos shouldn't have relied on those pragmas. In the current situation, each compiler somehow has to support them. I see here[1] that LDC supports them. https://github.com/ldc-developers/ldc/blob/master/CHANGELOG.md#ldc-1200-2020-02-14On Thursday, 22 April 2021 at 07:09:01 UTC, Ferhat Kurtulmuş wrote:Currently these seem to not be correctly linked in libphobos: process.d needs shell32.lib advapi32.d needs advapi32.lib winsock2.d needs ws2_32 socket.d needs ws2_32.lib and wsock32.lib Since gcc doesn't support pragma lib we have to fix those (it's used in the sources)On Thursday, 22 April 2021 at 06:55:05 UTC, Imperatorn wrote:Sorry, yes, that's what I meant. I'm currently trying another branch, I'll report back when I have more information.On Thursday, 22 April 2021 at 06:31:14 UTC, Ferhat Kurtulmuş wrote:I did not understand what you mean, I am sorry. If you mean if I used your build scripts in gist repo[1], yes. 1: https://gist.githubusercontent.com/Imperatorn/7d37f22140ea5b2c80dee5a86ffff2a3/raw/761ea945c28586f5c6bbc2e09d93a27383701da8/build.sh[...]Did you try running this with the build script pointing to http://github.com/Imperatorn/gcc?
Apr 22 2021
On Thursday, 22 April 2021 at 09:59:23 UTC, Ferhat Kurtulmuş wrote:On Thursday, 22 April 2021 at 09:40:51 UTC, Imperatorn wrote:Yeah, DMD and LDC supports them, but not G[D|C]COn Thursday, 22 April 2021 at 07:19:37 UTC, Imperatorn wrote:Yes, I saw those definitions in the sources of Phobos and thought that they might be the reason. libphobos shouldn't have relied on those pragmas. In the current situation, each compiler somehow has to support them. I see here[1] that LDC supports them. https://github.com/ldc-developers/ldc/blob/master/CHANGELOG.md#ldc-1200-2020-02-14[...]Currently these seem to not be correctly linked in libphobos: process.d needs shell32.lib advapi32.d needs advapi32.lib winsock2.d needs ws2_32 socket.d needs ws2_32.lib and wsock32.lib Since gcc doesn't support pragma lib we have to fix those (it's used in the sources)
Apr 22 2021
On Thursday, 22 April 2021 at 09:59:23 UTC, Ferhat Kurtulmuş wrote:On Thursday, 22 April 2021 at 09:40:51 UTC, Imperatorn wrote:The good news is, there aren't many of them. So we can fix it, but the initial time plan is out of the picture. Maybe some time in May?On Thursday, 22 April 2021 at 07:19:37 UTC, Imperatorn wrote:Yes, I saw those definitions in the sources of Phobos and thought that they might be the reason. libphobos shouldn't have relied on those pragmas. In the current situation, each compiler somehow has to support them. I see here[1] that LDC supports them. https://github.com/ldc-developers/ldc/blob/master/CHANGELOG.md#ldc-1200-2020-02-14[...]Currently these seem to not be correctly linked in libphobos: process.d needs shell32.lib advapi32.d needs advapi32.lib winsock2.d needs ws2_32 socket.d needs ws2_32.lib and wsock32.lib Since gcc doesn't support pragma lib we have to fix those (it's used in the sources)
Apr 23 2021
On Friday, 23 April 2021 at 11:43:59 UTC, Imperatorn wrote:On Thursday, 22 April 2021 at 09:59:23 UTC, Ferhat Kurtulmuş wrote:Are there any new problems in solving this issue or is it an issue of time? Also, were there any other blocking issues?On Thursday, 22 April 2021 at 09:40:51 UTC, Imperatorn wrote:The good news is, there aren't many of them. So we can fix it, but the initial time plan is out of the picture. Maybe some time in May?[...]Yes, I saw those definitions in the sources of Phobos and thought that they might be the reason. libphobos shouldn't have relied on those pragmas. In the current situation, each compiler somehow has to support them. I see here[1] that LDC supports them. https://github.com/ldc-developers/ldc/blob/master/CHANGELOG.md#ldc-1200-2020-02-14
Jun 19 2021
On Saturday, 19 June 2021 at 23:08:46 UTC, Preetpal wrote:On Friday, 23 April 2021 at 11:43:59 UTC, Imperatorn wrote:Most things should be fixed now. Unfortunately I don't have any time right now. Iain is your best hope!On Thursday, 22 April 2021 at 09:59:23 UTC, Ferhat Kurtulmuş wrote:Are there any new problems in solving this issue or is it an issue of time? Also, were there any other blocking issues?[...]The good news is, there aren't many of them. So we can fix it, but the initial time plan is out of the picture. Maybe some time in May?
Jun 22 2021
On Thursday, 8 April 2021 at 19:10:03 UTC, Imperatorn wrote:On Thursday, 8 April 2021 at 02:29:41 UTC, Preetpal wrote:The build script ran successfully! :) I tried it out with a few console programs and a program I made a forum post about earlier (https://gist.github.com/preetpalS/d2482d6ec91eb8147e6cff43ab197ed5) and everything was working when compiling with GDC on Windows.On Thursday, 8 April 2021 at 02:22:41 UTC, Preetpal wrote:These are the steps you need to follow: 1. Download MSYS2 (https://www.msys2.org/) or "choco install msys2" if you have chocolatey 2. Start msys2 and paste the following: wget https://gist.githubusercontent.com/Imperatorn/7d37f22140ea5b2c80dee5a86ffff2a3/raw/761ea945c28586f5c6bbc2e09d93a 7383701da8/build.sh && ./build.sh 3. Wait :) 4. Pray... 5. Celebrate!? The build script has hopefully run and will open the bin directory with explorerOn Thursday, 8 April 2021 at 02:18:13 UTC, Adam D. Ruppe wrote:To be clear, I tried it with mingw64 on my path and with a clean environment (running command prompt without mingw64 on my path).On Thursday, 8 April 2021 at 02:05:56 UTC, Preetpal wrote:Well I do have mingw64 on my path, but his build does not work. I might try to build GDC from source at a later time to test the release.gdc.exe: fatal error: cannot execute 'd21': CreateProcess: No such file or directory compilation terminated.The PATH needs to include the normal mingw64 bin path as well as the path for gdc.
Apr 11 2021
On Sunday, 11 April 2021 at 07:20:35 UTC, Preetpal wrote:On Thursday, 8 April 2021 at 19:10:03 UTC, Imperatorn wrote:Cool! We'll try and fix those winsock problems as well.[...]The build script ran successfully! :) I tried it out with a few console programs and a program I made a forum post about earlier (https://gist.github.com/preetpalS/d2482d6ec91eb8147e6cff43ab197ed5) and everything was working when compiling with GDC on Windows.
Apr 11 2021
On Wednesday, 7 April 2021 at 23:01:41 UTC, Imperatorn wrote:On Wednesday, 7 April 2021 at 22:37:33 UTC, Preetpal wrote:How are you building this on Windows? Are you doing anything beyond running ./configure in the repo from the mingw-w64 command line and running the build process? I think there probably were some other artifacts related to your build environment that were on your path that were necessary to run the GDC build that you did not package in the release.On Tuesday, 6 April 2021 at 05:49:16 UTC, Imperatorn wrote:Just got a version working with std.stdio as well. Try it out and report any bugs: https://github.com/Imperatorn/gcc/releasesJust FYI, we're getting closer, but have some stuff not working properly with std.stdio. You can use it now but with printf: https://gofile.io/d/mdCW2cThat's great. Thanks for the progress update.
Apr 07 2021
On Thursday, 8 April 2021 at 02:13:10 UTC, Preetpal wrote:On Wednesday, 7 April 2021 at 23:01:41 UTC, Imperatorn wrote:Sorry, I forgot to say, you cannot currently build it without special configuration. I'll upload a build script later. I just meant running the executables and see what errors you get. I see that I missed to upload some files, I'll fix that. I also want to take the opportunity to thank Iain Buclaw and Adam D Ruppe for making this possible! Stay tunedOn Wednesday, 7 April 2021 at 22:37:33 UTC, Preetpal wrote:How are you building this on Windows? Are you doing anything beyond running ./configure in the repo from the mingw-w64 command line and running the build process? I think there probably were some other artifacts related to your build environment that were on your path that were necessary to run the GDC build that you did not package in the release.On Tuesday, 6 April 2021 at 05:49:16 UTC, Imperatorn wrote:Just got a version working with std.stdio as well. Try it out and report any bugs: https://github.com/Imperatorn/gcc/releasesJust FYI, we're getting closer, but have some stuff not working properly with std.stdio. You can use it now but with printf: https://gofile.io/d/mdCW2cThat's great. Thanks for the progress update.
Apr 07 2021
On Wednesday, 7 April 2021 at 23:01:41 UTC, Imperatorn wrote:On Wednesday, 7 April 2021 at 22:37:33 UTC, Preetpal wrote:I am not familiar with tooling related to linking but I have had success troubleshooting library loading issues with https://github.com/lucasg/Dependencies in the past when dealing with MSYS2 Mingw64. If you use it from the command line environment that used to build an executable or library, you can see what dependencies are being loaded and which ones cannot be loaded.On Tuesday, 6 April 2021 at 05:49:16 UTC, Imperatorn wrote:Just got a version working with std.stdio as well. Try it out and report any bugs: https://github.com/Imperatorn/gcc/releasesJust FYI, we're getting closer, but have some stuff not working properly with std.stdio. You can use it now but with printf: https://gofile.io/d/mdCW2cThat's great. Thanks for the progress update.
Apr 07 2021