RE: fprintf in passes.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

Seems like some commands during the build process are built from stdout
of that "passbuildcfg", try writing to stderr, or an explicit file, that
should fix it...
I believe this is it, because if you look closely the text "PASSBUILDCFG
called" is on the xgcc command line you wrote below.

Cheers, Markus

ranjith kumar <> wrote:
> Hi
> I tried to include fprintf statement in passes.c file
> at 451th line
>     445   p = &all_lowering_passes;
>     446   NEXT_PASS (pass_remove_useless_stmts);
>     447   NEXT_PASS (pass_mudflap_1);
>     448   NEXT_PASS (pass_lower_cf);
>     449   NEXT_PASS (pass_lower_eh);
>     450   NEXT_PASS (pass_build_cfg);
>     451 fprintf(stdout,"\n PASSBUILDCFG called\n");
> -------------------------------------------------------
> I got the following error while installing.
> What could be the reason?
> My intention is to print the name of pass just after
> that pass has been called.
> -------------------------------------------------------
> 
> PASSBUILDCFG called
> make \
>   CFLAGS="-g -DENABLE_CHECKING
> -DENABLE_ASSERT_CHECKING -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -pedantic
> -Wno-long-long -Wno-variadic-macros
> -Wold-style-definition -Wmissing-format-attribute  " \
>   CONFIG_H="tconfig.h auto-host.h
> ../../gcc-4.1.2/gcc/../include/ansidecl.h" TM_H="tm.h
>     options.h ../../gcc-4.1.2/gcc/config/i386/i386.h
> ../../gcc-4.1.2/gcc/config/i386/unix.h
> ../../gcc-4.1.2/gcc/config/i386/att.h
> ../../gcc-4.1.2/gcc/config/dbxelf.h
> ../../gcc-4.1.2/gcc/config/elfos.h
> ../../gcc-4.1.2/gcc/config/svr4.h
> ../../gcc-4.1.2/gcc/config/linux.h
> ../../gcc-4.1.2/gcc/config/i386/linux.h
> ../../gcc-4.1.2/gcc/defaults.h insn-constants.h
> insn-flags.h options.h" \
>   INCLUDES="-I. -I. -I../../gcc-4.1.2/gcc
> -I../../gcc-4.1.2/gcc/.
> -I../../gcc-4.1.2/gcc/../include
> -I../../gcc-4.1.2/gcc/../libcpp/include " \
>   MAKEOVERRIDES= \
>   -f libgcc.mk all
> make[3]: Entering directory
> `/home/users/pg05/ranjithk/gcc/obj/gcc'
> for d in libgcc; do \
>   if [ -d $d ]; then true; else /bin/sh
> ../../gcc-4.1.2/gcc/../mkinstalldirs $d; fi; \
> done
> mkdir -p -- libgcc
> if [ -f stmp-dirs ]; then true; else touch stmp-dirs;
> fi
> ./xgcc -B./
> -B/users/pg05/ranjithk/gcc/obj//i686-pc-linux-gnu/bin/
> -isystem
> /users/pg05/ranjithk/gcc/obj//i686-pc-linux-gnu/include
> -isystem
> /users/pg05/ranjithk/gcc/obj//i686-pc-linux-gnu/sys-include
> -L/users/pg05/ranjithk/gcc/obj/gcc/../ld -O2  -O2 -g
> -O2  -DIN_GCC    -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition  -isystem ./include  -fPIC -g
> -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED  -I. -I.
> -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/.
> -I../../gcc-4.1.2/gcc/../include
> -I../../gcc-4.1.2/gcc/../libcpp/include  -DL_muldi3
> PASSBUILDCFG called -fvisibility=hidden -DHIDE_EXPORTS
> -c ../../gcc-4.1.2/gcc/libgcc2.c -o libgcc/./_muldi3.o
> xgcc: PASSBUILDCFG: No such file or directory
> xgcc: called: No such file or directory
> 
>  PASSBUILDCFG called
> make[3]: *** [libgcc/./_muldi3.o] Error 1
> make[3]: Leaving directory
> `/home/users/pg05/ranjithk/gcc/obj/gcc'
> make[2]: *** [libgcc.a] Error 2
> make[2]: Leaving directory
> `/home/users/pg05/ranjithk/gcc/obj/gcc'
> make[1]: *** [stage1_build] Error 2
> make[1]: Leaving directory
> `/home/users/pg05/ranjithk/gcc/obj/gcc'
> make: *** [bootstrap] Error 2
> 
> 
>       ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer.
> Try it now.
> http://uk.answers.yahoo.com/


-- 
20. Juni 2007 
Salomon Automation am 2. Schweizerischen Supply Chain Management Forum der GS1 Schweiz in Baden. Tagungsort: Trafohalle Baden, Schweiz

20. Juni 2007
MoveRetail-Handelstag, Hamburg
Die MoveRetail Partner, Salomon Automation, maxess systemhaus, Superdata, Remira, POS Systemhaus und Mosaic veranstalten den 1. MoveRetail-Handelstag.
Tagungsort: Steigenberger Hotel, Hamburg

28. Juni 2007
6. BVL Logistiktag Steiermark in der WAMAS City, Friesach bei Graz
"Trends in der Logistik ": hoch automatisierte Systeme, mobile Waren- und Leergutverfolgung im Lebensmittelhandel und Generalunternehmerschaft versus Einzelprojekte.
 
Termin: 28. Juni 2007, ab 15.00 Uhr
Ort: Salomon Automation, Friesachstra?e 15, 8114 Friesach bei Graz, Osterreich
 

Salomon Automation GmbH - Friesachstrasse 15 - A-8114 Friesach bei Graz
Sitz der Gesellschaft: Friesach bei Graz
UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K
Firmenbuchgericht: Landesgericht fur Zivilrechtssachen Graz




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux