i'm trying to make arduino work from the command line on my fedora core 6 box. since there are no avr-gcc rpms available at the time of writing for fedora, i compiled them myself.
using the instructions from here: http://www.arduino.cc/playground/Learning/CommandLine i'm trying to compile a simple example code, but i'm getting errors:
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex foo.elf foo.eep
avr-objcopy: there are no sections to be copied!
avr-objcopy: --change-section-lma .eeprom=0x00000000 never used
make: [foo.eep] Error 1 (ignored)
avr-objdump gives the following output:
$ avr-objdump -h foo.elf
foo.elf: file format elf32-avr
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00001050 00000000 00000000 00000094 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000096 00800060 00001050 000010e4 2**0
CONTENTS, ALLOC, LOAD, DATA
2 .bss 0000009b 008000f6 008000f6 0000117a 2**0
ALLOC
3 .stab 00002280 00000000 00000000 0000117c 2**2
CONTENTS, READONLY, DEBUGGING
4 .stabstr 000016fd 00000000 00000000 000033fc 2**0
CONTENTS, READONLY, DEBUGGING
the versions of the software i'm using are the following: avr-binutils-2.17, avr-gcc-4.1.1, avr-gcc-g++-4.1.1, avr-libc-1.4.5.
$ avr-gcc -v
Using built-in specs.
Target: avr
Configured with: ./configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib --target=avr --disable-libssp --enable-languages=c,c++ --disable-libmudflap --disable-libiberty --disable-libstdc
Thread model: single
gcc version 4.1.1
any help would be appreciated.