6 days ago
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
6 days ago
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
5 days ago
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.
5 days ago
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
5 days ago
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>
5 days ago
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.
5 days ago
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..
5 days ago
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.
5 days ago
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
5 days ago
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).
1 2 3 4