segmentation fault when running void main() {}

berni someone at something.org
Tue Sep 17 18:03:44 UTC 2019


I'm not sure, if this is the right place to ask, but I couldn't 
find a better one either.

I'm trying to install D on my old 32-bit machine (debian stable). 
First I tried to install a precompiled version and now I followed 
[1]. In both cases, I always get a segmentation fault when I try 
to run a compiled program.

With make -f posix.mak AUTO_BOOTSTRAP=1 I got:

> ...
> ../generated/build 
> HOST_DMD="../generated/host_dmd-2.079.1/dmd2/linux/bin32/dmd" 
> OS=linux BUILD=release MODEL=32 AUTO_BOOTSTRAP="1" 
> --called-from-make ../generated/linux/release/32/lexer.a
> Segmentation fault
> ...

Any ideas, what's missing?

[1] https://wiki.dlang.org/Building_under_Posix


More information about the Digitalmars-d-learn mailing list