Hi I'm trying to cross-compile hc12 under Linux (ubuntu 9.10) but it fails with segmentation fault on the first file in compiled Newlib. What I have tried: GCC4.4.2 : Se FAIL1 and FAIL2: GCC3.3.6 : I get syntax errors in binutils, probably because I have a to new host compiler (4.4.1). I could compile my own 3.x GCC and see if that helps, but I would like a 4.x target GCC. The latest successful build I have seen of hc12 is 3.3.6. I'm starting to think that no-one have actually tried building a 4.x for hc12 since I get ICEs all over the place. Any Ideas or information about this? Thanks /Marten uname -a Linux 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux Config: configured with: ../gcc-4.4.2/configure --target=m6812-elf --prefix=/opt/m6812-elf --enable-languages=c --with-local-prefix=/opt/m6812-elf/m6812-elf --without-headers --with-newlib -disable-multilib --with-gmp=/opt/local --with-mpfr-include=/opt/local/include --with-mpfr-lib=/opt/local/lib --with-libiconv-prefix=/usr/ --with-libiconv-prefix=/usr/ FAIL1: m6812-elf-gcc -B/home/XX/projects/xgcc/build-newlib/m6812-elf/newlib/ -isystem /home/XX/projects/xgcc/build-newlib/m6812-elf/newlib/targ-include -isystem /home/XX/projects/xgcc/newlib-1.17.0/newlib/libc/include -B/home/XX/projects/xgcc/build-newlib/m6812-elf/libgloss/m68hc11 -L/home/XX/projects/xgcc/build-newlib/m6812-elf/libgloss/libnosys -L/home/XX/projects/xgcc/newlib-1.17.0/libgloss/m68hc11 -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.17.0\" -DPACKAGE_STRING=\"newlib\ 1.17.0\" -DPACKAGE_BUGREPORT=\"\" -I. -I../../../../../newlib-1.17.0/newlib/libc/argz -DPREFER_SIZE_OVER_SPEED -Os -mrelax -DNO_EXEC -DABORT_PROVIDED -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES -fno-builtin -g -O2 -c -o lib_a-argz_add.o `test -f 'argz_add.c' || echo '../../../../../newlib-1.17.0/newlib/libc/argz/'`argz_add.c ../../../../../newlib-1.17.0/newlib/libc/argz/argz_add.c: In function ‘argz_add’: ../../../../../newlib-1.17.0/newlib/libc/argz/argz_add.c:33: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[5]: *** [lib_a-argz_add.o] Error 1 make[5]: Leaving directory `/home/XX/projects/xgcc/build-newlib/m6812-elf/newlib/libc/argz' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/XX/projects/xgcc/build-newlib/m6812-elf/newlib/libc' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/XX/projects/xgcc/build-newlib/m6812-elf/newlib' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/XX/projects/xgcc/build-newlib/m6812-elf/newlib' make[1]: *** [all-target-newlib] Error 2 make[1]: Leaving directory `/home/XX/projects/xgcc/build-newlib' FAIL2:I just for the kicks of it tried with -O0 instead( it fails after a few files, but not the first) m6812-elf-gcc -B/home/XX/projects/xgcc/build-newlib/m6812-elf/newlib/ -isystem /home/XX/projects/xgcc/build-newlib/m6812-elf/newlib/targ-include -isystem /home/XX/projects/xgcc/newlib-1.17.0/newlib/libc/include -B/home/XX/projects/xgcc/build-newlib/m6812-elf/libgloss/m68hc11 -L/home/XX/projects/xgcc/build-newlib/m6812-elf/libgloss/libnosys -L/home/XX/projects/xgcc/newlib-1.17.0/libgloss/m68hc11 -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.17.0\" -DPACKAGE_STRING=\"newlib\ 1.17.0\" -DPACKAGE_BUGREPORT=\"\" -I. -I../../../../../newlib-1.17.0/newlib/libc/stdlib -DPREFER_SIZE_OVER_SPEED -Os -mrelax -DNO_EXEC -DABORT_PROVIDED -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES -fno-builtin -g -O0 -c -o lib_a-__adjust.o `test -f '__adjust.c' || echo '../../../../../newlib-1.17.0/newlib/libc/stdlib/'`__adjust.c ../../../../../newlib-1.17.0/newlib/libc/stdlib/__adjust.c: In function ‘__adjust’: ../../../../../newlib-1.17.0/newlib/libc/stdlib/__adjust.c:44: internal compiler error: in init_move_cost, at reginfo.c:270