- untar binutils-2.15.tar.bz2 gcc-3.4.3.tar.bz2 newlib-1.13.0.tar.gz - build binutils mkdir build cd build ../binutils-2.15/configure --target=arm-elf --prefix=`pwd`/../install make make install cd .. - add the fresh binutils to the FRONT of the path export PATH=`pwd`/install/bin:$PATH - Copy libgloss & newlib into GCC source directory - create eCos header files ecosconfig new eb40a default ecosconfig add posix ecosconfig add fileio set: cdl_option CYGPKG_LIBC_I18N_NEWLIB_CTYPE { user_value 1 }; ecosconfig tree make headers - TRICK!!!! WHY??? NB! Copy the eCos header files into the GCC build directory. NB! mkdir -p arm-elf/newlib/targ-include # timestamp to avoid newlib overwriting our files mkdir -p arm-elf/newlib/stmp-targ-include cp -r ../ecos/install/include/* arm-elf/newlib/targ-include/ mkdir -p arm-elf/thumb/newlib/targ-include # timestamp to avoid newlib overwriting our files mkdir -p arm-elf/thumb/newlib/stmp-targ-include cp -r ../ecos/install/include/* arm-elf/thumb/newlib/targ-include/ - Configure GCC: ../gcc-3.4.3/configure --target=arm-elf --prefix=`pwd`/../install --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --enable-threads=posix --without-headers --enable-libstdcxx-allocator=malloc --enable-cstdio=stdio --disable-shared FIX? remove the "--without-headers" option? - Kludges to get compilation going again when it fails: - compilation fails a couple of times because the eCos header files have been deleted. Copy the eCos header files again, and type make - When compilation fails, modify arm-elf/thumb/libstdc++-v3/config.h & arm-elf/libstdc++-v3/config.h #undef HAVE_STRTOF - _NEWLIB_VERSION have not been defined by the eCos include files and hence testsuite_hooks.cc fails. Modify testsuite_hooks.cc and continue.