Fehlermeldung bei make all
Ich benutze Linux, habe also kein WinAVR oder so installiert, sondern avr-gcc und co aus den Repos.
Ich denke allerdings mir fehlt da irgendwas, weiß aber nicht mehr weiter was das wohl ist.
Jedenfalls bekomme ich sowohl mit der originalen Library, als auch mit der AsuroLib von Sourceforge ne Fehlermeldung, wenn ich mein erstes kleines Programm kompilieren will:
Code:
set -e; avr-gcc -MM -mmcu=atmega8 -DF_CPU=8000000UL -I. -g -Os -I../../lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=../../lib/asuro.lst ../../lib/asuro.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > asuro.d; \
[ -s asuro.d ] || rm -f asuro.d
../../lib/asuro.c:222:9: error: attempt to use poisoned "SIG_OVERFLOW2"
../../lib/asuro.c:239:8: error: attempt to use poisoned "SIG_OUTPUT_COMPARE2"
../../lib/asuro.c:267:9: error: attempt to use poisoned "SIG_INTERRUPT1"
../../lib/asuro.c:301:9: error: attempt to use poisoned "SIG_ADC"
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 4.7.2
Copyright (C) 2012 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 -DF_CPU=8000000UL -I. -g -Os -I../../lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=../../lib/asuro.lst ../../lib/asuro.c -o asuro.o
../../lib/asuro.c:222:9: error: attempt to use poisoned "SIG_OVERFLOW2"
../../lib/asuro.c: In function 'SIG_OVERFLOW2':
../../lib/asuro.c:222:1: warning: 'SIG_OVERFLOW2' appears to be a misspelled signal handler [enabled by default]
../../lib/asuro.c: At top level:
../../lib/asuro.c:239:8: error: attempt to use poisoned "SIG_OUTPUT_COMPARE2"
../../lib/asuro.c: In function 'SIG_OUTPUT_COMPARE2':
../../lib/asuro.c:239:1: warning: 'SIG_OUTPUT_COMPARE2' appears to be a misspelled signal handler [enabled by default]
../../lib/asuro.c: At top level:
../../lib/asuro.c:267:9: error: attempt to use poisoned "SIG_INTERRUPT1"
../../lib/asuro.c: In function 'SIG_INTERRUPT1':
../../lib/asuro.c:267:1: warning: 'SIG_INTERRUPT1' appears to be a misspelled signal handler [enabled by default]
../../lib/asuro.c: At top level:
../../lib/asuro.c:301:9: error: attempt to use poisoned "SIG_ADC"
../../lib/asuro.c: In function 'SIG_ADC':
../../lib/asuro.c:301:1: warning: 'SIG_ADC' appears to be a misspelled signal handler [enabled by default]
das ist mit der AsuroLib von Sourceforge, mit der originalen siehts aber ähnlich aus.
Da ich mich mit signal handlern nicht auskenn, weiß ich auch nicht, woher der Fehler rührt; wie gesagt ich vermute mir fehlt ne Datei, oder es ist was nicht richtig in dem Makefile referenziert.
SIG_INTERRUPT1 geht nicht immer
Ist mir heute beim Wechsel von ATTiny2313 auf 4313 auch passiert.
das ließ sich vom wechsel von SIG_INTERRUPT1 auf INT1_vect bereinigen.
Warum bei der gleichen Compilerversion unterschiedliche Headernammen existieren verstehe ich aber auch nicht.