www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [Feature Request] - DMD debug build distribution

reply Hipreme <msnmancini hotmail.com> writes:
My project seems to be crashing DMD sometimes on its compilation. 
Would be nice to have a DMD debug build for distribution, it 
attempts to call JIT Debugger for dmd.exe right before it starts 
linking. I'm using Windows 10.
Nov 13 2022
next sibling parent reply WebFreak001 <d.forum webfreak.org> writes:
On Sunday, 13 November 2022 at 15:15:54 UTC, Hipreme wrote:
 My project seems to be crashing DMD sometimes on its 
 compilation. Would be nice to have a DMD debug build for 
 distribution, it attempts to call JIT Debugger for dmd.exe 
 right before it starts linking. I'm using Windows 10.
compiling DMD takes just a few seconds on recent machines, even compiles in about under 10 seconds on my old laptop, so I would recommend building it from source. You can find build instructions on https://wiki.dlang.org/Building_under_Windows Using digger it seems you can simply enable it by turning on components.dmd.debugDMD in the digger.ini file (that you can copy from the sample in the git repository)
Nov 13 2022
parent Hipreme <msnmancini hotmail.com> writes:
On Sunday, 13 November 2022 at 16:25:30 UTC, WebFreak001 wrote:
 On Sunday, 13 November 2022 at 15:15:54 UTC, Hipreme wrote:
 My project seems to be crashing DMD sometimes on its 
 compilation. Would be nice to have a DMD debug build for 
 distribution, it attempts to call JIT Debugger for dmd.exe 
 right before it starts linking. I'm using Windows 10.
compiling DMD takes just a few seconds on recent machines, even compiles in about under 10 seconds on my old laptop, so I would recommend building it from source. You can find build instructions on https://wiki.dlang.org/Building_under_Windows Using digger it seems you can simply enable it by turning on components.dmd.debugDMD in the digger.ini file (that you can copy from the sample in the git repository)
Nope, does not compile here. src\dmd\backend\blockopt.d(1164): Error: ` safe` function `dmd.backend.blockopt.compdfo` cannot call ` system` function `core.stdc.stdio.printf`
Nov 13 2022
prev sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 11/13/2022 7:15 AM, Hipreme wrote:
 My project seems to be crashing DMD sometimes on its compilation. Would be
nice 
 to have a DMD debug build for distribution, it attempts to call JIT Debugger
for 
 dmd.exe right before it starts linking. I'm using Windows 10.
If you can reduce the test case that causes dmd to crash, we can fix it. Please report it to bugzilla!
Nov 13 2022
next sibling parent Hipreme <msnmancini hotmail.com> writes:
On Sunday, 13 November 2022 at 18:26:38 UTC, Walter Bright wrote:
 On 11/13/2022 7:15 AM, Hipreme wrote:
 My project seems to be crashing DMD sometimes on its 
 compilation. Would be nice to have a DMD debug build for 
 distribution, it attempts to call JIT Debugger for dmd.exe 
 right before it starts linking. I'm using Windows 10.
If you can reduce the test case that causes dmd to crash, we can fix it. Please report it to bugzilla!
Sorry, I have no faint idea on how I could reduce a project that big, I actually believe I'm hitting an edge case, the same way I was hitting before the package.d, which I just circumvent by changing the file name.
Nov 13 2022
prev sibling parent Hipreme <msnmancini hotmail.com> writes:
On Sunday, 13 November 2022 at 18:26:38 UTC, Walter Bright wrote:
 On 11/13/2022 7:15 AM, Hipreme wrote:
 My project seems to be crashing DMD sometimes on its 
 compilation. Would be nice to have a DMD debug build for 
 distribution, it attempts to call JIT Debugger for dmd.exe 
 right before it starts linking. I'm using Windows 10.
If you can reduce the test case that causes dmd to crash, we can fix it. Please report it to bugzilla!
I found out what it was: -preview=dip1021 is making my project crash: https://issues.dlang.org/show_bug.cgi?id=23484 Just opened the issue
Nov 14 2022