www.digitalmars.com         C & C++   DMDScript  

D.gnu - Are there any GDC builds available for Windows?

reply Preetpal <preetpal.sohal gmail.com> writes:
It would be great if it GDC could be installed with MSYS2.
Feb 20 2021
next sibling parent Siemargl <inqnone gmail.com> writes:
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
prev sibling next sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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
parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Tuesday, 23 February 2021 at 10:16:33 UTC, Imperatorn wrote:
 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.
with *it* I meant latest D just to clarify 😎
Feb 23 2021
prev sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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
parent reply Preetpal <preetpal.sohal gmail.com> writes:
On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:
 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 :)
That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?
Mar 20 2021
next sibling parent Mike Parker <aldacron gmail.com> writes:
On Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal wrote:
 On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:
 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 :)
That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?
What Imperatorn is referring to is this, I believe: https://github.com/brechtsanders/winlibs_mingw/issues/48
Mar 21 2021
prev sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal wrote:
 On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:
 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 :)
That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?
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.
Mar 21 2021
parent reply Preetpal <preetpal.sohal gmail.com> writes:
On Sunday, 21 March 2021 at 11:19:57 UTC, Imperatorn wrote:
 On Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal wrote:
 On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:
 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 :)
That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?
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 awesome. It's better to have everything to "just work" than doing an early release.
Mar 21 2021
next sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Sunday, 21 March 2021 at 13:26:53 UTC, Preetpal wrote:
 On Sunday, 21 March 2021 at 11:19:57 UTC, Imperatorn wrote:
 On Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal wrote:
 On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:
 [...]
That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?
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 awesome. It's better to have everything to "just work" than doing an early release.
Yeah, we will post smth when we're ready. We will try to also get it into mingw.
Mar 22 2021
prev sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Sunday, 21 March 2021 at 13:26:53 UTC, Preetpal wrote:
 On Sunday, 21 March 2021 at 11:19:57 UTC, Imperatorn wrote:
 On Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal wrote:
 On Saturday, 20 March 2021 at 13:36:41 UTC, Imperatorn wrote:
 On Sunday, 21 February 2021 at 01:56:28 UTC, Preetpal wrote:
 [...]
Update: There will soon be a native Windows gdc build w native druntime! Wait for it :)
That's cool :). Do you have any idea though when? Are you working on the native Windows GDC build?
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 awesome. It's better to have everything to "just work" than doing an early release.
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/mdCW2c
Apr 05 2021
next sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Tuesday, 6 April 2021 at 05:49:16 UTC, Imperatorn wrote:
 On Sunday, 21 March 2021 at 13:26:53 UTC, Preetpal wrote:
 On Sunday, 21 March 2021 at 11:19:57 UTC, Imperatorn wrote:
 On Sunday, 21 March 2021 at 06:30:03 UTC, Preetpal 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 awesome. It's better to have everything to "just work" than doing an early release.
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/mdCW2c
gdc --version gdc (GCC) 11.0.1 20210321
Apr 05 2021
prev sibling parent reply Preetpal <preetpal.sohal gmail.com> writes:
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/mdCW2c
That's great. Thanks for the progress update.
Apr 07 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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 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/mdCW2c
That's great. Thanks for the progress update.
Just got a version working with std.stdio as well. Try it out and report any bugs: https://github.com/Imperatorn/gcc/releases
Apr 07 2021
next sibling parent reply Preetpal <preetpal.sohal gmail.com> writes:
On Wednesday, 7 April 2021 at 23:01:41 UTC, Imperatorn wrote:
 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 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/mdCW2c
That's great. Thanks for the progress update.
Just got a version working with std.stdio as well. Try it out and report any bugs: https://github.com/Imperatorn/gcc/releases
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>
Apr 07 2021
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
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
parent reply Preetpal <preetpal.sohal gmail.com> writes:
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:
 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..
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.exe
Apr 07 2021
parent reply Preetpal <preetpal.sohal gmail.com> writes:
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:
 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.
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.
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 07 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Thursday, 8 April 2021 at 02:29:41 UTC, Preetpal wrote:
 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:
 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.
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.
To be clear, I tried it with mingw64 on my path and with a clean environment (running command prompt without mingw64 on my path).
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 08 2021
next sibling parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
On Thursday, 8 April 2021 at 19:10:03 UTC, Imperatorn wrote:
 On Thursday, 8 April 2021 at 02:29:41 UTC, Preetpal wrote:
 On Thursday, 8 April 2021 at 02:22:41 UTC, Preetpal 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).
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
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
parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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:
 On Thursday, 8 April 2021 at 02:29: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
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.
I think there should be a gdmd executable. My compilations process did not yield one.
Apr 09 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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:
 On Thursday, 8 April 2021 at 19:10:03 UTC, Imperatorn 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.
I think there should be a gdmd executable. My compilations process did not yield one.
Did you succeed in building?
Apr 09 2021
parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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:
 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:
 [...]
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.
I think there should be a gdmd executable. My compilations process did not yield one.
Did you succeed in building?
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 ```
Apr 09 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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:
 [...]
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. [...]
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
Apr 09 2021
parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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:
 On Friday, 9 April 2021 at 18:13:31 UTC, Imperatorn 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. [...]
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
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/ ```
Apr 10 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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:
 [...]
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. [...]
Did you install msys on D:? Does it work if you manually supply -L?
Apr 10 2021
parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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:
 On Friday, 9 April 2021 at 18:42:21 UTC, Imperatorn 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. [...]
Did you install msys on D:? Does it work if you manually supply -L?
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.
Apr 10 2021
parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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:
 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:
 [...]
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. [...]
Did you install msys on D:? Does it work if you manually supply -L?
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.
Here are the command and the output. https://controlc.com/a0968e90
Apr 10 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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:
 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:
 [...]
Did you install msys on D:? Does it work if you manually supply -L?
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.
Here are the command and the output. https://controlc.com/a0968e90
Thanks, what can we do to reproduce this? Just try do anything socket-related?
Apr 11 2021
parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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:
 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:
 On Saturday, 10 April 2021 at 10:59:58 UTC, Ferhat Kurtulmuş 
 wrote:
 [...]
Did you install msys on D:? Does it work if you manually supply -L?
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.
Here are the command and the output. https://controlc.com/a0968e90
Thanks, what can we do to reproduce this? Just try do anything socket-related?
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.
Apr 11 2021
parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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:
 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:
 [...]
Here are the command and the output. https://controlc.com/a0968e90
Thanks, what can we do to reproduce this? Just try do anything socket-related?
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.
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```
Apr 20 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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:
 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:
 On Saturday, 10 April 2021 at 13:02:36 UTC, Ferhat Kurtulmuş 
 wrote:
 [...]
Here are the command and the output. https://controlc.com/a0968e90
Thanks, what can we do to reproduce this? Just try do anything socket-related?
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.
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```
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.
Apr 21 2021
parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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:
 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:
 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:
 [...]
Here are the command and the output. https://controlc.com/a0968e90
Thanks, what can we do to reproduce this? Just try do anything socket-related?
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.
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```
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.
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
next sibling parent Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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:
 [...]
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.
*cpp runtime should be standard library sorry.
Apr 21 2021
prev sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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:
 [...]
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.
Did you try running this with the build script pointing to http://github.com/Imperatorn/gcc?
Apr 21 2021
parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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:
 On Wednesday, 21 April 2021 at 18:03:57 UTC, Imperatorn 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.
Did you try running this with the build script pointing to http://github.com/Imperatorn/gcc?
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
Apr 22 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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:
 On Thursday, 22 April 2021 at 06:31:14 UTC, Ferhat Kurtulmuş 
 wrote:
 [...]
Did you try running this with the build script pointing to http://github.com/Imperatorn/gcc?
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
Sorry, yes, that's what I meant. I'm currently trying another branch, I'll report back when I have more information.
Apr 22 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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:
 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:
 [...]
Did you try running this with the build script pointing to http://github.com/Imperatorn/gcc?
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
Sorry, yes, that's what I meant. I'm currently trying another branch, I'll report back when I have more information.
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
parent reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
On Thursday, 22 April 2021 at 09:40:51 UTC, Imperatorn wrote:
 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:
 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:
 [...]
Did you try running this with the build script pointing to http://github.com/Imperatorn/gcc?
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
Sorry, yes, that's what I meant. I'm currently trying another branch, I'll report back when I have more information.
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)
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
Apr 22 2021
next sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
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:
 On Thursday, 22 April 2021 at 07:19:37 UTC, Imperatorn 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)
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
Yeah, DMD and LDC supports them, but not G[D|C]C
Apr 22 2021
prev sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
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:
 On Thursday, 22 April 2021 at 07:19:37 UTC, Imperatorn 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)
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
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?
Apr 23 2021
parent reply Preetpal <preetpal.sohal gmail.com> writes:
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:
 On Thursday, 22 April 2021 at 09:40:51 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
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?
Are there any new problems in solving this issue or is it an issue of time? Also, were there any other blocking issues?
Jun 19 2021
parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Saturday, 19 June 2021 at 23:08:46 UTC, Preetpal wrote:
 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:
 [...]
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?
Are there any new problems in solving this issue or is it an issue of time? Also, were there any other blocking issues?
Most things should be fixed now. Unfortunately I don't have any time right now. Iain is your best hope!
Jun 22 2021
prev sibling parent reply Preetpal <preetpal.sohal gmail.com> writes:
On Thursday, 8 April 2021 at 19:10:03 UTC, Imperatorn wrote:
 On Thursday, 8 April 2021 at 02:29:41 UTC, Preetpal wrote:
 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:
 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.
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.
To be clear, I tried it with mingw64 on my path and with a clean environment (running command prompt without mingw64 on my path).
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
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
parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Sunday, 11 April 2021 at 07:20:35 UTC, Preetpal wrote:
 On Thursday, 8 April 2021 at 19:10:03 UTC, Imperatorn 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.
Cool! We'll try and fix those winsock problems as well.
Apr 11 2021
prev sibling next sibling parent reply Preetpal <preetpal.sohal gmail.com> writes:
On Wednesday, 7 April 2021 at 23:01:41 UTC, Imperatorn wrote:
 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 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/mdCW2c
That's great. Thanks for the progress update.
Just got a version working with std.stdio as well. Try it out and report any bugs: https://github.com/Imperatorn/gcc/releases
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.
Apr 07 2021
parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Thursday, 8 April 2021 at 02:13:10 UTC, Preetpal wrote:
 On Wednesday, 7 April 2021 at 23:01:41 UTC, Imperatorn wrote:
 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 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/mdCW2c
That's great. Thanks for the progress update.
Just got a version working with std.stdio as well. Try it out and report any bugs: https://github.com/Imperatorn/gcc/releases
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.
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 tuned
Apr 07 2021
prev sibling parent Preetpal <preetpal.sohal gmail.com> writes:
On Wednesday, 7 April 2021 at 23:01:41 UTC, Imperatorn wrote:
 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 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/mdCW2c
That's great. Thanks for the progress update.
Just got a version working with std.stdio as well. Try it out and report any bugs: https://github.com/Imperatorn/gcc/releases
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.
Apr 07 2021