On Jan 13, 2005, at 10:54 AM, Jean-Francois Donati wrote:
hi everybody,
it looks as if i have a problem with the gcc compiler.
this occured recently, after updating to the most recent version of fink.
when i'm compiling a code that use to compile fine before, here is what
i'm getting:
gcc -c -O3 -I/Users/donati/lib geometry.c
/usr/include/machine/types.h:34: #error architecture not supported
/usr/include/machine/ansi.h:37: #error architecture not supported
/usr/include/machine/endian.h:34: #error architecture not supported
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:93: undefined type, found `u_int64_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:94: undefined type, found `int64_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:98: undefined type, found `int32_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:99: undefined type, found `int32_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:100: undefined type, found `u_int32_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:101: undefined type, found `u_int32_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:102: undefined type, found `u_int32_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:104: undefined type, found `u_int16_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:105: undefined type, found `u_int16_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:107: undefined type, found `int32_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:109: undefined type, found `int32_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:110: undefined type, found `int32_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:111: undefined type, found `u_int32_t'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:123: undefined type, found `_BSD_CLOCK_T_'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:137: undefined type, found `_BSD_SSIZE_T_'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:142: undefined type, found `_BSD_TIME_T_'
/usr/local/lib/gcc-lib/powerpc-apple-darwin5.5/3.3/include/sys/ types.h:156: undefined type, found `int32_t'
/usr/include/stdio.h:277: syntax error, found `_BSD_VA_LIST_'
/usr/include/stdio.h:277: illegal function definition, found `)'
/usr/include/stdio.h:278: syntax error, found `_BSD_VA_LIST_'
/usr/include/stdio.h:278: illegal function definition, found `)'
/usr/include/stdio.h:279: syntax error, found `_BSD_VA_LIST_'
/usr/include/stdio.h:279: illegal function definition, found `)'
/usr/include/stdio.h:281: syntax error, found `_BSD_VA_LIST_'
/usr/include/stdio.h:281: illegal function definition, found `)'
/usr/include/stdio.h:325: syntax error, found `_BSD_VA_LIST_'
/usr/include/stdio.h:325: illegal function definition, found `)'
/usr/include/stdio.h:326: syntax error, found `_BSD_VA_LIST_'
/usr/include/stdio.h:326: illegal function definition, found `)'
/usr/include/stdio.h:327: syntax error, found `_BSD_VA_LIST_'
/usr/include/stdio.h:327: illegal function definition, found `)'
/usr/include/stdio.h:328: syntax error, found `_BSD_VA_LIST_'
/usr/include/stdio.h:328: illegal function definition, found `)'
/usr/include/stdio.h:351: syntax error, found `_BSD_VA_LIST_'
/usr/include/stdio.h:351: illegal function definition, found `)'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make: *** [geometry.o] Error 1
the problem looks to be coming from stdio.h. if i comment out the #include <stdio.h> line, i'm no longer getting any of this stuff, but i'm now getting
gcc -c -O3 -I/Users/donati/lib geometry.c
geometry.c:389: undefined type, found `FILE'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic
mode
geometry.c: In function `save_geom':
geometry.c:389: error: `FILE' undeclared (first use in this function)
because i need stdio.h for the definition of the FILE data type.
this only appeared after the latest release of fink (if i remember
correctly). in case it helps, below is the fink configuration i am under.
thanks in advance for any help. cheers, jeanfrancois donati
<snip>
I can't think of a mechanism by which Fink can break your compiler, but the reverse is certainly possible. It looks like you're using a non-standard (i.e. not just XCode) compiler, and Fink isn't set up to cope with that.
-- Alexander Hansen Fink Documentarian [Day Job] Levitated Dipole Experiment http://www.psfc.mit.edu/LDX
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
