g++: Internal compiler error. (egcs-1.0.2 and 1.0.3a with -O2)
Wolfgang Reimer
reimer@e-technik.tu-ilmenau.de
Fri Jul 10 05:31:00 GMT 1998
platform: RedHat Linux 5.1 (x86) on a PentiumPro box
uname -a: Linux schwan 2.1.97 #5 SMP Thu Jul 2 02:19:15 CEST 1998 i686
unknown
compiler: egcs-1.0.2 (as shipped with RH5.1) and
egcs-1.0.3a (as egcs*-1.0.3a-1.i386.rpm packages from
ftp.redhat.com)
c++ file: DEWiNeS_Tcl_Animation.cc from Ptolemy0.7.1p1
(for Ptolemy project see http://ptolemy.eecs.berkeley.edu/ )
How to reproduce the error: Compiling above mentioned c++ file
(available as preprocessed and gzipped file
ftp://schwan.e-technik.tu-ilmenau.de/pub/egcs_bug/DEWiNeS_Tcl_Animation.ii.gz ,
size 46028 bytes) by using
ftp://schwan.e-technik.tu-ilmenau.de/pub/egcs_bug/makefile.gz (size 274
bytes) will display:
> g++ --verbose -O2 -c DEWiNeS_Tcl_Animation.ii -o DEWiNeS_Tcl_Animation.o
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.27/specs
> gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.27/cc1plus DEWiNeS_Tcl_Animation.ii -quiet -O2 -version -o /tmp/cca00474.s
> GNU C++ version egcs-2.90.27 980315 (egcs-1.0.2 release) (i386-redhat-linux) compiled by GNU C version egcs-2.90.27 980315 (egcs-1.0.2 release).
> DEWiNeS_Tcl_Animation.ii: In method `class InfString TclStarIfcWiNeS::getInputValue_New()':
> DEWiNeS_Tcl_Animation.ii:8392: Internal compiler error.
> DEWiNeS_Tcl_Animation.ii:8392: Please submit a full bug report to `egcs-bugs@cygnus.com'.
> make: *** [DEWiNeS_Tcl_Animation.o] Error 1
The same will happen with egcs-1.0.3a (the latest release):
> g++ --verbose -O2 -c DEWiNeS_Tcl_Animation.ii -o DEWiNeS_Tcl_Animation.o
> Reading specs from /usr/lib/gcc-lib/i586-linux/egcs-2.90.29/specs
> gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
> /usr/lib/gcc-lib/i586-linux/egcs-2.90.29/cc1plus DEWiNeS_Tcl_Animation.ii -quiet -O2 -version -o /tmp/cca00873.s
> GNU C++ version egcs-2.90.29 980515 (egcs-1.0.3 release) (i586-linux) compiled by GNU C version egcs-2.90.29 980515 (egcs-1.0.3 release).
> DEWiNeS_Tcl_Animation.ii: In method `class InfString TclStarIfcWiNeS::getInputValue_New()':
> DEWiNeS_Tcl_Animation.ii:8392: Internal compiler error.
> DEWiNeS_Tcl_Animation.ii:8392: Please submit a full bug report to `egcs-bugs@cygnus.com'.
> make: *** [DEWiNeS_Tcl_Animation.o] Error 1
However, both compiler versions will succeed if compiling with -O1 or
-O0.
Regards,
Wolfgang.
--
Wolfgang Reimer (Dr.-Ing.)
T U I -- Technical University of Ilmenau, GERMANY, Thuringia
Address: TU Ilmenau, FEI/IKM, PF 100565, 98684 Ilmenau, GERMANY
http://ikmcip1.e-technik.tu-ilmenau.de Phone: +49-3677-69-2619
mailto:reimer@e-technik.tu-ilmenau.de Fax : +49-3677-69-1195
More information about the Gcc-bugs
mailing list