Open wilzbach opened 7 years ago
Comment author: Carlos Ballesteros Velasco <soywiz@gmail.com>
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
Attached file: program.7z (application/x-7z-compressed, 374970 bytes) Description: program.d in 7zip
Comment author: anonymous4 <dfj1esp02@sneakemail.com>
As a workaround, try microsoft linker with -m32mscoff compiler switch https://dlang.org/dmd-windows.html#switch-m32mscoff
dmd -gc -m32mscoff program.d
Note: the issue was created automatically migrated from https://issues.dlang.org
Original bug ID: BZ#16796 From: Carlos Ballesteros Velasco <soywiz@gmail.com> Reported version: D2