[Issue 20562] [dmd] Memory allocation failed (ERROR: This is a compiler bug)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 6 09:18:31 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=20562

--- Comment #12 from JR <zorael at gmail.com> ---
(In reply to Mathias LANG from comment #11)
> I'm tempted to close this, as `OutOfMemoryError` cannot be reliably bisected
> and there's no "action point" here.
> 
> Don't get me wrong, the compiler IS using too much memory, and it IS
> absolutely a problem (I run into it every week at least).
> 
> But it's a structural problem that needs to be addressed, and for the time
> being the best way to deal with it is to throw `-lowmem` in your dmd.conf.
> 
> How does that sound ?

Yes, I can solve it for myself that way, but it becomes somewhat of a barrier
of entry to ask users to please change their global settings to be able to
compile my project.

Is https://issues.dlang.org/show_bug.cgi?id=20699 very difficult to solve? I
already set up build configurations like `application-lowmem` for the purpose,
they just effectively don't do anything yet.

Can a dmd.conf in the working directory append to DFLAGS from the system-wide
/etc/dmd.conf? Instead of overriding?

> DFLAGS+="-lowmem"

--


More information about the Digitalmars-d-bugs mailing list