Ural Khassanov wrote:
>
> I'm getting stable gcc (g++) internal segfault when trying to compile latest
> koffice-1.1-0.beta3.src.rpm on my LM 8.0 system.
> Compiler rpms version: gcc-2.96-0.48mdk (out of LM 8.0 box), also I tried
> recompiled gcc-0.56 from cooker and got the same effect.
> Libstdc++ is the same version as compiler.
> -------------
> details:
> [sv@sv SPECS]$ rpm -ba koffice.spec
> <long time in the making>
> make[6]: Entering directory
> `/usr/src/RPM/BUILD/koffice-1.1/filters/kspread/qpro/libqpro/src'
> [skipped]
> c++ -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I. -I./.. -I/usr/include
> -I/usr/lib/qt2/include -I/usr/X11R6/include -ansi -D_XOPEN_SOURCE=500
> -D_BSD_SOURCE -Wbad-function-cast -Wcast-align -Wundef -Wconversion
> -fno-builtin -Wnon-virtual-dtor -Wno-long-long -g -O2 -Wall -pedantic -W
> -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -O3 -fomit-frame-pointer
> -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-exceptions -fno-check-new
> -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST
> -Wp,-MD,.deps/libqpro_la.all_cc.pp -c libqpro_la.all_cc.cc -fPIC -DPIC -o
> .libs/libqpro_la.all_cc.o
> [skipped warnings]
> In file included from libqpro_la.all_cc.cc:3:
> record.cc: In method `QpRecUnknown::QpRecUnknown (short int, short int,
> QpIStream &)':
> record.cc:577: warning: unused parameter `QP_INT16 pType'
> record.cc: In method `QpIStream &QpIStream::operator>> (QP_INT64 &)':
> record.cc:26: Internal error: Segmentation fault.
> Please submit a full bug report.
> See <URL:https://qa.mandrakesoft.com/> for instructions.
> make[6]: *** [libqpro_la.all_cc.lo] Error 1
> make[6]: Leaving directory
> `/usr/src/RPM/BUILD/koffice-1.1/filters/kspread/qpro/libqpro/src'
> ---------------------
> And, the easy way to get this error:
> after first compilation failure:
> [sv@sv RPM]$ cd /usr/RPM/BUILD/koffice-1.1/filters/kspread/qpro/libqpro/src
> [sv@sv src]$ make
> <gcc bombs in record.cc>
> ------------------
> Compiler breaks on stream operations, '<<' opeartor. I'm trying to rearrange
> code, but no success so far.
FWIW, I get the same segfault when rebuilding the rpm on a stock 8.0 w/security
updates, XFree86-4.1.0:
In file included from /usr/include/bits/types.h:26,
from /usr/include/_G_config.h:9,
from /usr/include/libio.h:30,
from /usr/include/g++-3/streambuf.h:36,
from /usr/include/g++-3/iostream.h:31,
from formula.cc:3,
from libqpro_la.all_cc.cc:2:
/usr/include/features.h:175:30: warning: "_POSIX_C_SOURCE" is not defined
/usr/include/features.h:183:6: warning: "_POSIX_C_SOURCE" is not defined
/usr/include/features.h:187:6: warning: "_POSIX_C_SOURCE" is not defined
In file included from libqpro_la.all_cc.cc:3:
record.cc: In method `QpRecUnknown::QpRecUnknown (short int, short int,
QpIStream &)':
record.cc:577: warning: unused parameter `QP_INT16 pType'
In file included from libqpro_la.all_cc.cc:5:
stream.cc: In method `QpIStream &QpIStream::operator>> (QP_INT64 &)':
stream.cc:192: Internal error: Segmentation fault.