This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
Re: Build error while compiling SID
- To: Marc <marcm at easystreet dot com>
- Subject: Re: Build error while compiling SID
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Sat, 30 Dec 2000 08:26:33 -0500
- Cc: sid at sources dot redhat dot com
- References: <20001230012937.B6673@mentorg.com>
Hi -
On Sat, Dec 30, 2000 at 01:26:01AM -0800, Marc wrote:
: [...]
: I'm trying to build SID and I'm running into the following error (many times
: for different files):
:
: c++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../../include -I./../../include -g -O2 -c -fPIC -DPIC gprof.cxx -o .libs/gprof.lo
: ../../include/sidcomp.h: In method `::sidutil::basic_big_endian_cpu::~basic_big_endian_cpu()':
: ../../include/sidcomp.h:164: `::sid::component::~component()' is protected
: In file included from gprof.cxx:20:
: ../../include/sidcpuutil.h:498: within this context
: [...]
: Output from running "c++ -v":
: #409 [marcm@lunatic] /tmp/SID/src/sid > c++ -v
: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
:
: This is on a RH6.2 system. The sources are up-to-date as of late 12-29. Any
: thoughts what might be wrong?
We last tried egcs-1.1.2 very long ago. I believe this is just a small
compiler bug, but I'm pretty sure there were others. SID is pretty hard
on g++. Please consider upgrading to gcc-2.95.2 or Red Hat Linux 7's
gcc-2.96.
Putting a "public:" specifier before the sidcpuutil.h destructor
decls may allay this specific message with your compiler, in case
you still want to try to use it. You may need to turn optimization
down or off to get correct code.
- FChE
PGP signature