The fix to PR19333 uncovered a problem in the Debian (only?) shipped pthread.h file which breaks bootstrapping on this platform:
./xgcc -B./ -B/home/rguenth/x86_64/gcc4.0-230205/x86_64-unknown-linux-gnu/bin/ -isystem /home/rguenth/x86_64/gcc4.0-230205/x86_64-unknown-linux-gnu/include -isystem /home/rguenth/x86_64/gcc4.0-230205/x86_64-unknown-linux-gnu/sys-include -L/tmp/gcc-obj/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I/net/alwazn/home/rguenth/src/gcc/gcc4.0/gcc -I/net/alwazn/home/rguenth/src/gcc/gcc4.0/gcc/. -I/net/alwazn/home/rguenth/src/gcc/gcc4.0/gcc/../include -I/net/alwazn/home/rguenth/src/gcc/gcc4.0/gcc/../libcpp/include -fvisibility=hidden -DHIDE_EXPORTS -fexceptions -c /net/alwazn/home/rguenth/src/gcc/gcc4.0/gcc/unwind-dw2-fde-glibc.c -o libgcc/./unwind-dw2-fde-glibc.o In file included from /net/alwazn/home/rguenth/src/gcc/gcc4.0/gcc/gthr-posix.h:43, from ./gthr-default.h:1, from /net/alwazn/home/rguenth/src/gcc/gcc4.0/gcc/gthr.h:114, from /net/alwazn/home/rguenth/src/gcc/gcc4.0/gcc/unwind-dw2.c:42: /usr/include/pthread.h:655: error: array type has incomplete element type In file included from /net/alwazn/home/rguenth/src/gcc/gcc4.0/gcc/gthr-posix.h:43, from ./gthr-default.h:1, from /net/alwazn/home/rguenth/src/gcc/gcc4.0/gcc/gthr.h:114, from /net/alwazn/home/rguenth/src/gcc/gcc4.0/gcc/unwind-dw2-fde-glibc.c:50: /usr/include/pthread.h:655: error: array type has incomplete element type make[3]: *** [libgcc/./unwind-dw2-fde-glibc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [libgcc/./unwind-dw2.o] Error 1 where the code in pthread.h:655 is really invalid: /* Function used in the macros. */ struct __jmp_buf_tag; extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) __THROW; because __jmp_buf_tag is incomplete (and is defined in setjmp.h). -- Summary: Bootstrap failure due to lack of fixinclude of pthread problem Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20166