This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
compiling egcs-1.1.2
- From: Ben Sewell <Ben dot Sewell at ricardo dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 28 Oct 2004 16:02:58 +0100
- Subject: compiling egcs-1.1.2
Hi,
I've been attempting to compile egcs v1.1.2. I suspect all the version
information you need to know is:
============ version and configure info =============
~/egcs/egcs-1.1.2-obj % gcc --version
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~/egcs/egcs-1.1.2-obj % ../egcs-1.1.2/configure
--prefix=../egcs-1.1.2-install --enable-shared
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /users/bob/bjs2/egcs/egcs-1.1.2-obj using "mh-frag"
and "mt-frag"
./config.status is unchanged
Links are now set up to build a native compiler for i686-pc-linux-gnu
=========== problem ===================
When I run "make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap", as advised by
http://gcc.gnu.org/install/build.html, I get the error:
/[host etc]/egcs/egcs-1.1.2-obj/gcc/xgcc -B/[host
etc]/egcs/egcs-1.1.2-obj/gcc/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE
-fno-implicit-templates -I. -I../../../egcs-1.1.2/libio -nostdinc++
-D_IO_MTSAFE_IO -fpic ../../../egcs-1.1.2/libio/indstream.cc -o
pic/indstream.o
../../../egcs-1.1.2/libio/indstream.cc: In method `struct streampos
indirectbuf::seekoff(streamoff, enum _seek_dir, int = 3)':
../../../egcs-1.1.2/libio/indstream.cc:82: `struct streampos' used where a
`int' was expected
../../../egcs-1.1.2/libio/indstream.cc:85: `struct streampos' used where a
`int' was expected
../../../egcs-1.1.2/libio/indstream.cc:87: `struct streampos' used where a
`int' was expected
../../../egcs-1.1.2/libio/indstream.cc:89: conversion from `int' to
non-scalar type `streampos' requested
../../../egcs-1.1.2/libio/indstream.cc: In method `struct streampos
indirectbuf::seekpos(struct streampos, int = 3)':
../../../egcs-1.1.2/libio/indstream.cc:99: `struct streampos' used where a
`int' was expected
../../../egcs-1.1.2/libio/indstream.cc:102: `struct streampos' used where a
`int' was expected
../../../egcs-1.1.2/libio/indstream.cc:104: `struct streampos' used where a
`int' was expected
../../../egcs-1.1.2/libio/indstream.cc:106: conversion from `int' to
non-scalar type `streampos' requested
Any ideas on why I get this error?
Cheers,
Ben Sewell