This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
3.4 and fixincluding Darwin headers
- From: Brad Lucier <lucier at math dot purdue dot edu>
- To: gcc at gcc dot gnu dot org
- Cc: lucier at math dot purdue dot edu (Brad Lucier)
- Date: Mon, 26 May 2003 23:02:21 -0500 (EST)
- Subject: 3.4 and fixincluding Darwin headers
When I wrote about this problem before, Geoff Keating said something like
"GCC doesn't understand Apple's headers". After looking at the headers a bit,
it seems that the problem is that GCC doesn't deal well with indented
#define's, #ifdef's, etc. (although the problem could very well be elsewhere).
This would seem to be a problem for fixinclude (which makes fixinclude
sound something like a superhero, doesn't it?). Should GCC be running
fixinclude on Apple's headers to fix these problems? I'd like not to be
tied to Apple's release schedule, and I've not had much luck recently
downloading the CVS sources from Apple (which is not GCC's problem of course).
The specifics of the problem are:
When I try to build Gambit-C on MacOS 10.2.6 (i.e., darwin 6.6) using
gcc version 3.4 20030526 (experimental), I get the following error:
gcc -I../include -I. -traditional-cpp -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-strict-aliasing -fomit-frame-pointer -fPIC -fno-common -DPACKAGE_NAME=\"Gambit-C\" -DPACKAGE_TARNAME=\"gambc40b1\" -DPACKAGE_VERSION=\"40051\" -DPACKAGE_STRING=\"Gambit-C\ 40051\" -DPACKAGE_BUGREPORT=\"gambit@iro.umontreal.ca\" -D___SINGLE_HOST=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOIDP=4 -DSIZEOF_LONG=4 -Dsocklen_t=int -D___IMPORTED_ID_PREFIX=\"_\" -D___IMPORTED_ID_SUFFIX=\"\" -D___PRIMAL -D___LIBRARY -c -D___GAMBCDIR=\"/usr/local/Gambit-C\" main.c
In file included from /usr/include/machine/param.h:30,
from /usr/include/sys/param.h:102,
from /usr/include/netdb.h:84,
from os.h:555,
from main.c:11:
/usr/include/ppc/param.h:98: macro "btodb" requires 2 arguments, but only 1 given
/usr/include/ppc/param.h:100: macro "dbtob" requires 2 arguments, but only 1 given
main.c:0: internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
Brad