egcs-1.1b internal error building std/fcomplex.h

duane voth duanev@austin.ibm.com
Tue Nov 17 16:36:00 GMT 1998


My environment is an AIX 4.3.1 kernel running on a single 32bit PowerPC
604 cpu.  The source I m building is the egcs1.1b release found on the
Cygnus site on Nov. 12 this year.

I have no need for the aix64 version of egcs but I could not see how
to turn it off.

...
/u/src/egcs-1.1b/gcc/xgcc -B/u/src/egcs-1.1b/gcc/ -c -g -O2 -fno-implicit-templates  -maix64 -I. -I./stl -I../libio -I./../libio -nostdinc++  -DF `for N in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC NECF NEFC ABS ARG POLAR CONJ NORM COS COSH EXP LOG POWCC POWCF POWCI POWFC SIN SINH SQRT; do echo " -D${N}"; done` \
  ./cinst.cc -o fcomplex.o
std/fcomplex.h: In function `class complex<float> operator /(const class complex<float> &, float)':
In file included from std/complext.h:396,
                 from complex:7,
                 from std/complext.cc:28,
                 from ./cinst.cc:29:
std/fcomplex.h:72: Internal compiler error.
std/fcomplex.h:72: Please submit a full bug report to `egcs-bugs@cygnus.com'.
gmake[3]: *** [bigstmp-complx] Error 1
gmake[3]: Leaving directory `/u/src/egcs-1.1b/powerpc-ibm-aix4.3.0.0/aix64/libstdc++'
gmake[2]: *** [multi-do] Error 1
gmake[2]: Leaving directory `/u/src/egcs-1.1b/powerpc-ibm-aix4.3.0.0/libstdc++'
gmake[1]: *** [multi-all] Error 2
gmake[1]: Leaving directory `/u/src/egcs-1.1b/powerpc-ibm-aix4.3.0.0/libstdc++'
gmake: *** [all-target-libstdc++] Error 2
# 

egcs-1.1b/libstdc++/std/fcomplex.h:72:

	extern "C++" {
	class complex<float>
	{
	public:
	  complex (float r = 0, float i = 0): re (r), im (i) { }
	....
	#ifndef __STRICT_ANSI__
	  friend inline complex operator + (const complex& x, float y)
	    { return operator+<> (x, y); }
	....
	  friend inline complex operator / (const complex& x, float y)
----->	    { return operator/<> (x, y); }
	  friend inline complex operator / (float x, const complex& y)
	    { return operator/<> (x, y); }
	....
	#endif /* __STRICT_ANSI__ */
	};
	} // extern "C++"

	#endif


I have downloaded and looked at the "third release" of the libstdc++
library.  However it appears to build standalone; it does not seem
"drop" into the egcs tree.  I do not need libstdc++ immdeiately either,
unless it is required for completion of the egcs g++ compiler.  I'm
looking to get a working 32bit g++ compiler for AIX 4.3.

Duane Voth
duanev@austin.ibm.com



More information about the Gcc-bugs mailing list