Building with avr-gcc (GCC) 3.4.6

This forum is used for discussing hardware, software, and technical details of the AVRcam embedded system.

Building with avr-gcc (GCC) 3.4.6

Postby catalin_cluj » Sat Feb 10, 2007 5:16 pm

I tried to build with avr-gcc (GCC) 3.4.6. I had to change the "twi" folder, and I commented out the included "signal.h" to get rid of some warnings.

I got "Exit code: 0" (good) but I don't understand some warnings at the end... and I'm worried... I'm kind of new at this...

Could you please look at this output, and tell me if all is OK, and maybe why I get those warnings?

Many thanks,

Cat
>>>>>>

"make.exe" all

set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -O1 -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=DebugInterface.lst DebugInterface.c \

| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' DebugInterface.d; \

[ -s DebugInterface.d ] || rm -f DebugInterface.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -O1 -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=Utility.lst Utility.c \

| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' Utility.d; \

[ -s Utility.d ] || rm -f Utility.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -O1 -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=CamConfig.lst CamConfig.c \

| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' CamConfig.d; \

[ -s CamConfig.d ] || rm -f CamConfig.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -O1 -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=I2CInterface.lst I2CInterface.c \

| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' I2CInterface.d; \

[ -s I2CInterface.d ] || rm -f I2CInterface.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -O1 -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=UartInterface.lst UartInterface.c \

| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' UartInterface.d; \

[ -s UartInterface.d ] || rm -f UartInterface.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -O1 -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=UIMgr.lst UIMgr.c \

| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' UIMgr.d; \

[ -s UIMgr.d ] || rm -f UIMgr.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -O1 -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=FrameMgr.lst FrameMgr.c \

| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' FrameMgr.d; \

[ -s FrameMgr.d ] || rm -f FrameMgr.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -O1 -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=Executive.lst Executive.c \

| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' Executive.d; \

[ -s Executive.d ] || rm -f Executive.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -O1 -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=Main.lst Main.c \

| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' Main.d; \

[ -s Main.d ] || rm -f Main.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -O1 -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=CamInterface.lst CamInterface.c \

| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' CamInterface.d; \

[ -s CamInterface.d ] || rm -f CamInterface.d
-------- begin --------
avr-gcc --version
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.

avr-gcc -c -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=CamInterface.lst CamInterface.c -o CamInterface.o
avr-gcc -c -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=Main.lst
Main.c -o Main.o
avr-gcc -c -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=Executive.lst Executive.c -o Executive.o
avr-gcc -c -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=FrameMgr.lst FrameMgr.c -o FrameMgr.o
avr-gcc -c -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=UIMgr.lst
UIMgr.c -o UIMgr.o
avr-gcc -c -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=UartInterface.lst UartInterface.c -o UartInterface.o
avr-gcc -c -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=I2CInterface.lst I2CInterface.c -o I2CInterface.o
avr-gcc -c -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=CamConfig.lst CamConfig.c -o CamConfig.o
avr-gcc -c -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=Utility.lst Utility.c -o Utility.o
avr-gcc -c -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=DebugInterface.lst DebugInterface.c -o DebugInterface.o
avr-gcc -c -mmcu=atmega8 -I. -x assembler-with-cpp
-Wa,-ahlms=CamInterfaceAsm.lst,-gstabs CamInterfaceAsm.S -o
CamInterfaceAsm.o
avr-gcc -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes
-Wa,-ahlms=CamInterface.o CamInterface.o Main.o Executive.o FrameMgr.o
UIMgr.o UartInterface.o I2CInterface.o CamConfig.o Utility.o
DebugInterface.o CamInterfaceAsm.o --output AVRcam.elf
-Wl,-Map=AVRcam.map,--cref,--section-start=.noinit=0x800300 -lm
avr-objcopy -O ihex -R .eeprom AVRcam.elf AVRcam.hex
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex AVRcam.elf AVRcam.eep
avr-objdump -h -S AVRcam.elf AVRcam.lss
avr-objcopy --debugging --change-section-address .data-0x800000
--change-section-address .bss-0x800000 --change-section-address
..noinit-0x800000 --change-section-address .eeprom-0x810000 -O coff-avr
AVRcam.elf AVRcam.cof
Warning: file C:/DOCUME~1/EWEDDI~1/LOCALS~1/Temp/ccaseaaa.s not found in
symbol table, ignoring
Warning: ignoring function __vectors() outside any compilation unit
Warning: ignoring function __bad_interrupt() outside any compilation unit
Warning: file C:\DOCUME~1\Cat\LOCALS~1\Temp/ccSAaaaa.s not found in symbol
table, ignoring
Size after:
AVRcam.elf :
section size addr
..noinit 48 8389376
..bss 628 8388720
..data 16 8388704
..text 4422 0
..eeprom 0 8454144
..stab 2268 0
..stabstr 191 0
..debug_aranges 200 0
..debug_pubnames 1214 0
..debug_info 4689 0
..debug_abbrev 2052 0
..debug_line 5441 0
..debug_str 2328 0
Total 23497


Errors: none
-------- end --------

Process Exit Code: 0
Time Taken: 00:09
catalin_cluj
 
Posts: 11
Joined: Sat Feb 10, 2007 4:00 pm

Got an answer... sort of

Postby catalin_cluj » Sat Feb 10, 2007 11:44 pm

Those warnings can be ignored, they are a result of one of the GCC creators forgeting to cleanup before submitting.

All in all, I was able to build and load.

Now the hard work starts... reading and understanding the code...

Cat
catalin_cluj
 
Posts: 11
Joined: Sat Feb 10, 2007 4:00 pm


Return to AVRcam Embedded System

Who is online

Users browsing this forum: Google [Bot] and 12 guests

cron