avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Problems w/ gcc, linux, avrmega8


From: Ross Thompson
Subject: [avr-gcc-list] Problems w/ gcc, linux, avrmega8
Date: Sun, 18 Aug 2002 11:09:24 -0700

I cannot seem to build binaries for the atmega8 with the current
versions of the gnu tool set.  I've been trying for several weeks,
with various different versions.  The current state of play is:

binutils from CVS, today

    pratchah[2] avr-ld --version
    GNU ld version 2.13.90 20020818

gcc from CVS, today

    pratchah[3] avr-gcc --version
    avr-gcc (GCC) 3.3 20020818 (experimental)

avr libc: 
avr-libc-20020630.tar.gz


I compile with the following line:

avr-gcc -c -g -O3 -Wall -Wstrict-prototypes -Wa,-ahlms=tqw.lst
    -mmcu=atmega8 -I. blah.c -o blah.o

which seems to work fine.

I link with this line:

avr-gcc blah1.o blah2.o blah3.o blah4.o 
    -Wl,-Map=tqw.map,--cref,-mavrmega8 -mmcu=atmega8 -o tqw1.elf

And I get this:

/usr/local/avr/lib/gcc-lib/avr/3.3/../../../../avr/bin/ld:
    unrecognised emulation mode: avrmega8
Supported emulations: avr85xx avr1200 avr23xx avr44x4 avr4433
    avrmega603 avrmega103 avrmega161 avr1 avr2 avr3 avr4 avr5

So, what am I doing wrong?

Any help appreciated, I'm on kind of a short deadline here.

- Ross

P.S. I've tried change 'avrmega8' to 'avr4' on the link line.  This makes
the program link, but it doesn't run, even though the code compiles
and links correctly on my friends PC version of the tool set.

---
misocainea (n) Hatred of anything new.
avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]