Bug 168871
Summary: | compile: syntax error before "typedef" in stddef.h | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | mcconnau | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED NOTABUG | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-10-05 13:21:35 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
mcconnau
2005-09-20 19:25:24 UTC
Assigning to gcc, but I suspect something is odd with your sources or your C compiler flags. What's the full command line? Can you preprocess your source with -E -dD (in place of e.g. -c) gcc command line option and attach here? Thanks. Created attachment 119090 [details]
tar -xjf diagnose.tgz2 and examine diagnose/contents
Results from compiling my command.c with -E and -dD, with and without the hack
I did on stddef.h
Hi, I had the exact same problem -- only on Debian unstable, testing(etch) and Sarge (3.1). Very odd situation. I ended up writing small-fine.c that only included stdio.h and printed some text. Everything worked fine until I added the search path for my project include files, BAM! It turned out I had an autogenerated file called features.h in there which screwed up stuff badly. After I had removed it I could build with all kinds of GCC versions. Note: I did not add any new #include to my small-fine.c, I just added "-I../include" to my GCC command line! Sorry, missed your reply. The bug is in the source you are compiling. command.c starts with: x/* EXPERIX version 4.0, Copyright (C) 2004, 2005 William Bayard McConnaughey is a command interface for process control and data analysis. ... */ Note the initial x. So you end up with x /* comments and whitespace */ typedef unsigned int size_t; which is obviously not a valid C source. |