Following step-by-step instructions by Adam J. Kunen I was able to compile my own gnu arm tool-chain on Ubuntu Linux 12.10.

I used following packages:

  • binutils-2.23 
  • gcc-4.8.1 (Adam also recommends downloading packages gcc-core and g++ but I skipped those)
  • gdb-7.6 
  • newlib-2.0.0 
The compilation of gcc-4.8.1 initially failed with the "Link tests are not allowed after GCC_NO_EXECUTABLES" message so I added the flag --with-system-zlib like this

../../src/gcc-4.8.1/configure --target=arm-none-eabi --prefix=$MYTOOLS --enable-interwork --enable-multilib --enable-languages="c,c++" --with-newlib --with-headers=../../src/newlib-2.0.0/newlib/libc/include --with-system-zlib

UPDATE: Unfortunately this fix has some issues. It will not build libgcc. Seeking for a better solution.

3 comment(s) :

I have the same problem here. Would be nice to know how to fix it.

6:42 AM  

Same problem here using those versions, despite using the newer instructions from the same author at:

http://imvoid.wordpress.com/2013/05/01/building-the-gnu-arm-toolchain-for-bare-metal/

So far no solution found.

12:43 PM  

Thanks foor a great read

3:24 AM  

Newer Post Older Post Home

Blogger Syntax Highliter