This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: Bug#43478: GCC internal compiler error while compiling current qt1g package


The preprocessed file that causes internal compiler error it is the
attachment. It is src/widgets/menubar.cpp from qt-1.44 distribution.

It is interesting that if I move the headers to another path (but don't
change them!), the error disappears.


root@nyws:~> g++ -v -c -O2 -pipe -fno-strength-reduce -fPIC menubar.ii
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.1/specs
gcc version 2.95.1 19990809 (prerelease)
 /usr/lib/gcc-lib/i386-linux/2.95.1/cc1plus menubar.ii -quiet -O2
-version -fno-strength-reduce -fPIC -o - |
 as -V -Qy -o menubar.o -
GNU C++ version 2.95.1 19990809 (prerelease) (i386-linux) compiled by
GNU C version 2.95.1 19990809 (prerelease).
GNU assembler version 2.9.1 (i486-linux), using BFD version 2.9.1.0.25
widgets/qmenubar.cpp: In method `int QMenuBar::calculateRects(int =
-1)':
widgets/qmenubar.cpp:541: Internal compiler error.
widgets/qmenubar.cpp:541: Please submit a full bug report.


> Please read /usr/doc/gcc/README.Bugs and submit a full bug report
> (including the preprocessed output of the file which fails to
> compile). Thank you for your help.
> 
> Nikita V. Youshchenko writes:
> > Package: g++
> > Version: 2.95.1-0pre1
> > Architecture: x86
> >
> > This new gcc fails to compile current qt1g package.
> > Internal compiler error.
> >
> > This may be workarounded by disabling optimizations, but it is surely
> > a bug.
> >
> > Recompilatoion of qt is necessary because now g++ uses a different
> > version of libstdc++, and without qt recompilation binaries compiled by
> > new gcc and linked with old qt link dynamically with BOTH libstdc++ 2.9
> > and linstdc++ 2.10, causing random segfaults :-(.

menubar.ii.gz


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