Output of gcc -v: Reading specs from /usr/data2/local/gcc-3.3.1/lib/gcc-lib/mips-sgi-irix6.5/3.3.1/specs Configured with: ../gcc-3.3.1.src/configure --prefix=/usr/data2/local/gcc-3.3.1 Thread model: single gcc version 3.3.1 Compiler error generated while compiling with: gmake bootstrap: While compiling : /libf2c/libI77/backspace.c from file fio.h:2 from file stdio.h:18 from file internal/stdio_core.h:319 undefined type "__gnuc___gnuc_va_list" Work around was to edit internal/stdio_core.h. (1) #included stdarg.h which defined : __gnuc_va_list (2) changed line 319 from : __SGI_LIBC_NAMESPACE_QUALIFIER __gnuc___gnuc_va_list _ap; to: __SGI_LIBC_NAMESPACE_QUALIFIER __gnuc_va_list _ap; then gmake bootstrap completed successfully.
Fixed on the mainline by: * fixinc/inclhack.def (stdio_va_list): Removed _ap fix. (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21 introduced some multi-line prototypes. * fixinc/fixincl.x: Regenerate.
Reopen to allow fixing for 3.3.2, too.
Could you please check that this patch http://gcc.gnu.org/ml/gcc-patches/2003-10/msg00424.html fixes the bug for you. Please note that you need to regenerate gcc/fixinc/fixincl.x for it to have effect. I'm currently running a bootstrap of the current 3.3 branch with this fix include. It may be possible to get the fix into 3.3.2 if it can be confirmed to work and is sufficiently low-risk.
Fixed for 3.3.2, too: http://gcc.gnu.org/ml/gcc-patches/2003-10/msg00712.html
*** Bug 12580 has been marked as a duplicate of this bug. ***
I have the opposite experience. With our irix 6.5 system, gcc 3.3.1 built fine, but 3.3.2 fails to build on this file. /tmp/smr/build/gcc/xgcc -B/tmp/smr/build/gcc/ -B/usr/local/mips-sgi-irix6.5/bin/ -B/usr/local/mips-sgi-irix6.5/lib/ -isystem /usr/local/mips-sgi-irix6.5/include -c -DSkip_f2c_Undefs -DAllow_TYQUAD -I. -I../../../../gcc-3.3.2/libf2c/libI77 -I.. -I../../../../gcc-3.3.2/libf2c/libI77/.. -DHAVE_CONFIG_H -W -Wall -O2 -O ../../../../gcc-3.3.2/libf2c/libI77/backspace.c -DPIC -o .libs/backspace.o In file included from /tmp/smr/build/gcc/include/stdio.h:18, from ../../../../gcc-3.3.2/libf2c/libI77/fio.h:2, from ../../../../gcc-3.3.2/libf2c/libI77/backspace.c:4: /tmp/smr/build/gcc/include/internal/stdio_core.h: In function `snprintf': /tmp/smr/build/gcc/include/internal/stdio_core.h:310: error: `va_list' undeclared (first use in this function) /tmp/smr/build/gcc/include/internal/stdio_core.h:310: error: (Each undeclared identifier is reported only once /tmp/smr/build/gcc/include/internal/stdio_core.h:310: error: for each function it appears in.) /tmp/smr/build/gcc/include/internal/stdio_core.h:310: error: parse error before "_ap" /tmp/smr/build/gcc/include/internal/stdio_core.h:313: error: `_ap' undeclared (first use in this function) make[3]: *** [backspace.lo] Error 1