This is the mail archive of the sid@sources.redhat.com mailing list for the SID project.


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

Re: Build error while compiling SID


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


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