rtel wrote on Sunday, February 11, 2007:
Can you try doing a "make clean" first.
I have just compiled the V4.2.0 code with no problems.
avr-gcc (GCC) 3.4.6
Copyright (C) 2006 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.
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/Common/Minimal/comtest.lst -std=gnu99 …/Common/Minimal/comtest.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > …/Common/Minimal/comtest.d;
[ -s …/Common/Minimal/comtest.d ] || rm -f …/Common/Minimal/comtest.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/Common/Minimal/PollQ.lst -std=gnu99 …/Common/Minimal/PollQ.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > …/Common/Minimal/PollQ.d;
[ -s …/Common/Minimal/PollQ.d ] || rm -f …/Common/Minimal/PollQ.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/Common/Minimal/integer.lst -std=gnu99 …/Common/Minimal/integer.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > …/Common/Minimal/integer.d;
[ -s …/Common/Minimal/integer.d ] || rm -f …/Common/Minimal/integer.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/Common/Minimal/crflash.lst -std=gnu99 …/Common/Minimal/crflash.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > …/Common/Minimal/crflash.d;
[ -s …/Common/Minimal/crflash.d ] || rm -f …/Common/Minimal/crflash.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/portable/GCC/ATMega323/port.lst -std=gnu99 …/…/Source/portable/GCC/ATMega323/port.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > …/…/Source/portable/GCC/ATMega323/port.d;
[ -s …/…/Source/portable/GCC/ATMega323/port.d ] || rm -f …/…/Source/portable/GCC/ATMega323/port.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/portable/MemMang/heap_1.lst -std=gnu99 …/…/Source/portable/MemMang/heap_1.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > …/…/Source/portable/MemMang/heap_1.d;
[ -s …/…/Source/portable/MemMang/heap_1.d ] || rm -f …/…/Source/portable/MemMang/heap_1.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/croutine.lst -std=gnu99 …/…/Source/croutine.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > …/…/Source/croutine.d;
[ -s …/…/Source/croutine.d ] || rm -f …/…/Source/croutine.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/list.lst -std=gnu99 …/…/Source/list.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > …/…/Source/list.d;
[ -s …/…/Source/list.d ] || rm -f …/…/Source/list.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/queue.lst -std=gnu99 …/…/Source/queue.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > …/…/Source/queue.d;
[ -s …/…/Source/queue.d ] || rm -f …/…/Source/queue.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/tasks.lst -std=gnu99 …/…/Source/tasks.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > …/…/Source/tasks.d;
[ -s …/…/Source/tasks.d ] || rm -f …/…/Source/tasks.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=regtest.lst -std=gnu99 regtest.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > regtest.d;
[ -s regtest.d ] || rm -f regtest.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=serial/serial.lst -std=gnu99 serial/serial.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > serial/serial.d;
[ -s serial/serial.d ] || rm -f serial/serial.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=ParTest/ParTest.lst -std=gnu99 ParTest/ParTest.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > ParTest/ParTest.d;
[ -s ParTest/ParTest.d ] || rm -f ParTest/ParTest.d
set -e; avr-gcc -MM -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=main.lst -std=gnu99 main.c
| sed ‘s,\(.*\)\.o[ :]*,\1.o \1.d : ,g’ > main.d;
[ -s main.d ] || rm -f main.d
-------- begin --------
avr-gcc (GCC) 3.4.6
Copyright (C) 2006 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.
Compiling: main.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=main.lst -std=gnu99 main.c -o main.o
Compiling: ParTest/ParTest.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=ParTest/ParTest.lst -std=gnu99 ParTest/ParTest.c -o ParTest/ParTest.o
Compiling: serial/serial.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-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: regtest.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=regtest.lst -std=gnu99 regtest.c -o regtest.o
Compiling: …/…/Source/tasks.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/tasks.lst -std=gnu99 …/…/Source/tasks.c -o …/…/Source/tasks.o
Compiling: …/…/Source/queue.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/queue.lst -std=gnu99 …/…/Source/queue.c -o …/…/Source/queue.o
Compiling: …/…/Source/list.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/list.lst -std=gnu99 …/…/Source/list.c -o …/…/Source/list.o
Compiling: …/…/Source/croutine.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/croutine.lst -std=gnu99 …/…/Source/croutine.c -o …/…/Source/croutine.o
Compiling: …/…/Source/portable/MemMang/heap_1.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/portable/MemMang/heap_1.lst -std=gnu99 …/…/Source/portable/MemMang/heap_1.c -o …/…/Source/portable/MemMang/heap_1.o
Compiling: …/…/Source/portable/GCC/ATMega323/port.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/…/Source/portable/GCC/ATMega323/port.lst -std=gnu99 …/…/Source/portable/GCC/ATMega323/port.c -o …/…/Source/portable/GCC/ATMega323/port.o
Compiling: …/Common/Minimal/crflash.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/Common/Minimal/crflash.lst -std=gnu99 …/Common/Minimal/crflash.c -o …/Common/Minimal/crflash.o
Compiling: …/Common/Minimal/integer.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/Common/Minimal/integer.lst -std=gnu99 …/Common/Minimal/integer.c -o …/Common/Minimal/integer.o
Compiling: …/Common/Minimal/PollQ.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/Common/Minimal/PollQ.lst -std=gnu99 …/Common/Minimal/PollQ.c -o …/Common/Minimal/PollQ.o
Compiling: …/Common/Minimal/comtest.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=…/Common/Minimal/comtest.lst -std=gnu99 …/Common/Minimal/comtest.c -o …/Common/Minimal/comtest.o
Linking: rtosdemo.elf
avr-gcc -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=main.o -std=gnu99 main.o ParTest/ParTest.o serial/serial.o regtest.o …/…/Source/tasks.o …/…/Source/queue.o …/…/Source/list.o …/…/Source/croutine.o …/…/Source/portable/MemMang/heap_1.o …/…/Source/portable/GCC/ATMega323/port.o …/Common/Minimal/crflash.o …/Common/Minimal/integer.o …/Common/Minimal/PollQ.o …/Common/Minimal/comtest.o --output rtosdemo.elf -Wl,-Map=rtosdemo.map,–cref -lm
Creating load file for Flash: rtosdemo.hex
avr-objcopy -O ihex -R .eeprom rtosdemo.elf rtosdemo.hex
Creating load file for EEPROM: rtosdemo.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load"
–change-section-lma .eeprom=0 -O ihex rtosdemo.elf rtosdemo.eep
Creating Extended Listing: rtosdemo.lss
avr-objdump -h -S rtosdemo.elf > rtosdemo.lss
Creating Symbol Table: rtosdemo.sym
avr-nm -n rtosdemo.elf > rtosdemo.sym
Size after:
rtosdemo.elf :
section size addr
.text 10090 0
.data 80 8388704
.bss 1671 8388784
.noinit 0 8390455
.eeprom 0 8454144
.stab 876 0
.stabstr 132 0
.debug_aranges 280 0
.debug_pubnames 1812 0
.debug_info 10614 0
.debug_abbrev 3537 0
.debug_line 11459 0
.debug_str 4722 0
.debug_ranges 12 10090
Total 45285
Errors: none
-------- end --------