== Quote from Iain Buclaw (ibuc...@ubuntu.com)'s article > There's a patch in Debian which addresses this. Last time I tried (a nice > fella > allowed me to work via ssh'ing onto a sheevaplug) it mostly works, but you'll > need > to use the gcstub sources, as the normal gc don't work (2.035~ish time this > was I > think, so things may have improved since). > Regards
First one fixes your linker errors. I'm not sure whether or not the second is needed for GCC-4.4 (it was for GCC-4.3). --- a/src/gcc/config/arm/arm-c.c 2007-11-05 17:13:46.000000000 +0000 +++ b/src/gcc/config/arm/arm-c.c 2010-08-29 11:42:36.503460693 +0100 @@ -15,7 +15,7 @@ { /* Tag_ABI_PCS_wchar_t. */ asm_fprintf (asm_out_file, "\t.eabi_attribute 18, %d\n", - (int)(TYPE_PRECISION (wchar_type_node) / BITS_PER_UNIT)); + (int)(WCHAR_TYPE_SIZE / BITS_PER_UNIT)); } --- a/src/gcc/d/d-gcc-includes.h 2010-08-19 12:30:20.000000000 +0100 +++ b/src/gcc/d/d-gcc-includes.h 2010-08-23 10:44:15.709788361 +0100 @@ -32,7 +32,11 @@ // hack needed to prevent inclusion of the generated insn-flags.h // which defines some inline functions that use C prototypes.... +// because some archs depend on this header for EH routines, +// only do this if EH_RETURN_HANDLER_RTX is already defined. +#ifdef EH_RETURN_HANDLER_RTX #define GCC_INSN_FLAGS_H +#endif // Conflicting definitions between stdio.h and libiberty.h over the throw() #define HAVE_DECL_ASPRINTF 1