This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems compiling GCC-2.95.2


Hi there.  I have the following system:

Linux kernel 2.2.13
Glibc 2.1.2
EGCS-1.1.2
Binutils 2.9.1.0.25

I'm trying to compile GCC-2.95.2 using --prefix=/usr --enable-shared.  I
get the following output:

<SNIP>
Bootstrapping the compiler
make[1]: Entering directory `/usr/local/src/gcc-2.95.2/objdir/gcc'
make CC="gcc" libdir=/usr/lib LANGUAGES="c "
make[2]: Entering directory `/usr/local/src/gcc-2.95.2/objdir/gcc'
(cd intl && make all)
make[3]: Entering directory `/usr/local/src/gcc-2.95.2/objdir/gcc/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/src/gcc-2.95.2/objdir/gcc/intl'
gcc -c  -DIN_GCC     -g  -DHAVE_CONFIG_H    -I. -I../../gcc -I../../gcc/config -I../../gcc/../include ../../gcc/cp/g++spec.c
In file included from /usr/include/stdio.h:57,
                 from ../../gcc/system.h:32,
                 from ../../gcc/cp/g++spec.c:22:
/usr/include/libio.h:363: conflicting types for `__restrict'
/usr/include/libio.h:363: previous declaration of `__restrict'
/usr/include/libio.h:364: conflicting types for `__restrict'
/usr/include/libio.h:363: previous declaration of `__restrict'
/usr/include/libio.h:365: conflicting types for `__restrict'
/usr/include/libio.h:365: previous declaration of `__restrict'
In file included from ../../gcc/system.h:32,
                 from ../../gcc/cp/g++spec.c:22:
/usr/include/stdio.h:178: parse error before `__filename'
/usr/include/stdio.h:181: parse error before `__filename'
/usr/include/stdio.h:228: parse error before `__stream'
/usr/include/stdio.h:232: parse error before `__stream'
/usr/include/stdio.h:238: parse error before `__stream'
/usr/include/stdio.h:247: parse error before `__stream'
/usr/include/stdio.h:250: parse error before `__format'
/usr/include/stdio.h:252: parse error before `__s'
/usr/include/stdio.h:256: parse error before `__s'
/usr/include/stdio.h:260: parse error before `__format'
/usr/include/stdio.h:263: parse error before `__s'
/usr/include/stdio.h:269: parse error before `__s'
/usr/include/stdio.h:273: parse error before `__s'
/usr/include/stdio.h:277: parse error before `__s'
/usr/include/stdio.h:306: parse error before `__stream'
/usr/include/stdio.h:309: parse error before `__format'
/usr/include/stdio.h:311: parse error before `__s'
/usr/include/stdio.h:389: parse error before `__s'
/usr/include/stdio.h:424: parse error before `__s'
/usr/include/stdio.h:442: parse error before `__ptr'
/usr/include/stdio.h:445: parse error before `__ptr'
/usr/include/stdio.h:450: parse error before `__ptr'
/usr/include/stdio.h:452: parse error before `__ptr'
/usr/include/stdio.h:495: parse error before `__stream'
In file included from ../../gcc/system.h:132,
                 from ../../gcc/cp/g++spec.c:22:
/usr/include/string.h:37: parse error before `__dest'
/usr/include/string.h:71: parse error before `__dest'
/usr/include/string.h:74: parse error before `__dest'
/usr/include/string.h:78: parse error before `__dest'
/usr/include/string.h:81: parse error before `__dest'
/usr/include/string.h:92: parse error before `__dest'
/usr/include/string.h:176: parse error before `__s'
/usr/include/string.h:181: parse error before `__s'
/usr/include/string.h:185: parse error before `__s'
/usr/include/string.h:282: parse error before `__stringp'
In file included from ../../gcc/system.h:145,
                 from ../../gcc/cp/g++spec.c:22:
/usr/include/stdlib.h:96: parse error before `__nptr'
/usr/include/stdlib.h:109: parse error before `__nptr'
/usr/include/stdlib.h:112: parse error before `__nptr'
/usr/include/stdlib.h:119: parse error before `__nptr'
/usr/include/stdlib.h:123: parse error before `__nptr'
/usr/include/stdlib.h:133: parse error before `__nptr'
/usr/include/stdlib.h:137: parse error before `__nptr'
/usr/include/stdlib.h:196: parse error before `__nptr'
/usr/include/stdlib.h:199: parse error before `__nptr'
/usr/include/stdlib.h:202: parse error before `__nptr'
/usr/include/stdlib.h:206: parse error before `__nptr'
/usr/include/stdlib.h:213: parse error before `__nptr'
/usr/include/stdlib.h:221: parse error before `__nptr'
/usr/include/stdlib.h:229: parse error before `__nptr'
/usr/include/stdlib.h:379: parse error before `__buf'
/usr/include/stdlib.h:385: parse error before `__statebuf'
/usr/include/stdlib.h:389: parse error before `__statebuf'
/usr/include/stdlib.h:438: parse error before `__buffer'
/usr/include/stdlib.h:441: parse error before `__buffer'
/usr/include/stdlib.h:445: parse error before `__buffer'
/usr/include/stdlib.h:448: parse error before `__buffer'
/usr/include/stdlib.h:452: parse error before `__buffer'
/usr/include/stdlib.h:455: parse error before `__buffer'
In file included from ../../gcc/system.h:145,
                 from ../../gcc/cp/g++spec.c:22:
/usr/include/stdlib.h:595: parse error before `__name'
/usr/include/stdlib.h:651: parse error before `__decpt'
/usr/include/stdlib.h:657: parse error before `__decpt'
/usr/include/stdlib.h:667: parse error before `__decpt'
/usr/include/stdlib.h:669: parse error before `__decpt'
/usr/include/stdlib.h:676: parse error before `__decpt'
/usr/include/stdlib.h:679: parse error before `__decpt'
/usr/include/stdlib.h:684: parse error before `__decpt'
/usr/include/stdlib.h:687: parse error before `__decpt'
/usr/include/stdlib.h:698: parse error before `__pwc'
/usr/include/stdlib.h:706: parse error before `__pwcs'
/usr/include/stdlib.h:709: parse error before `__s'
In file included from /usr/include/sys/time.h:24,
                 from ../../gcc/system.h:189,
                 from ../../gcc/cp/g++spec.c:22:
/usr/include/time.h:135: parse error before `__s'
/usr/include/time.h:158: parse error before `__timer'
/usr/include/time.h:160: parse error before `__timer'
/usr/include/time.h:165: parse error before `__timer'
/usr/include/time.h:181: parse error before `__tp'
/usr/include/time.h:185: parse error before `__timer'
make[2]: *** [g++spec.o] Error 1
make[2]: Leaving directory `/usr/local/src/gcc-2.95.2/objdir/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/usr/local/src/gcc-2.95.2/objdir/gcc'
make: *** [bootstrap] Error 2
<SNIP>


I've looked in the header files involved, and nothing seems out of the
ordinary.  I found another occurance of this problem in last month's
archives, but no answers were ever posted.  I've tried compiling 2.95 and
2.95.1 and both of these crash with the same messages.  Recompiling
egcs-1.1.2 works fine, and installing a fresh copy didn't solve this
problem.

Any help would be appreciated!


Chris Platt (rufy@home.com)

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS$ d- s+:+ a26 C++++ ULC++++ P++ L+++ E W+ N+ o K- w O- M-- V-- PS+ PE+
Y+ PGP++ t+ 5 X+ R tv+ b++ DI+++ D++ G++ e++ h---- r+++ y++++*
------END GEEK CODE BLOCK------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]