bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to build avr-gcc on linux

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
pinkfoot



Joined: 07 Apr 2008
Posts: 11

PostPosted: Wed Apr 16, 2008 1:09 pm    Post subject: How to build avr-gcc on linux Reply with quote

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
View user's profile Send private message
pz
Guest





PostPosted: Thu Apr 17, 2008 11:02 am    Post subject: Reply with quote

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

PostPosted: Thu Apr 17, 2008 11:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group