http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56311
Bug #: 56311 Summary: gcc/include-fixed/stdio.h: In function ‘_func’: gcc/include-fixed/stdio.h:135:3: error: expected declaration specifiers before ‘__extension__’ Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: devuran...@gmx.net Created attachment 29445 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29445 stdio.h I am building a crosscompiler for x86_64-pc-mingw64 on Gentoo/Linux and get the following error during build: In file included from /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/gcc-4.7.2/libgcc/../gcc/tsystem.h:88:0, from /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/gcc-4.7.2/libgcc/libgcc2.c:29: /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h: In function ‘_func’: /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:135:3: error: expected declaration specifiers before ‘__extension__’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:173:15: error: storage class specified for parameter ‘__mingw_sscanf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:176:15: error: storage class specified for parameter ‘__mingw_vsscanf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:179:15: error: storage class specified for parameter ‘__mingw_scanf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:182:15: error: storage class specified for parameter ‘__mingw_vscanf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:185:15: error: storage class specified for parameter ‘__mingw_fscanf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:188:15: error: storage class specified for parameter ‘__mingw_vfscanf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:192:15: error: storage class specified for parameter ‘__mingw_vsnprintf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:196:15: error: storage class specified for parameter ‘__mingw_snprintf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:199:15: error: storage class specified for parameter ‘__mingw_printf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:202:15: error: storage class specified for parameter ‘__mingw_vprintf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:205:15: error: storage class specified for parameter ‘__mingw_fprintf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:208:15: error: storage class specified for parameter ‘__mingw_vfprintf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:211:15: error: storage class specified for parameter ‘__mingw_sprintf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:214:15: error: storage class specified for parameter ‘__mingw_vsprintf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:217:15: error: storage class specified for parameter ‘__mingw_asprintf’ /var/tmp/portage/cross-x86_64-pc-mingw64/gcc-4.7.2/work/build/./gcc/include-fixed/stdio.h:220:15: error: storage class specified for parameter ‘__mingw_vasprintf’ The code that seems to lead to this problem appears to be around line 96: #ifndef _STDIO_DEFINED #ifdef _WIN64 [...] _func() #else #ifdef _MSVCRT_ [...] #else [...] _func() #endif #endif #endif Apparently GCC somehow destroyed the file during its bootstrap process.