I am looking to create my own GCC assembly for an ARM system and am having problems. Build machine i686-linux. Every tutorial that I see tells me how to set up the actual set for cross-compiling (which I already did with crosstools-ng). However, I do not see anything related to compiling my own ARM GCC. The configure line I used below, I installed sysroot with only headers. I also compiled and installed GMP and MPFR.
../../gcc-4.3.5/configure βhost=arm-unknown-linux-gnueabi βbuild=i686-build_pc-linux-gnu βtarget=arm-unknown-linux-gnueabi βprefix=/home/vm/gcc-native/sysroot βwith-sysroot=/home/vm/gcc-native/sysroot βenable-shared βenable-threads βdisable-libmudflap βdisable-libssp βdisable-libgomp βdisable-libstdcxx-pch βwith-gnu-as βwith-gnu-ld βenable-languages=c,c++ βenable-symvers=gnu βenable-__cxa_atexit βdisable-nls βdisable-multilib βwith-gmp=/home/vm/gcc-native/sysroot/ βwith-mpfr=/home/vm/gcc-native/sysroot/
GCC will build for a while, but then die with this:
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile.
I'm not sure how this will work even on my system, since I am building on i686-linux, and the target / host is arm-linux. My thought right now is to find the ltib distribution and look at the spec file for GCC and try to follow all the steps. GCC, which the libre supplied for my board, cannot compile on my system due to conflicts with the std namespace.
Any information / links would be appreciated!
source share