Bug 18027 - cpp is broken in RH7
Summary: cpp is broken in RH7
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 7.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2000-10-01 17:36 UTC by Paul Johnson
Modified: 2008-05-01 15:37 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2000-10-06 11:17:31 UTC

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2000:132 normal SHIPPED_LIVE Bug fixing update of GCC 2.96 2000-12-19 05:00:00 UTC

Description Paul Johnson 2000-10-01 17:36:13 UTC
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.

Comment 1 Michael McTernan 2000-10-01 18:39:00 UTC

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


Comment 2 Jakub Jelinek 2000-10-03 08:40:39 UTC
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.

Comment 3 Need Real Name 2000-10-06 11:17:27 UTC

     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)

Jesse Brain


Comment 4 Jakub Jelinek 2000-10-24 08:22:02 UTC
Should be fixed in gcc-2.96-60 in rawhide.

Note You need to log in before you can comment on or make changes to this bug.