PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : WinAVR compiler error



irobot_22587
13.01.2008, 19:40
I upgraded to Asuor Lib ver 2.7.1 and the WinAVR ver 20071221.

Now I´m getting the following error message when I try to compile a project (see code section).

-------- begin --------
avr-gcc --version
avr-gcc (GCC) 4.2.2 (WinAVR 20071221)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make.exe: *** No rule to make target `test.hex', needed by `all'. Stop.

> Process Exit Code: 2
> Time Taken: 00:00

The make clean functions just fine.

Any idea what I´m missing here?

Thanks

MartinFunk
13.01.2008, 19:50
hi irobot_22587,
No rule to make target means that their is no makefile.

MfG Martin

irobot_22587
13.01.2008, 20:46
ich habe jedoch das makefile in dem selben directory wie die C-Datei. Erwartet PN das Makefile anderswo?

irobot_22587
13.01.2008, 20:50
Jetzt habe ich ein weiteres Problem mit AVR Studio compiler.

Hier ist die Fehlermeldung:


Build started 13.1.2008 at 14:43:21
avr-gcc.exe -I"C:\Dokumente und Einstellungen\Petersen.PN15\Eigene Dateien\Volker\ProgramCode\ASURO_SRC\MotorTest\..\ ..\..\..\..\..\..\Programme\WinAVR\AsuroLIB\lib\in c" -mmcu=atmega128 -Wall -gdwarf-2 -O0 -fsigned-char -MD -MP -MT MotorTest.o -MF dep/Mo
torTest.o.d -c ../MotorTest.c

../MotorTest.c: In function 'testfahrt':
../MotorTest.c:28: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
../MotorTest.c: In function 'main':
../MotorTest.c:68: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
../MotorTest.c:74: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
../MotorTest.c:80: warning: pointer targets in passing argument 1 of 'SerWrite' differ in signedness
avr-gcc.exe -I"C:\Dokumente und Einstellungen\Petersen.PN15\Eigene Dateien\Volker\ProgramCode\ASURO_SRC\MotorTest\..\ ..\..\..\..\..\..\Programme\WinAVR\AsuroLIB\lib\in c" -mmcu=atmega128 -Wall -gdwarf-2 -O0 -fsigned-char -MD -MP -MT asuro.o -MF dep/asuro.
o.d -c ../../../../../../../../Programme/WinAVR/AsuroLIB/lib/asuro.c

../../../../../../../../Programme/WinAVR/AsuroLIB/lib/asuro.c: In function 'Init':
../../../../../../../../Programme/WinAVR/AsuroLIB/lib/asuro.c:133: error: 'UCSRA' undeclared (first use in this function)
../../../../../../../../Programme/WinAVR/AsuroLIB/lib/asuro.c:133: error: (Each undeclared identifier is reported only once
../../../../../../../../Programme/WinAVR/AsuroLIB/lib/asuro.c:133: error: for each function it appears in.)
../../../../../../../../Programme/WinAVR/AsuroLIB/lib/asuro.c:134: error: 'UCSRB' undeclared (first use in this function)
../../../../../../../../Programme/WinAVR/AsuroLIB/lib/asuro.c:135: error: 'UCSRC' undeclared (first use in this function)
../../../../../../../../Programme/WinAVR/AsuroLIB/lib/asuro.c:136: error: 'UBRRL' undeclared (first use in this function)
../../../../../../../../Programme/WinAVR/AsuroLIB/lib/asuro.c: In function '__vector_2':
../../../../../../../../Programme/WinAVR/AsuroLIB/lib/asuro.c:252: error: 'GICR' undeclared (first use in this function)
make: *** [asuro.o] Error 1
Build failed with 7 errors and 4 warnings...

Wo werden die Variablen UCSRA, UCSRB, etc. declariert? Welche .h Datei vermisse ich?

Gruss,
vp

MartinFunk
14.01.2008, 16:28
Hi irobot,
versuch dein projekt nicht in den Eigenen Dateien zu compilieren sonder z.B. in C:\Asuro\projektname denn WinAVR macht probleme bei ordner namen mit Leer zeichen (C:\Dokumente und Einstellungen\Petersen.PN15\Eigene Dateien\)

MfG Martin