On 11/03/11 14:12, Rainer Orth wrote: > Bernd Schmidt <ber...@codesourcery.com> writes: > >> c6x-elf cross builds are also broken with failures in libgcc/. Rainer, >> can you investigate? > > Can you provide details? It probably would take quite some time for me > to set up a full cross environment, and perhaps I can spot what's amiss > without doing so.
A cross environment for -elf targets typicaly just requires building up binutils/newlib, and that should be rather quick to set up. A set of patches of this magnitude really ought to have had more testing (the CFT was useless as the patches bitrotted almost immediately and didn't apply anymore), and not everything should have been applied at once. Anyhow, the errors: In file included from ../../../../baseline-trunk/libgcc/unwind-dw2.c:39:0: ../../../../baseline-trunk/libgcc/unwind-dw2.h:77:3: error: unknown type name ���_Unwind_Personality_Fn��� ../../../../baseline-trunk/libgcc/unwind-dw2.c:196:1: error: redefinition of ���_Unwind_GetGR��� In file included from ./unwind.h:31:0, from ../../../../baseline-trunk/libgcc/unwind-dw2.c:32: /local/src/egcs/bc6x-baseline/./gcc/include/unwind-arm-common.h:221:3: note: previous definition of ���_Unwind_GetGR��� was here ../../../../baseline-trunk/libgcc/unwind-dw2.c:241:1: error: redefinition of ���_Unwind_SetGR��� In file included from ./unwind.h:31:0, from ../../../../baseline-trunk/libgcc/unwind-dw2.c:32: /local/src/egcs/bc6x-baseline/./gcc/include/unwind-arm-common.h:232:3: note: previous definition of ���_Unwind_SetGR��� was here ../../../../baseline-trunk/libgcc/unwind-dw2.c:316:1: error: expected declaration specifiers or ���...��� before numeric constant ../../../../baseline-trunk/libgcc/unwind-dw2.c:325:1: error: expected identifier or ���(��� before ���int��� ../../../../baseline-trunk/libgcc/unwind-dw2.c:334:1: error: expected declaration specifiers or ���...��� before numeric constant ../../../../baseline-trunk/libgcc/unwind-dw2.c:352:1: warning: no previous prototype for ���_Unwind_FindEnclosingFunction��� [-Wmissing-prototypes] ../../../../baseline-trunk/libgcc/unwind-dw2.c: In function ���extract_cie_info���: ../../../../baseline-trunk/libgcc/unwind-dw2.c:460:23: error: ���_Unwind_Personality_Fn��� undeclared (first use in this function) ../../../../baseline-trunk/libgcc/unwind-dw2.c:460:23: note: each undeclared identifier is reported only once for each function it appears in ../../../../baseline-trunk/libgcc/unwind-dw2.c:460:47: error: expected ���;��� before ���personality��� ../../../../baseline-trunk/libgcc/unwind-dw2.c: In function ���uw_frame_state_for���: ../../../../baseline-trunk/libgcc/unwind-dw2.c:1199:12: error: ���_URC_FATAL_PHASE1_ERROR��� undeclared (first use in this function) In file included from ../../../../baseline-trunk/libgcc/unwind-dw2.c:1632:0: ../../../../baseline-trunk/libgcc/unwind.inc: In function ���_Unwind_RaiseException_Phase2���: ../../../../baseline-trunk/libgcc/unwind.inc:51:60: error: ���struct _Unwind_Control_Block��� has no member named ���private_2��� ../../../../baseline-trunk/libgcc/unwind.inc:57:9: error: ���_URC_FATAL_PHASE2_ERROR��� undeclared (first use in this function) ../../../../baseline-trunk/libgcc/unwind.inc:62:12: error: invalid type argument of unary ���*��� (have ���int���) ../../../../baseline-trunk/libgcc/unwind.inc: At top level: ../../../../baseline-trunk/libgcc/unwind.inc:82:1: error: expected ���=���, ���,���, ���;���, ���asm��� or ���__attribute__��� before ���_Unwind_RaiseException��� ../../../../baseline-trunk/libgcc/unwind.inc: In function ���_Unwind_ForcedUnwind_Phase2���: ../../../../baseline-trunk/libgcc/unwind.inc:145:61: error: ���struct _Unwind_Control_Block��� has no member named ���private_1��� ../../../../baseline-trunk/libgcc/unwind.inc:146:51: error: ���struct _Unwind_Control_Block��� has no member named ���private_2��� ../../../../baseline-trunk/libgcc/unwind.inc:157:9: error: ���_URC_FATAL_PHASE2_ERROR��� undeclared (first use in this function) ../../../../baseline-trunk/libgcc/unwind.inc:175:12: error: invalid type argument of unary ���*��� (have ���int���) ../../../../baseline-trunk/libgcc/unwind.inc: At top level: ../../../../baseline-trunk/libgcc/unwind.inc:195:1: error: expected ���=���, ���,���, ���;���, ���asm��� or ���__attribute__��� before ���_Unwind_ForcedUnwind��� ../../../../baseline-trunk/libgcc/unwind.inc:219:1: error: expected ���=���, ���,���, ���;���, ���asm��� or ���__attribute__��� before ���_Unwind_Resume��� ../../../../baseline-trunk/libgcc/unwind.inc:244:1: error: expected ���=���, ���,���, ���;���, ���asm��� or ���__attribute__��� before ���_Unwind_Resume_or_Rethrow��� ../../../../baseline-trunk/libgcc/unwind.inc:278:1: error: expected ���=���, ���,���, ���;���, ���asm��� or ���__attribute__��� before ���_Unwind_Backtrace��� ../../../../baseline-trunk/libgcc/unwind-dw2.c:1487:1: warning: ���uw_init_context_1��� defined but not used [-Wunused-function] ../../../../baseline-trunk/libgcc/unwind-dw2.c:1564:1: warning: ���uw_install_context_1��� defined but not used [-Wunused-function] In file included from ../../../../baseline-trunk/libgcc/unwind-dw2.c:1632:0: ../../../../baseline-trunk/libgcc/unwind.inc:38:1: warning: ���_Unwind_RaiseException_Phase2��� defined but not used [-Wunused-function] ../../../../baseline-trunk/libgcc/unwind.inc:142:1: warning: ���_Unwind_ForcedUnwind_Phase2��� defined but not used [-Wunused-function] make[2]: *** [unwind-dw2.o] Error 1 Bernd