Bug 18027 - cpp is broken in RH7
Summary: cpp is broken in RH7
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 7.0
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
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)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-10-06 11:17:31 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2000:132 0 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 , ##
args]

Which gets used in this way:

if (![self _lispInAttr_: index])
            raiseEvent (InvalidArgument, "unknown keyword `%s'",
name);

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
Hi,

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

Mike


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
Hello.

     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

(jessebrain.au)

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.