Mail Archives: pgcc/1998/03/05/09:53:22
Hi,
I'm using the egcs-release 1.01 patched to pgcc. Patching, compilation an=
d =
installation was smooth and easy. I have since then compiled a number of =
(partly large) programs and the kernel with pgcc and everything runs fine=
, so =
I assume my installation is ok.
Now I encountered an 'Internal compiler error' while compiling 'Moonlight=
=
Creator' yesterday. I'll try to give you as much information as possible =
about this. Please, if you think this is an error related to egcs, forwar=
d =
this bug-report to the egcs-developers.
Here are a few things you might want to know about my system:
Linux 2.0.33
Redhat 5.0
glibc-2.0.5c
gcc version pgcc-2.90.23 980102 (egcs-1.0.1 release)
=
Here's what I was trying to do when the compiler died:
=
Compiled 'Moonlight Creator v0.4.1', =
this is available from http://www.cybersociety.com/moonlight/
This is the command-line and error-message:
make[1]: Entering directory `/usr/src/ml-0.4.1/src/tools'
(tools) g++ -c OString.C -O2 -Wall -DNDEBUG -DNWARN -fomit-frame-pointer =
-fexpensive-optimizations -ffast-math -funroll-loops -malign-loops=3D2 =
-malign-jumps=3D2 -malign-functions=3D2 -D_REENTRANT -I.. -o =
obj/i586-pc-linux-gnu/opt/OString.o
OString.C: In method `class OString & OString::operator +=3D(char)':
OString.C:223: Internal compiler error.
OString.C:223: Please submit a full bug report to `egcs-bugs AT cygnus DOT com'.=
make[1]: *** [obj/i586-pc-linux-gnu/opt/OString.o] Error 1
make[1]: Leaving directory `/usr/src/ml-0.4.1/src/tools'
make: *** [libs] Error 1
I'm including the offending part of the source-code here, so you know wha=
t =
the compiler was trying to do, when crashing:
OString& OString::operator +=3D ( char ch )
{
assert( assigned() );
assert( ch !=3D 0 );
realloc( theLength + 5 ); // <-- this is line 223 //
theString[theLength++]=3D ch;
theString[theLength]=3D 0;
return *this;
}
Sorry, I didn't succeed in building a preprocessed version of that file, =
like =
it is described on your web-page.
I hope, I've given you all the info you need to track this down. If you n=
eed =
any more, feel free to email me and I'll see what I can do. Please CC any=
=
email on the list regarding this bug-report to my address. I'm looking =
forward to hear from you.
Salut, Sven (neumanns AT uni-duesseldorf DOT de)
- Raw text -