Christer Solskogen <christer.solskogen@xxxxxxxxx> writes: > While compiling a stage2 cross-compiler (with kernel headers, and > eglibc headers, and some some libs(crt1.o crti.o crtn.o and libc.so) I > get this: > > /private/chsols/obj/gcc.cross.mips-linux-gnu.stage2/./gcc/xgcc > -B/private/chsols/obj/gcc.cross.mips-linux-gnu.stage2/./gcc/ > -B/private/chsols/cross-tools/mips-linux-gnu/bin/ > -B/private/chsols/cross-tools/mips-linux-gnu/lib/ -isystem > /private/chsols/cross-tools/mips-linux-gnu/include -isystem > /private/chsols/cross-tools/mips-linux-gnu/sys-include -O2 -pipe > -march=loongson3a -minterlink-mips16 -O2 -O2 -pipe -march=loongson3a > -minterlink-mips16 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall > -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes > -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 > -fbuilding-libgcc -fno-stack-protector -fPIC -I. -I. -I../.././gcc > -I/private/chsols/src/gcc/libgcc > -I/private/chsols/src/gcc/libgcc/. -I/private/chsols/src/gcc/libgcc/../gcc > -I/private/chsols/src/gcc/libgcc/../include -DHAVE_CC_TLS -o > unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions > -c > /private/chsols/src/gcc/libgcc/unwind-dw2.c -fvisibility=hidden > -DHIDE_EXPORTS > In file included from /private/chsols/src/gcc/libgcc/unwind-dw2.c:376:0: > ./md-unwind-support.h: In function 'mips_fallback_frame_state': > ./md-unwind-support.h:78:17: error: field 'info' has incomplete type > make[2]: *** [unwind-dw2.o] Error 1 > make[2]: Leaving directory > /var/tmp/chsols/obj/gcc.cross.mips-linux-gnu.stage2/mips-linux-gnu/libgcc' > make[1]: *** [all-target-libgcc] Error 2 > make[1]: Leaving directory > /var/tmp/chsols/obj/gcc.cross.mips-linux-gnu.stage2' > make: *** [all] Error 2 > > > Could this have something to do with > http://www.mail-archive.com/gcc-patches@xxxxxxxxxxx/msg28610.html? Certainly looks like it. I would guess that applying that patch will fix your problem. Ian