Wt 'Hello World' not running under Qt Creator, due to internal compiler error
Added by Richel Bilderbeek over 14 years ago
Dear fellow programmers,
After a copy-paste from the Wt 'Hello World' example (from http://www.webtoolkit.eu/wt#/src/hello ) to Qt Creator 2.0.0 under Ubuntu 10.10 (maverick) I was confronted with the following error (*):
In member function 'boost::signals::connection Wt::EventSignal::connect(T*, void (V::*)()) [with T = HelloApplication, V = HelloApplication, E = Wt::WMouseEvent]':
cc1plus: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make: * [main.o] Error 1
Googling this error yielded nothing and I am a bit cautious at submitting an error report. Does anybody have an idea?
Thanks in advance, Richel Bilderbeek
(*) This project and more project details can be found at my page describing this error ( http://richelbilderbeek.nl/CppCompileErrorCc1plusInternalCompilerErrorSegmentationFault.htm ).
Replies (3)
RE: Wt 'Hello World' not running under Qt Creator, due to internal compiler error - Added by Wim Dumon over 14 years ago
Richel,
There is/was a bug in ubuntu's patches to gcc causing the compiler to crash on Wt:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.4/+bug/647597
Unfortunately, the latest Wt release does not compile well on Ubuntu.
You have two options:
- If you use the git version of Wt, this buggy compiler will be detected and a work-around is used.
- Upgrade your compiler
BR,
Wim.
RE: Wt 'Hello World' not running under Qt Creator, due to internal compiler error - Added by Richel Bilderbeek over 14 years ago
Wim,
Thanks for your reply.
I'll settle for option 3: wait until the update with the patch is installed.
BR, Richel
RE: Wt 'Hello World' not running under Qt Creator, due to internal compiler error - Added by Wim Dumon over 14 years ago
I just looked it up for you: the workaround for wt is: add -DNDEBUG to the compiler flags.
BR,
Wim.