Created attachment 1623
program.d in 7zip
I have create a target generating D for my project jtransc: https://github.com/jtransc/jtransc
So it allows to convert Java/Kotlin/Scala AOT into D and generate native executables.
In complex programs, the generated D file is pretty big. And in order to get comprehensive stacktraces in debug builds I have to add -gc. The big test suite including most of the java standard library generates a ~6MB d file. Without the -gc switch DMD works just fine and generates the executable.
dmd --version
DMD32 D Compiler v2.072.0
dmd -gc program.d
Error: linker exited with status 482878712
Comment #2 by pro.mathias.lang — 2020-06-05T16:42:51Z
Closing, as:
- If there's an issue, it's an OPTLINK issue, not a tools one;
- The referenced project has been archived so following up will not happen;
- `-gc` is gone now, one should use `-g`;
- A workaround (using mscoff) exists;