Red Hat Bugzilla – Bug 18027
cpp is broken in RH7
Last modified: 2008-05-01 11:37:59 EDT
The gcc in RH7 won't process files that use this macro:
#define raiseEvent( eventType, formatString, args... ) [eventType
raiseEvent: "\r" __FUNCTION__, __FILE__, __LINE__, formatString , ##
Which gets used in this way:
if (![self _lispInAttr_: index])
raiseEvent (InvalidArgument, "unknown keyword `%s'",
The error says "pasting would not give a valid preprocessing token"
I've confirmed that gcc-2.95.2 processes this correctly and cpp from the
current gcc CVS tree fixes that.
I find that compiling the kernel 2.2.17 (from kernel.org) produces numerous
occurences of this error (pasting would not give a valid preprocessing token)
also, before failing compilation at Checksun.S
Actually, it is not an error, it is a warning and in this case bogus.
It has been fixed since then and will appear in the next gcc errata
(after a few more issues are solved especially on Alpha).
Concerning kernel compilation, RELEASE-NOTES mention that you should not
compile 2.2.x kernels with this gcc, use make CC='kgcc -D__KERNEL__ -I$(HPATH)'
instead, the checksum.S failure is because 2.2 kernels use -traditional
and GNU macro extensions at the same time (fixed in 2.4 kernels), many of the
pasting warnings are bugs in 2.2 kernels and not bugs in cpp.
I have also seen this problem in a big way, I can not compile almost every
program and kernel I have tried, even the beta 2.4 kernels!! this is very
serious for me as the standard kernel is not suitable for my machine (it is
just good enough to boot it to build a better one)
Should be fixed in gcc-2.96-60 in rawhide.