I have used AVRLIB with avr-gcc previously,I have recently installed TinyOS (An Event based Operating System) on my Ubuntu 10.10 after which I am unable to use AVRLIB. I get the following error when I go to "avrlib/examples/"
and type make all
make -C a2d all
make: Entering directory `/home/sai/Documents/My_Work/AVRLIB/avrlib/avrlib/examples/a2d'
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O ihex a2dtest.elf a2dtest.eep
avr-objcopy: there are no sections to be copied!
avr-objcopy: --change-section-lma .eeprom=0x00000000 never used
make: *** [a2dtest.eep] Error 1
make: Leaving directory `/home/sai/Documents/My_Work/AVRLIB/avrlib/avrlib/examples/a2d'
make: *** [a2d] Error 2
I have added AVRLIB in my environmental variables list. I also searched the forum and got a relative post regarding this and I have done that also. This is the link.
The tools I am using are
GNU objcopy 2.17 + coff-avr-patch (20050630)
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
Using built-in specs.
Configured with: ./configure --prefix=/usr --disable-libssp --disable-nls --enable-languages=c,c++ --infodir=/usr/share/info --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --target=avr --with-ld=/usr/bin/avr-ld --with-as=/usr/bin/avr-as
Thread model: single
gcc version 4.1.2
Any other suggestions?