Code not compiling binutils(cvs), gcc 3.4.4, avr-libc-1.2.5
Moderators: adafruit_support_bill, adafruit

Code not compiling binutils(cvs), gcc 3.4.4, avr-libc-1.2.5

by sebbie on Sun Aug 07, 2005 4:25 pm

Hey,

I'm having a problem getting the sample code to compile (unchanged). Here is the error I'm getting

Code: Select all | TOGGLE FULL SIZE
minipov.c:0: error: MCU `attiny2313' supported for assembler only
In file included from minipov.c:1:


And then a bunch of errors about things not being defined because the device type is not defined.

I'm currently using binutils checked out from cvs (as of today 8/7/5), gcc-3.4.4, and avr-libc-1.2.5 .

gcc 3.4.4 is the latest "release" version of gcc (I think). Does anyone else have this problem? I'm compiling on FreeBSD 5.2.1-RELEASE-p8.
sebbie
 
Posts: 3
Joined: Sun Aug 07, 2005 4:21 pm

by sebbie on Sun Aug 07, 2005 4:54 pm

Also just tried binutils 2.16, still the same error.
sebbie
 
Posts: 3
Joined: Sun Aug 07, 2005 4:21 pm

by adafruit on Sun Aug 07, 2005 5:55 pm

you dont have the latest version because its supported in the latest version. check what winavr uses and compile that...
User avatar
adafruit
 
Posts: 11717
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by sebbie on Sun Aug 07, 2005 6:13 pm

strange. WinAVR uses older versions than what I'm using.
WinAVR uses:
binutils-2.15
gcc-3.4.3
avr-libc-1.2.3
sebbie
 
Posts: 3
Joined: Sun Aug 07, 2005 4:21 pm

by adafruit on Sun Aug 07, 2005 7:24 pm

sorry i dont know :(
the very latest winavr works (feb 2005 release or something)
User avatar
adafruit
 
Posts: 11717
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by error1 on Mon Aug 08, 2005 4:39 pm

Worked just fine here too when i tried it a few days ago, i installed it on a nearly clean install of windows though. :)
error1
 
Posts: 20
Joined: Thu Aug 04, 2005 1:34 pm
Location: Norway

by Guest on Mon Aug 08, 2005 5:01 pm

I was able to compile it on winavr no problem. I was just trying to get it working under freebsd so I could do dev work while on the bus in the morning (and my laptop is freebsd)
Guest
 

by remmelt on Wed Aug 10, 2005 7:27 am

Same here. Under Ubuntu there is no include file for the tiny2313, although it is recognised. The compiler knows about the chip, but does not have the proper files to do anything with it... Too bad! I guess we need to wait for an update. Or write one.

In the meantime I have programmed mine in Windows, which works fine. I'd love to go Linux-only though.
remmelt
 

by Guest on Thu Aug 11, 2005 9:05 am

Winavr uses a Patched Binutil , that reckognizes the new MCU's

/Bingo
Guest
 

by Guest on Thu Aug 11, 2005 9:26 am

Ohh btw

This might come in handy (though i haven't tried it)

Building the AVR Toolchain under Linux
A. J. Erasmus made this homepage
http://home.telkomsa.net/antera/
With a "Recipe" for building a "WinAVR" compatible toolchain under linux (Untested by me)
Do start with the Readme


There is also the new avr-libc 1.25 from savannah

Well guyzz & "Lady .. Ladies"

Have a look at www.avrfreaks.net in the AVR-GCC forum

/Bingo
Guest