Trying to bootstrap gcc-3.3.1 on IBM AIX 5.2.0.0 Maintenance Level 1, using IBM C Compiler 5.0.2.0. Configured the build with : ../gcc-3.3.1/configure --disable-nls --enable-languages=c,c++ Using gnu-make 3.80, I get this error during bootstrap. stage1/xgcc -Bstage1/ -B/usr/local/powerpc-ibm-aix5.2.0.0/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I../../gcc-3.3.1/gcc -I../../gcc-3.3.1/gcc/. -I../../gcc-3.3.1/gcc/config -I../../gcc-3.3.1/gcc/../include ../../gcc-3.3.1/gcc/genautomata.c -o genautomata.o In file included from ../../gcc-3.3.1/gcc/genautomata.c:109: include/math.h:1071:2: '#' is not followed by a macro parameter In file included from ../../gcc-3.3.1/gcc/genautomata.c:109: include/math.h:1072: error: parse error before '==' token include/math.h:1072: error: syntax error at '#' token include/math.h:1074: error: syntax error at '#' token include/math.h:1076: error: syntax error at '#' token make[2]: *** [genautomata.o] Error 1 make[2]: Leaving directory `/usr/local/src/gcc-3.3.1-build/gcc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/usr/local/src/gcc-3.3.1-build/gcc' make: *** [bootstrap] Error 2
Can you attach the "include/math.h" file in the objdir?
Created attachment 4902 [details] Original math.h before modifications
I've attahced the original math.h from the configure/bootstrap process. I found this link : http://gcc.gnu.org/ml/gcc/2003-07/msg00212.html And I modified this section of math.h to remove the #ifndef __cplusplus and the corrosponding #endif and the make bootstrap is moving along. #ifndef __LONGDOUBLE128 #define fpclassify(__x) \ (sizeof(__x) == sizeof(float) ? \ ((_classf((double)__x) == FP_SNAN) || (_classf((double)__x) == FP_QNAN) ? \ FP_QNAN : \ (_classf((double) __x) & 0x00000001 ? \ _classf((double) __x) - 1 : \ _classf((double) __x)) ) : \ #ifndef __cplusplus ((class(__x) == FP_SNAN) || (class(__x) == FP_QNAN) ? \ #endif FP_QNAN : \ #ifndef __cplusplus (class(__x) & 0x00000001 ? \ #endif
Invalid as based on the followup of the message given by the reporter.
Reopening bug to mark it as a dup of ...
bug 11315. *** This bug has been marked as a duplicate of 11315 ***