This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

3.0 branch: wrong CFLAGS for gen*

This was broken sometime in the last week.  Without testing it, this
change looks the most suspicious:

	2001-10-01  Loren J. Rittle  <>
		* (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
		( Map CC, CFLAGS and LDFLAGS to HOST_* versions for
		later recursive make invocation.

Imagine a non-gcc bootstrap compiler.  The user issues a 'make
bootstrap'.  We rip through stage1 and then do a 'make stage' which has
a grand finale of moving,amongst other things, genFOO into stage1/.
Since we're done with that, we're in stage2 now.

GenFOO have to be rebuilt.  (We moved t hem away just a moment ago.)
They're built with HOST_CFLAGS which has ALL_CFLAGS which changes to
exclude non-GCC things when we aren't building stage1.  But it's built
with HOST_CC yet picks up LOOSE_WARN.    The resulting wreckage looks
like this:

make[2]: [objc.stage1] Error 2 (ignored)
mv cc1obj stage1
mv: cannot access cc1obj: No such file or directory (error 2)
make[2]: [objc.stage1] Error 2 (ignored)
echo timestamp > stage1_copy
echo stage2_build > stage_last
make CC="stage1/xgcc -Bstage1/ -B/usr/local/i686-pc-sco3.2v5.0.6/bin/" \
         STAGE_PREFIX=stage1/ \
         HOST_CC="/bin/cc" CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_C
FLAGS)" STRICT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/usr/local/l
ib LANGUAGES="c gcov c++ f77 java objc" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
/bin/cc -c  -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmi
ssing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENER
ATOR_FILE    -I. -I. -I/play/egcs/gcc -I/play/egcs/gcc/. -I/play/egcs/gcc/config
 -I/play/egcs/gcc/../include /play/egcs/gcc/gengenrtl.c
error: Invalid subargument: -W-Wall
make[2]: *** [gengenrtl.o] Error 1
make[1]: *** [stage2_build] Error 2
make: *** [bootstrap] Error 2

If you just do an explict 'make gengenrtl', it will build just fine
using HOST_CC and flags that are suitable for HOST_CC.

Any ideas?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]