Problem installing egcs-19981109 on powerpc-ibm-aix4.2.1.0

Joerg Pietschmann joerg_pietschmann@zkb.ch
Wed Nov 11 10:13:00 GMT 1998


Hi,
i got the following problem while insstalling egcs-19981109 on
powerpc-ibm-aix4.2.1.0:

t384@husky:...gcs-19981109> make install 2>&1|tee ../make-i.log
[some output snipped]
case "c proto gcov  CHILL c++ f77 java objc" in \
  *[fF]77*) touch lang-f77;; \
  *) rm -f lang-f77;; \
esac
if [ -f lang-f77 ]; then \
  cc  -DIN_GCC    -g  -DHAVE_CONFIG_H -DHAIFA  -I. -I. -I./config -I./../include
\
   `echo ./f/ansify.c | sed 's,^\./,,'` -o f/ansify; \
  f/ansify < ./f/intdoc.in > f/intdoc.h0 ./f/intdoc.in; \
  cc  -DIN_GCC    -g  -DHAVE_CONFIG_H -DHAIFA  -I. -I. -I./config -I./../include
-I./f \
   `echo ./f/intdoc.c | sed 's,^\./,,'` -o f/intdoc; \
  f/intdoc > ./f/intdoc.texi; \
  rm f/intdoc f/ansify f/intdoc.h0; \
else true; fi
"f/intrin.def", line 3121.41: 1506-010 (W) Macro DEFIMP invoked with a null
argument for parameter GFRTDIRECT.
[zillions of similar lines snipped]
"f/intrin.def", line 3351.43: 1506-010 (W) Macro DEFIMP invoked with a null
argument for parameter GFRTGNU.
"f/intdoc.c", line 193.1: 1506-046 (S) Syntax error.
"f/intdoc.c", line 196.30: 1506-045 (S) Undeclared identifier family.
"f/intdoc.c", line 195.6: 1506-221 (S) Initializer must be a constant
expression.
"f/intdoc.c", line 200.10: 1506-026 (S) Number of initializers cannot be greater
than the number of aggregate members.
"f/intdoc.c", line 231.7: 1506-026 (S) Number of initializers cannot be greater
than the number of aggregate members.
"f/intdoc.c", line 231.7: 1506-026 (S) Number of initializers cannot be greater
than the number of aggregate members.
"f/intdoc.c", line 231.7: 1506-026 (S) Number of initializers cannot be greater
than the number of aggregate members.
"f/intdoc.c", line 231.7: 1506-026 (S) Number of initializers cannot be greater
than the number of aggregate members.
"f/intdoc.c", line 231.7: 1506-277 (S) Syntax error: possible missing ',' or
'}'?
"f/intdoc.c", line 242.11: 1506-045 (S) Undeclared identifier fam.
"f/intdoc.c", line 242.3: 1506-196 (S) Initialization between types "enum {...}"
and "void" is not allowed.
"f/intdoc.c", line 242.39: 1506-277 (S) Syntax error: possible missing ',' or
'}'?
"f/intdoc.c", line 246.11: 1506-045 (S) Undeclared identifier in_ifset.
"f/intdoc.c", line 249.30: 1506-026 (S) Number of initializers cannot be greater
than the number of aggregate members.
"f/intdoc.c", line 264.11: 1506-045 (S) Undeclared identifier latest_family.
"f/intdoc.c", line 265.5: 1506-277 (S) Syntax error: possible missing ',' or
'}'?
/bin/sh: f/intdoc:  not found.
rm: f/intdoc: A file or directory in the path name does not exist.
make[1]: *** [f/intdoc.texi] Error 2
make[1]: Leaving directory
`/tmp_mnt/apximport/f1/home/lis5p/t384/gnu/unpack/egcs-19981109/gcc'
make: *** [install-gcc] Error 2
t384@husky:...gcs-19981109> 


Too bad that `intdoc.h0' has already been removed...ok, i bothered to
regenerate it. The preprocessed `intdoc.i' shows this:

[...]
#line 2498
{ FFEINTRIN_impDATE_AND_TIME, "Returns:\n..." },
#line 186 "./f/intdoc.c"
};

static char *summaries[FFEINTRIN_imp] = { 0 };
static struct cc_pair cc_summaries[] = {
#line 193
};

char *
family_name (ffeintrinFamily family)
{
  switch (family)
[...]

The compiler worries about the empty initializer for the cc_summaries array.
Unless somebody comes up with another explanation, I'd say there is a bug in
the xlC preprocessor. It works with gcc. The fix is probably to use gcc
instead of xlC.

J.Pietschmann
-- 

----------------------------------------------------------------------
Zuercher Kantonalbank ZKB        Internet : joerg.pietschmann@zkb.ch
Neue Hard 9                      Telefon  : ++41 01-275 85 03 
Postfach                         Fax      : ++41 01-275 80 34
CH-8010 Zuerich
----------------------------------------------------------------------



More information about the Gcc-bugs mailing list