Problem Compiling gcc 2.95.2
Tom Browder
tom2@fwb.asi.srs.com
Thu Nov 2 07:52:00 GMT 2000
I tried to recapture gcc 2.95.2 on my new Red Hat 7.0 i386 distribution by using the
kgcc compiler which reports the following using the "--version" option: egcs-2.91.66
host: Linux 2.2.16-22 i686 unknown
configuration command: ../gcc-2.95.2/configure --enable-languages=c++,f77
after configuration, I changed the following lines in "Makefile":
#CC = gcc
CC = kgcc
...
#CXX = c++
CXX = kgcc -x c++
then attempting to build gcc 2.95.2 resulted in the following error messages:
/usr/local/src/gcc_obj/gcc/xgcc -B/usr/local/src/gcc_obj/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -c -g -O2 -fvtable-thunks -D_GNU_S
OURCE -fno-implicit-templates -I. -I../../../gcc-2.95.2/libio -nostdinc++ -D_IO_MTSAFE_IO ../../../gcc-2.95.2/libio/indstream.cc
../../../gcc-2.95.2/libio/indstream.cc: In method `struct streampos indirectbuf::seekoff(long long int, ios::seek_dir, int = 3)':
../../../gcc-2.95.2/libio/indstream.cc:82: `struct streampos' used where a `int' was expected
../../../gcc-2.95.2/libio/indstream.cc:85: `struct streampos' used where a `int' was expected
../../../gcc-2.95.2/libio/indstream.cc:87: `struct streampos' used where a `int' was expected
../../../gcc-2.95.2/libio/indstream.cc:89: conversion from `int' to non-scalar type `streampos' requested
../../../gcc-2.95.2/libio/indstream.cc: In method `struct streampos indirectbuf::seekpos(_G_fpos64_t, int =
3)':../../../gcc-2.95.2/libio/indstream.cc:99: `struct streampos' used where a `int' was expected
../../../gcc-2.95.2/libio/indstream.cc:102: `struct streampos' used where a `int' was expected
../../../gcc-2.95.2/libio/indstream.cc:104: `struct streampos' used where a `int' was expected
../../../gcc-2.95.2/libio/indstream.cc:106: conversion from `int' to non-scalar type `streampos' requested
make[2]: *** [indstream.o] Error 1
make[2]: Leaving directory `/usr/local/src/gcc_obj/i686-pc-linux-gnu/libio'
make[1]: *** [all-target-libio] Error 2
make[1]: Leaving directory `/usr/local/src/gcc_obj'
make: *** [bootstrap] Error 2
Thanks.
Tom Browder
More information about the Gcc-bugs
mailing list