http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47723
Summary: internal compiler: Segmentation fault - gcc 4.5.2 Arch Linux Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: drankina...@suddenlinkmail.com Created attachment 23328 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23328 The complete kcontrol/kong build directory at time of segfault Guys, This is the first gcc bug I've ever filed so bare with me. The gcc -v information is: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/lto-wrapper Target: i686-pc-linux-gnu Configured with: /build/src/gcc-4.5-20110127/configure --prefix=/usr --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-gnu-unique-object --enable-lto --enable-plugin --enable-gold --with-plugin-ld=ld.gold --disable-multilib --disable-libstdcxx-pch --with-system-zlib --with-ppl --with-cloog --with-cloog-include=/usr/include/cloog-ppl --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info Thread model: posix gcc version 4.5.2 20110127 (prerelease) (GCC) The segfault was encountered building kdebase/kcontrol/konq from the Trinity svn tree on Arch Linux i686. The exact error was: [18%] Building CXX object kcontrol/konq/CMakeFiles/kcm_konq-module.dir/fontopts.cpp.o cd /home/david/tbld/kdebase/src/kcontrol/konq && /usr/bin/c++ -Dkcm_konq_module_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -march=i686 -mtune=generic -O2 -pipe -include tqt.h -fPIC -I/home/david/tbld/kdebase/src/kcontrol/konq -I/home/david/tbld/kdebase/src -I/home/david/tbld/kdebase/libkonq -I/opt/trinity/include -I/opt/qt/include -I/opt/qt/include/tqt -o CMakeFiles/kcm_konq-module.dir/fontopts.cpp.o -c /home/david/tbld/kdebase/kcontrol/konq/fontopts.cpp In file included from /home/david/tbld/kdebase/kcontrol/konq/fontopts.cpp:387:0: /home/david/tbld/kdebase/src/kcontrol/konq/fontopts.moc: In member function virtual void KonqFontOptions::load(bool): /home/david/tbld/kdebase/src/kcontrol/konq/fontopts.moc:136:93: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[2]: *** [kcontrol/konq/CMakeFiles/kcm_konq-module.dir/fontopts.cpp.o] Error 1 make[2]: Leaving directory `/home/david/tbld/kdebase/src' make[1]: *** [kcontrol/konq/CMakeFiles/kcm_konq-module.dir/all] Error 2 make[1]: Leaving directory `/home/david/tbld/kdebase/src' make: *** [all] Error 2 Aborting... 12:02 trinity:~/tbld/kdebase> I have created a tar.bz2 of the src/kcontrol/konq directory (which I hope is what you need) and I've attached it. The build arguments were: trinity_prefix="/opt/trinity" cd ${srcdir} cmake ../ \ -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DWITH_QT3=ON \ -DQTDIR=/opt/qt \ -DQT_LIBRARY_DIRS=/opt/qt/lib \ -DBUILD_ALL=ON make VERBOSE=1 Let me know what else you need and I'll be happy to send it. I have run the build a second time and it makes it past the point where it segfaulted, but crashes later on with an error that the Trinity developer cannot explain in a similar class inclusion setting. The second crash output is: [ 29%] Building CXX object kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/iccconfig.cpp.o cd /home/david/tbld/kdebase/src/kcontrol/iccconfig && /usr/bin/c++ -Dkcm_iccconfig_module_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -march=i686 -mtune=generic -O2 -pipe -Wall -include tqt.h -fPIC -I/home/david/tbld/kdebase/src/kcontrol/iccconfig -I/home/david/tbld/kdebase/src -I/opt/trinity/include -I/opt/qt/include -I/opt/qt/include/tqt -DKDE_CONFDIR=\"/opt/trinity/share/config\" -o CMakeFiles/kcm_iccconfig-module.dir/iccconfig.cpp.o -c /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp In file included from /opt/qt/include/tqt/tqimage.h:32:0, from /opt/trinity/include/kaboutdata.h:24, from /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:29: /opt/qt/include/qimage.h: In member function ‘bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’: /opt/qt/include/qimage.h:58:61: warning: suggest parentheses around ‘&&’ within ‘||’ /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function ‘void KICCConfig::renameProfile()’: /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:148:6: warning: unused variable ‘i’ /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:149:12: warning: unused variable ‘iccFileArrayNew’ /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function ‘QString KICCConfig::extractFileName(QString, QString)’: /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:255:1: warning: no return statement in function returning non-void /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function ‘void KICCConfig::load(bool)’: /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error: expected type-specifier /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error: cannot convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error: expected ‘,’ or ‘;’ /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function ‘virtual void KICCConfig::save()’: /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error: expected type-specifier /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error: cannot convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error: expected ‘,’ or ‘;’ make[2]: *** [kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/iccconfig.cpp.o] Error 1 make[2]: Leaving directory `/home/david/tbld/kdebase/src' make[1]: *** [kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/all] Error 2 make[1]: Leaving directory `/home/david/tbld/kdebase/src' make: *** [all] Error 2 Aborting... Let me know if you want to see any more of the iccconfig.cpp error information (src, etc..). The segfault is the most compelling error, but if you notice, both the segfault and the iccconfig error follow the load:(bool) calls. Thanks for any help you can provide and just let me know what else you want to see.