View previous topic :: View next topic |
Author |
Message |
pinkfoot
Joined: 07 Apr 2008 Posts: 11
|
Posted: Wed Apr 16, 2008 1:09 pm Post subject: How to build avr-gcc on linux |
|
|
Hi,
My Turbo SIM has arrived and I now need to build avr-gcc so I can get the examples onto my SIM.
Alas, crossdev --target avr on gentoo fails with 'Error: illegal opcode movw for mcu avr3'. Apparently this is due to a bug in binutils.
Does anyone have advise on how to build the correct toolchain that will compile the examples?
Desperately yours |
|
Back to top |
|
 |
pz Guest
|
Posted: Thu Apr 17, 2008 11:02 am Post subject: |
|
|
What gcc version do you use? Look into our download section, there is gcc-3.3.2 and also patched binutils-2.14. Start with binutils as described in devel documentation.
On some newer distributions you may have problem compiling 3.3.2 with some obscure error when compiling some *rtl* file. If that happens download 3.3.4 and copy 3.3.4/include/obstack.h include/obstack.h to 3.3.2/
We use 3.3.2 to be the most stable and proven. |
|
Back to top |
|
 |
pinkfoot
Joined: 07 Apr 2008 Posts: 11
|
Posted: Thu Apr 17, 2008 11:38 am Post subject: |
|
|
Thanks,
I patched my gentoo gcc 4.x with the AVI movw patch and compiled binutils from your website.
I can now compile the examples. Now to see if we can get it onto my TurboSIM! |
|
Back to top |
|
 |
|