Bug 20452

Summary: HEAD fails to build on avr
Product: gcc Reporter: andy hutchinson <andrewhutchinson>
Component: cAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED INVALID    
Severity: normal CC: gcc-bugs, geoffk
Priority: P2 Keywords: build
Version: 4.1.0   
Target Milestone: ---   
Host: i686-pc-cygwin Target: avr
Build: Known to work:
Known to fail: Last reconfirmed:

Description andy hutchinson 2005-03-13 13:00:20 UTC
gcc build fails with:

gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prot
otypes -Wmissing-prototypes  -fno-common   -DHAVE_CONFIG_H    -I. -I. -I../../gc
c/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/inc
lude  ../../gcc/gcc/c-lex.c -o c-lex.o
../../gcc/gcc/c-lex.c: In function `c_lex_with_flags':
../../gcc/gcc/c-lex.c:428: error: too many arguments to function `cpp_spell_toke
n'
make[1]: *** [c-lex.o] Error 1
make[1]: Leaving directory `/home/cvsroot/awhconf/gcc'

make: *** [all-gcc] Error 2
	
Apparently due to:

	*cpp_spell_token (parse_in, tok, name, true) = 0;

in c-lex.c where cpp_spell_token appears to now only have 3 arguments elsewhere.

configured using:
$ ../gcc/configure --prefix=/avrdev --enable-languages="c,c++" --target=avr --d
isable-nls
Comment 1 Andrew Pinski 2005-03-13 14:53:02 UTC
Your libcpp sources don't match the gcc sources, try using a clean build directory and an updated 
libcpp.