32-bit DMD compiled programs prints "segmentation fault"
Seb
seb at wilzba.ch
Fri Nov 1 23:03:23 UTC 2019
On Friday, 1 November 2019 at 21:16:23 UTC, Gilmar JĂșnior wrote:
> Hello, D programs compiled with 32-bit DMD are not working. I
> compiled with dmd and also tested rdmd using version 2.086.0-0
> for both 32-bit and the 64-bit with -m32 directive, and it
> didn't work. I also tested the nightly version I downloaded
> today and the execution continues to print "segmentation fault
> (core dumped)". The same error does NOT occur when using LDC.
This unfortunately is a well-known issue:
https://issues.dlang.org/show_bug.cgi?id=19116
tl;dr: use LDC. It's better maintained, faster, has support for
tons of architectures etc.
Alternatively, you could also switch to ld.gold which you
probably want to do anyhow if you can (faster link times!) or
x86_64.
More information about the Digitalmars-d
mailing list