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

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

Re: [avr-gcc-list] [ANN] WinAVR 20060119 Released


From: webmaster
Subject: Re: [avr-gcc-list] [ANN] WinAVR 20060119 Released
Date: Fri, 20 Jan 2006 11:39:15 +0200

I have the same problem .
Path seems to be ok .. (C:\WinAVR\bin;C:\WinAVR\utils\bin;.....)


----- Original Message ----- From: "Alex Shepherd" <address@hidden>
To: "'AVR-GCC-list'" <address@hidden>
Sent: Friday, January 20, 2006 10:02 AM
Subject: RE: [avr-gcc-list] [ANN] WinAVR 20060119 Released


Let me know if anything is broken.

Just installed latest WinAVR, did a "make clean" and then a "make" and
complains about not being able to find the finding the include files in libc

Here's what I get when I try and compile the demo sample:

C:\WinAVR\examples\demo>make
avr-gcc -g -Wall -O2 -mmcu=atmega8    -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:23: avr/sleep.h: No such file or directory
demo.c:27: warning: return type defaults to `int'
demo.c: In function `ISR':
demo.c:28: error: syntax error before "pwm"
demo.c:29: error: syntax error before "direction"
demo.c:31: error: `direction' undeclared (first use in this function)
demo.c:31: error: (Each undeclared identifier is reported only once
demo.c:31: error: for each function it appears in.)
demo.c:34: error: `pwm' undeclared (first use in this function)
demo.c:44: error: `OCR1A' undeclared (first use in this function)
demo.c: In function `ioinit':
demo.c:51: error: `TCCR1A' undeclared (first use in this function)
demo.c:51: warning: implicit declaration of function `_BV'
demo.c:51: error: `PWM10' undeclared (first use in this function)
demo.c:51: error: `PWM11' undeclared (first use in this function)
demo.c:51: error: `COM11' undeclared (first use in this function)
demo.c:58: error: `TCCR1B' undeclared (first use in this function)
demo.c:58: error: `CS10' undeclared (first use in this function)
demo.c:67: error: `OCR1A' undeclared (first use in this function)
demo.c:70: error: `DDRB' undeclared (first use in this function)
demo.c:70: error: `PB1' undeclared (first use in this function)
demo.c:73: error: `TIMSK1' undeclared (first use in this function)
demo.c:73: error: `TOIE1' undeclared (first use in this function)
demo.c:74: warning: implicit declaration of function `sei'
demo.c: In function `main':
demo.c:86: warning: implicit declaration of function `sleep_mode'
make: *** [demo.o] Error 1

Renaming the new C:\WinAVR directory and reverting back to the previous
WinAVR version and compiling the same code (i.e. the demo in the latest
WinAVR) I get a clean compile as follows:

C:\WinAVR-20060119\examples\demo>make
avr-gcc -g -Wall -O2 -mmcu=atmega8    -c -o demo.o demo.c
demo.c:27: warning: return type defaults to `int'
demo.c: In function `ISR':
demo.c:45: warning: control reaches end of non-void function
avr-gcc -g -Wall -O2 -mmcu=atmega8  -Wl,-Map,demo.map -o demo.elf demo.o
avr-objdump -h -S demo.elf > demo.lst
avr-objcopy -j .text -j .data -O ihex demo.elf demo.hex
avr-objcopy -j .text -j .data -O binary demo.elf demo.bin
avr-objcopy -j .text -j .data -O srec demo.elf demo.srec
avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O ihex demo.elf
demo_eeprom.hex
avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O binary demo.elf
demo_eeprom.bin
avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O srec demo.elf
demo_eeprom.srec

I had a browse through the docs and there was no obvious notes about any
changes like this so I guess there must be some sort of environment variable
missing that tells it where to find the libc include directories.

Any ideas?

Cheers

Alex Shepherd




_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list






reply via email to

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