Bug 12539 - GCC 3.3.1 bootstrap failure on AIX 5.2
Summary: GCC 3.3.1 bootstrap failure on AIX 5.2
Status: RESOLVED DUPLICATE of bug 11315
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 3.3.1
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-08 11:16 UTC by Michael H. Martel
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Original math.h before modifications (7.87 KB, text/plain)
2003-10-08 16:46 UTC, Michael H. Martel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael H. Martel 2003-10-08 11:16:45 UTC
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
Comment 1 Andrew Pinski 2003-10-08 15:28:05 UTC
Can you attach the "include/math.h" file in the objdir?
Comment 2 Michael H. Martel 2003-10-08 16:46:04 UTC
Created attachment 4902 [details]
Original math.h before modifications
Comment 3 Michael H. Martel 2003-10-08 16:49:04 UTC
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
Comment 4 Andrew Pinski 2003-10-08 16:53:16 UTC
Invalid as based on the followup of the message given by the reporter.
Comment 5 Andrew Pinski 2003-10-20 18:16:34 UTC
Reopening bug to mark it as a dup of ...
Comment 6 Andrew Pinski 2003-10-20 18:16:47 UTC
bug 11315.

*** This bug has been marked as a duplicate of 11315 ***