This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Crash on execution of "va_start()"
- From: "Doug Broadwell" <dougb at value dot net>
- To: "Newlib Mail List" <newlib at sources dot redhat dot com>
- Cc: "William A Gatliff" <bgat at billgatliff dot com>
- Date: Thu, 3 Oct 2002 13:32:07 -0700
- Subject: Crash on execution of "va_start()"
- Organization: DBA Associates
- Reply-to: "Doug Broadwell" <dougb at value dot net>
Hi,
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