"../.././gcc/c-common.c", line 2259: invalid token: short_fract_type_no...

kamaraju kusumanchi raju.mailinglists@gmail.com
Tue Nov 11 22:47:00 GMT 2008


> That's a real bug: the declaration does not match the definition.
>
> gimple
> gimple_build_try (gimple_seq eval, gimple_seq cleanup,
>                  enum gimple_try_flags kind)
>
> gimple gimple_build_try (gimple_seq, gimple_seq, unsigned int);
>
> The header needs to be fixed to match.
>
> Andrew.
>

Thanks, Andrew! I got it fixed by using

> cat patch3.txt
--- gimple.h.orig       2008-11-11 17:09:55.882233000 -0500
+++ gimple.h    2008-11-11 17:10:41.853525000 -0500
@@ -796,7 +796,7 @@
                              VEC(tree,gc) *);
 gimple gimple_build_catch (tree, gimple_seq);
 gimple gimple_build_eh_filter (tree, gimple_seq);
-gimple gimple_build_try (gimple_seq, gimple_seq, unsigned int);
+gimple gimple_build_try (gimple_seq, gimple_seq, enum gimple_try_flags);
 gimple gimple_build_wce (gimple_seq);
 gimple gimple_build_resx (int);
 gimple gimple_build_switch (unsigned, tree, tree, ...);


But now the compilation stops at

cc -c  -g -DIN_GCC    -DHAVE_CONFIG_H -I. -I.
-I../../../unZipped/gcc-4.4-20081107/gcc
-I../../../unZipped/gcc-4.4-20081107/gcc/. -I../../..
/unZipped/gcc-4.4-20081107/gcc/../include -I./../intl
-I../../../unZipped/gcc-4.4-20081107/gcc/../libcpp/include
-I../../../unZipped/gcc-4.
4-20081107/gcc/../libdecnumber
-I../../../unZipped/gcc-4.4-20081107/gcc/../libdecnumber/dpd
-I../libdecnumber   -I/home/kkusuman/software/my
root/include ../../../unZipped/gcc-4.4-20081107/gcc/mcf.c -o mcf.o
"../../../unZipped/gcc-4.4-20081107/gcc/mcf.c", line 215: undefined
symbol: __LONG_LONG_MAX__
"../../../unZipped/gcc-4.4-20081107/gcc/mcf.c", line 223: undefined
symbol: __LONG_LONG_MAX__
"../../../unZipped/gcc-4.4-20081107/gcc/mcf.c", line 534: undefined
symbol: __LONG_LONG_MAX__
"../../../unZipped/gcc-4.4-20081107/gcc/mcf.c", line 809: undefined
symbol: __LONG_LONG_MAX__
"../../../unZipped/gcc-4.4-20081107/gcc/mcf.c", line 826: undefined
symbol: __LONG_LONG_MAX__
"../../../unZipped/gcc-4.4-20081107/gcc/mcf.c", line 849: undefined
symbol: __LONG_LONG_MAX__
"../../../unZipped/gcc-4.4-20081107/gcc/mcf.c", line 889: undefined
symbol: __LONG_LONG_MAX__
"../../../unZipped/gcc-4.4-20081107/gcc/mcf.c", line 1059: undefined
symbol: __LONG_LONG_MAX__
cc: acomp failed for ../../../unZipped/gcc-4.4-20081107/gcc/mcf.c
make[3]: *** [mcf.o] Error 2
make[3]: Leaving directory
`/home/kkusuman/software/compileHere/gcc-4.4-20081107/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory
`/home/kkusuman/software/compileHere/gcc-4.4-20081107'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory
`/home/kkusuman/software/compileHere/gcc-4.4-20081107'
make: *** [all] Error 2


Any ideas on overcoming this?

As an aside, may I ask if the Solaris port is being actively managed?
I am surprised at encountering so many problems in compiling gcc. I am
not complaining, just surprised!

thanks
raju



More information about the Gcc-help mailing list