From mboxrd@z Thu Jan 1 00:00:00 1970 From: s_fuhrm@ira.uka.de To: gcc-gnats@gcc.gnu.org Subject: bootstrap/3293: error in gcc/include/stdio.h parsing?? Date: Wed, 20 Jun 2001 08:16:00 -0000 Message-id: <20010620151043.4047.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00829.html List-Id: >Number: 3293 >Category: bootstrap >Synopsis: error in gcc/include/stdio.h parsing?? >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Jun 20 08:16:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Stephan Fuhrmann >Release: gcc-3.0 ?? >Organization: >Environment: Suse Linux 6.4, gcc 2.95.3 (same with 2.95.2), glibc 2.2.2, binutils 2.9.5 (same with 2.11) >Description: Build problem: After a normal configure in a separate directory and "make bootstrap" gcc 3.0 stops with ./xgcc -B./ -B/opt/gcc3/i586-pc-linux-gnu/bin/ -isystem /opt/gcc3/i586-pc-linux-gnu/include -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -g0 \ -finhibit-size-directive -fno-inline-functions \ -fno-exceptions -fno-omit-frame-pointer \ -c ../../gcc/crtstuff.c -DCRT_BEGIN -o crtbegin.o In file included from ../../gcc/tsystem.h:63, from ../../gcc/crtstuff.c:60: include/stdio.h:187: parse error before "__attribute_malloc__" make[2]: *** [crtbegin.o] Error 1 make[2]: Leaving directory `/home/fury/tt/gcc-3.0/objdir/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/home/fury/tt/gcc-3.0/objdir/gcc' Problem are these lines in include file "gcc/include/stdio.h": extern char *tempnam (__const char *__dir, __const char *__pfx) __THROW __attribute_malloc__; if I delete the blank line and write this as one single line everything works perfectly!!!! >How-To-Repeat: configure make bootstrap ;-)) don't know on which tool this depends >Fix: Substitute extern char *tempnam (__const char *__dir, __const char *__pfx) __THROW __attribute_malloc__; with extern char *tempnam (__const char *__dir, __const char *__pfx) __THROW __attribute_malloc__; (delete the newline) >Release-Note: >Audit-Trail: >Unformatted: