Crash on execution of "va_start()"

Doug Broadwell
Thu Oct 3 13:35:00 GMT 2002


Making cross newlib for m68k-unknown-coff on i686-pc-linux-gnu.  My "Hello
World!" program is:

main() {
    iprintf("Hello World!\n");

The call to iprintf() dies on the very first line:  "va_start(ap, fmt);".
It appears that _HAVE_STDC exists so iprintf.c includes stdargs.h instead of
varargs.h.  In looking at stdargs.h, it appears there is no "va-m68k.h"
file, is it not necessary?  Any suggestions on how to debug?

Thanks, Doug Broadwell

More information about the Newlib mailing list