avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] ./reconf failed


From: Karl Ran
Subject: Re: [avr-libc-dev] ./reconf failed
Date: Fri, 08 Nov 2002 21:35:48 +0000

What do you get from this:

  $ file demo.elf
demo.elf: ELF 32-bit LSB executable, version 1 (SYSV), statically linked, not stripped

$ file demo.elf
demo.elf: ELF 32-bit LSB executable, version 1, statically linked, not stripped

What happens if you just go into doc/examples/demo and type this?

  $ make clean; make

$ make clean; make

avr-gcc -g -Wall -O2 -mmcu=at90s2313    -c -o demo.o demo.c
demo.c:17:22: inttypes.h: No such file or directory
demo.c:18:20: avr/io.h: No such file or directory
demo.c:19:27: avr/interrupt.h: No such file or directory
demo.c:20:24: avr/signal.h: No such file or directory
demo.c:45:4: #error "need either COM1A1 or COM11"
demo.c:50: error: parse error before "pwm"
demo.c:50: warning: type defaults to `int' in declaration of `pwm'
demo.c:50: warning: data definition has no type or storage class
demo.c:51: error: parse error before "direction"
demo.c:51: warning: type defaults to `int' in declaration of `direction'
demo.c:51: warning: data definition has no type or storage class
demo.c:54: warning: return type defaults to `int'
demo.c: In function `SIGNAL':
demo.c:68: error: `OCR1' undeclared (first use in this function)
demo.c:68: error: (Each undeclared identifier is reported only once
demo.c:68: error: for each function it appears in.)
demo.c: In function `ioinit':
demo.c:75: error: `TCCR1A' undeclared (first use in this function)
demo.c:75: warning: implicit declaration of function `_BV'
demo.c:75: error: `PWM10' undeclared (first use in this function)
demo.c:75: error: `PWM11' undeclared (first use in this function)
demo.c:75: error: `XCOM11' undeclared (first use in this function)
demo.c:78: error: `TCCR1B' undeclared (first use in this function)
demo.c:78: error: `CS10' undeclared (first use in this function)
demo.c:81: error: `OCR1' undeclared (first use in this function)
demo.c:84: error: `DDRB' undeclared (first use in this function)
demo.c:84: error: `PB3' undeclared (first use in this function)
demo.c:86: warning: implicit declaration of function `timer_enable_int'
demo.c:86: error: `TOIE1' undeclared (first use in this function)
demo.c:89: warning: implicit declaration of function `sei'
make: *** [demo.o] Error 1

Note:
avr-gcc -g -Wall -O2 -mmcu=at90s2313 -I../../../include -c -o demo.o demo.c avr-gcc -g -Wall -O2 -mmcu=at90s2313 -I../../../include -Wl,-Map,demo.map -o demo.elf demo.o -nostartfiles -nodefaultlibs ../../../build/crt1/crts2313.o
avr-objdump -h -S demo.elf > demo.lst

WORKS :-/

Do you have avr-binutils and avr-gcc installed properly?

$avr-gcc -v
Reading specs from /src/install/bin/../lib/gcc-lib/avr/3.3/specs
Configured with: ../gcc-20021104/configure --enable-languages=c --target=avr --prefix=/src/install/
Thread model: single
gcc version 3.3 20021104 (experimental)

$avr-objdump -v
GNU objdump 021104 20021104
Copyright 2002 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.


Hope that helps...

Karl


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail





reply via email to

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