4.8.0 build errors using WinAVR
I am getting build errors on WinAVR when I try to build the demo in FreeRTOS 4.8.0:
Compiling: main.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I../../Source/include -I../C
ommon/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-en
ums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsi
gn-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing
-declarations -Wunused -Wa,-adhlns=main.lst -std=gnu99 main.c -o main.o
main.c: In function ‘main’:
main.c:191: warning: pointer targets in passing argument 2 of ‘xTaskCreate’ diff
er in signedness
Compiling: regtest.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I../../Source/include -I../C
ommon/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-en
ums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsi
gn-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing
-declarations -Wunused -Wa,-adhlns=regtest.lst -std=gnu99 regtest.c -o regtest.
o
regtest.c: In function ‘vStartRegTestTasks’:
regtest.c:71: warning: pointer targets in passing argument 2 of ‘xTaskCreate’ di
ffer in signedness
regtest.c:72: warning: pointer targets in passing argument 2 of ‘xTaskCreate’ di
ffer in signedness
Compiling: ParTest/ParTest.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I../../Source/include -I../C
ommon/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-en
ums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsi
gn-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing
-declarations -Wunused -Wa,-adhlns=ParTest/ParTest.lst -std=gnu99 ParTest/ParTe
st.c -o ParTest/ParTest.o
Compiling: serial/serial.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I../../Source/include -I../C
ommon/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-en
ums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsi
gn-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing
-declarations -Wunused -Wa,-adhlns=serial/serial.lst -std=gnu99 serial/serial.c
-o serial/serial.o
Compiling: ../../Source/tasks.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I../../Source/include -I../C
ommon/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-en
ums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsi
gn-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing
-declarations -Wunused -Wa,-adhlns=../../Source/tasks.lst -std=gnu99 ../../Sour
ce/tasks.c -o ../../Source/tasks.o
../../Source/tasks.c: In function ‘vTaskSwitchContext’:
../../Source/tasks.c:1435: warning: dereferencing type-punned pointer will break
strict-aliasing rules
Compiling: ../../Source/queue.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I../../Source/include -I../C
ommon/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-en
ums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsi
gn-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing
-declarations -Wunused -Wa,-adhlns=../../Source/queue.lst -std=gnu99 ../../Sour
ce/queue.c -o ../../Source/queue.o
../../Source/queue.c:1196: error: conflicting types for ‘xQueueIsQueueEmptyFromI
SR’
../../Source/queue.c:128: error: previous declaration of ‘xQueueIsQueueEmptyFrom
ISR’ was here
../../Source/queue.c:1218: error: conflicting types for ‘xQueueIsQueueFullFromIS
R’
../../Source/queue.c:129: error: previous declaration of ‘xQueueIsQueueFullFromI
SR’ was here
make: *** [../../Source/queue.o] Error 1
4.8.0 build errors using WinAVR
see https://sourceforge.net/forum/message.php?msg_id=4877178