Hallo,
ich habe mir gedacht, da jetzt schon ein Thread der Kompilierung Wegen geöffnet wurde, dann kann ich auch gleich mein Problem posten, wenn das kein Problem ist.^^
Also ich habe momentan in der Schule Projektwoche und ich habe mir gedacht etwas mit dem ASURO zu machen.
Jetzt habe ich aber ein Problem und zwar lässt sich das Testprogramm, also der 8-Zeiler nicht kompilieren.
Den Editor den ich benutze ist der Programmers Notepad 2 und der Compiler der WinAVR. Beide Programme waren gemeinsam auf der Installations-Disc.
Nun versuche ich mein Testprogramm zu kompilieren und folgende Fehlermeldung erscheint:
Code:
C:\ASURO_src\FirstTry>make all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > asuro.d; \
[ -s asuro.d ] || rm -f asuro.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \
[ -s test.d ] || rm -f test.d
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 3.3.1
Copyright (C) 2003 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.
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c -o test.o
test.c:8:2: warning: no newline at end of file
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c -o asuro.o
avr-gcc -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.o test.o asuro.o --output test.elf -Wl,-Map=test.map,--cref -lm
avr-objcopy -O ihex -R .eeprom test.elf test.hex
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex test.elf test.eep
avr-objdump -h -S test.elf > test.lss
Size after:
C:\Users\Mansour\AppData\Local\Temp\make18806.sh: /c/WinAVR/bin/avr-size: Invalid argument
make: *** [sizeafter] Error 126
> Process Exit Code: 2
Die Tools make und clean habe ich ganz normal angelegt, wie es im Manual drinne steht.
Hatte vielleicht schon jemand dieses Problem?
Also in Google hab ich nix brauchbares gefunden.
"make" kann man in der Kommandozeile ausführen und die Umgebungsvariablen sind auch alle richtig gesetzt.
Die "Test-all" und "Test-clean"
Batchdateien beinhalten einmal "make all" und einmal "make clean".
Ich bin verzweifelt un weiß nicht wo ich meinen Fehler haben könnte^^.
MfG M.Yaacoubi
P.S.: Ich habe die Programme (WinAVR und AVR Studio 4) neun mal neuinstalliert.
Lesezeichen