how can i give support of '-pg' flag in avr with gcc-4.7.0 to achive the profiling information of source code
shweta_guptasairam
er.shwetagupta.edu@gmail.com
Thu Jul 5 05:59:00 GMT 2012
Step 1: I configured avr with gcc-4.7.0, with binutils-2.22
/cygdrive/d/avr_new/gcc-4.7.0/gcc-4.7.0/configure --target=c816
--prefix=/cygdrive/d/avr_new/gcc-install --program-prefix=avr-
--enable-languages="c" --enable-checking
--with-ld=/cygdrive/d/newport/binutil/install/bin/avr-ld.exe
--with-as=/cygdrive/d/newport/binutil/install/bin/avr-as.exe CFLAGS="-g -pg
-O2 -I/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr" LDFLAGS=-pg
--disable-shared --disable-decimal-float --disable-threads
--disable-libmudflap --disable-libssp --disable-libgomp
Step 2: make
in make i am getting the error of avr-stdint.h in ../gcc/config/avr.
When i added this file in ../gcc/config/avr then again run 'make' command
i am getting this error:
gcc -c -DIN_GCC_FRONTEND -g -pg -O2
-I/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wc++-compat -fno-common -DHAVE_CONFIG_H -I. -Ic-family
-I/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc
-I/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/c-family
-I/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/../include
-I/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/../libcpp/include
-I/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/../libdecnumber
-I/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/../libdecnumber/dpd
-I../libdecnumber
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/c-family/c-common.c -o
c-family/c-common.o
In file included from
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/c-family/c-common.c:4645:0:
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def: In
function ‘c_define_builtins’:
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:35:76:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:36:99:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:35:1:
error: ‘DEF_BUILTIN’ undeclared (first use in this function)
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:35:1:
note: each undeclared identifier is reported only once for each function it
appears in
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:36:1:
error: expected ‘;’ before ‘DEF_BUILTIN’
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:37:100:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:38:88:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:39:90:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:43:103:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:44:98:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:45:99:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:46:100:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:49:94:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:50:122:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/config/avr/builtins.def:51:124:
error: macro "DEF_BUILTIN" requires 11 arguments, but only 5 given
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/c-family/c-common.c: At top
level:
/cygdrive/d/c816_new/gcc-4.7.0/gcc-4.7.0/gcc/c-family/c-common.c:5184:1:
warning: ‘def_builtin_1’ defined but not used
Makefile:1054: recipe for target `c-family/c-common.o' failed
make[2]: *** [c-family/c-common.o] Error 1
I can't understand what to do
please give me solution how we can activate '-pg' in avr for profiling
information
--
View this message in context: http://old.nabble.com/how-can-i-give-support-of-%27-pg%27-flag-in-avr-with-gcc-4.7.0-to-achive-the-profiling-information-of-source-code-tp34116146p34116146.html
Sent from the gcc - Help mailing list archive at Nabble.com.
More information about the Gcc-help
mailing list