On Wed, May 14, 2008 at 10:32:57AM -0700, Ben Pfaff wrote: > Jason Stover <[EMAIL PROTECTED]> writes: > > > On Wed, May 14, 2008 at 12:17:23PM +0800, John Darrington wrote: > >> Try the -fno-builtin option in CFLAGS > > > > I did that. No luck, same error. > > The -fno-builtin option does not affect functions that begin with > __builtin. See the GCC manual: > > `-fno-builtin' > `-fno-builtin-FUNCTION' > Don't recognize built-in functions that do not begin with > `__builtin_' as prefix. [...] > > The problem is probably that the compiler in use, according to > config.log, is GCC 3.4.x, but only GCC 4.x has __builtin_isnan > and __builtin_isinf (although they are not documented). However, > gnulib only uses __builtin_isnan on GCC 4 and later, and PSPP > (including gnulib) does not include any reference to > __builtin_isinf at all. > > This makes me suspect that the system in question has broken > system header files. Jason, would you mind grepping through the > system headers in /usr/include (and anywhere else that gets > searched by GCC by default) for references to these > __builtin_is<XXX> functions?
The problemmatic __builtin functions are defined in /usr/include/iso/math_c99.h. The code defining them is included only if at least one of the macros _STC_C99, _X_OPEN_SOURCE or __C99FEATURES__ are also defined. I tried undef'ing these variables in config.h, and that broke other things. -Jason _______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
