Sign in

username:

password:



Not a member?

Search avrclub



Search tips

Subscribe to avrclub



avrclub by Keywords

AT90S2313 | AT90S8515 | ATMega | ATmega128 | ECL | FETS | IAR | Keyboard | LCD | STK50 | TMOS | UART

Ads

Discussion Groups

Discussion Groups | AVRclub | [AVR club] avrlib on ubuntu -- invalid bfd target error

Atmel AVR Microcontroller discussion group.

[AVR club] avrlib on ubuntu -- invalid bfd target error - "Marojahan M.T. Sigiro" - Mar 12 4:39:13 2008

hi all...

i have problem of using avrlib on my ubuntu (gutsy) machine..
before i use avrlib on windows machine and it works fine (i use default
avrlib).

now i'm using ubuntu gutsy by using avr-gcc and lib and i migrate my avrlib
library...

the problem is.. with my default makefile rule (avrproj_make) i can't
compile my program and got error : invalid bfd target

how do i fix this problem???

this is the error..
*
*
avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I/usr/avr/lib/AVRlib
-Wa,-ahlms=contohm8.lst -mmcu=atmega8 -I. contohm8.c -o contohm8.o
In file included from contohm8.c:3:
/usr/lib/gcc/avr/4.2.1/../../../../avr/include/avr/signal.h:36:2: warning:
#warning "This header file is obsolete. Use ."
contohm8.c:7: warning: function declaration isn't a prototype
avr-gcc contohm8.o -Wl,-Map=contohm8.map,--cref -mmcu=atmega8 -o
contohm8.elf
avr-objcopy --debugging -O coff-ext-avr \
--change-section-address .data-0x800000 \
--change-section-address .bss-0x800000 \
--change-section-address .noinit-0x800000 \
--change-section-address .eeprom-0x810000 \
contohm8.elf contohm8.cof
avr-objcopy: contohm8.cof: Invalid bfd target
avr-objcopy: --change-section-vma .eeprom+0xff7f0000 never used
avr-objcopy: --change-section-lma .eeprom+0xff7f0000 never used
avr-objcopy: --change-section-vma .noinit+0xff800000 never used
avr-objcopy: --change-section-lma .noinit+0xff800000 never used
avr-objcopy: --change-section-vma .bss+0xff800000 never used
avr-objcopy: --change-section-lma .bss+0xff800000 never used
avr-objcopy: --change-section-vma .data+0xff800000 never used
avr-objcopy: --change-section-lma .data+0xff800000 never used
make: *** [contohm8.cof] Error 1

my tools are:

*
*
$avr-objcopy -V

GNU objcopy 2.17
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.

$ avr-gcc -v

Using built-in specs.
Target: avr
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr
--infodir=/usr/share/info --mandir=/usr/share/man --enable-shared
--with-system-zlib --enable-long-long --enable-nls
--without-included-gettext --disable-checking --disable-libssp
--build=i486-linux-gnu --host=i486-linux-gnu --target=avr
Thread model: single
gcc version 4.2.1
i hope anyone can help me..

thankyou..
--
--------------------------------------
Marojahan M.T. Sigiro
m...@gmail.com
GTalk : marojahan
Y-messenger : ojak_s
[Non-text portions of this message have been removed]



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )