gdc 0.20 svn branch on mingw/gcc4.0.3 (win32) segfaults
David Friedman
dvdfrdmn at users.ess-eff.net
Wed Dec 6 00:37:39 PST 2006
Downs wrote:
> Attempting to build the current rev48 gdc 0.20 branch on mingw/gcc4.0.3;
> the resulting gdc.exe is incapable of compiling even the most basic test
> files; it crashes on configure with a sigsegv in actest.d:0.
> Somewhat related question; is it possible to compile gcc so that it does
> not catch segment violations internally? This "feature" makes it
> impossible for me to get stack traces of the crash in gdb (no stackdumps
> are produced either).
> Alternatively, any idea what I could do to narrow the problem area down?
> Thanks for ideas; greetings.
This problem has been fixed in subversion rev.50. MinGW uses msvcrt
which does not have a C99-compatible printf. Thus, all of the new
'%z..' and '%j...' formats are ignored. Something like printf("%zu %s",
42, "M$") crashes.
Re: gdb. It should catch segfaults. Were you debugging gdc.exe? The
actual compiler is cc1d.exe.
David
More information about the D.gnu
mailing list