Summary: | [4.1/ICE] when building x11-libs/qt-4.3.2 using the -O2 flag | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gustav Schaffter <gustav.schaffter> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED CANTFIX | ||
Severity: | major | CC: | gustav.schaffter, Gustav_Schaffter |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
The prepared code
The build log Copied blah.ii Output from: g++ -O2 -march=athlon64 -pipe -c blah.ii |
Description
Gustav Schaffter
2007-11-25 20:11:00 UTC
Created attachment 136998 [details]
The prepared code
Created attachment 136999 [details]
The build log
I just tried to reproduce this in a stable chroot and I don't get an ICE with the attached preprocessed output. If you run gcc on the preprocessed output you attached (with the flags you specified), do you get an ICE? Does GCC ICE in the same spot every time? I'm attempting to compile qt with the flags you specified as well. Exactly the same spot. (I just tried it again.) The prepared source file will of course get a new filename every time. g++ -c -o unixmake2.o -O2 -march=athlon64 -pipe -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/src/corelib/arch/generic -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/src/corelib/global -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/src/script -DQT_NO_PCRE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT generators/unix/unixmake2.cpp generators/unix/unixmake2.cpp: In member function 'void UnixMakefileGenerator::writeMakeParts(QTextStream&)': generators/unix/unixmake2.cpp:947: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/x11-libs/qt-4.3.2/temp/ccLIiwU3.out file, please attach this to your bugreport. g++: Internal error: Segmentation fault (program as) Please submit a full bug report. embla ~ # mkdir bugzilla embla ~ # cd bugzilla/ embla bugzilla # gcc /var/tmp/portage/x11-libs/qt-4.3.2/temp/ccLIiwU3.out /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:/var/tmp/portage/x11-libs/qt-4.3.2/temp/ccLIiwU3.out: file format not recognized; treating as linker script /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:/var/tmp/portage/x11-libs/qt-4.3.2/temp/ccLIiwU3.out:1: syntax error collect2: ld returned 1 exit status embla bugzilla # embla bugzilla # cd /var/tmp/portage/x11-libs/qt-4.3.2/temp/ embla temp # ll total 725 -rw-r--r-- 1 root root 8227 Nov 27 20:09 build.log -rw------- 1 root root 558603 Nov 27 20:09 ccLIiwU3.out -rw-rw-r-- 1 root root 2432 Nov 27 20:08 eclass-debug.log -rw-rw-r-- 1 portage portage 163374 Nov 27 20:08 environment drwxrwxr-x 2 portage portage 48 Nov 27 20:09 logging embla temp # gcc ccLIiwU3.out /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:ccLIiwU3.out: file format not recognized; treating as linker script /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:ccLIiwU3.out:1: syntax error collect2: ld returned 1 exit status embla temp # embla temp # emerge --info Portage 2.1.3.19 (default-linux/amd64/2006.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9-embla x86_64) ================================================================= System uname: 2.6.22-gentoo-r9-embla x86_64 AMD Athlon(tm) 64 Processor 4000+ Timestamp of tree: Tue, 27 Nov 2007 04:00:08 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon64 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en en_US en_GB fr" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise" SYNC="rsync://gentoo-portage.yggdrasil.home/gentoo-portage" USE="X a52 aac aalib acpi alsa amd64 apache2 arts artswrappersuid asf avahi berkdb bidi bitmap-fonts bluetooth bzip2 cdda cddb cdparanoia cdr cli corba cracklib crypt css cups daap dbus divx dri dts dv dvb dvd dvdr dvdread eds emacs emboss encode fam fame fat ffmpeg firefox flac foomaticdb freetype gdbm gedit gif gimp gimpprint gmedia gnome gnutls gphoto2 gpm grammar gtk gtk2 hal hddtemp httpd iconv idea imlib ipod ipv6 isdnlog java jpeg kde keyring kqemu libcaca libnotify live lm_sensors logrotate lzo lzw lzw-tiff mad matroska mbox midi mikmod mjpeg mod mono mozbranding mozcalendar mozilla mozsvg mp3 mpeg mplayer mudflap musicbrainz ncurses new-login nls nptl nptlonly nsplugin nvidia nvidis ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qemu qt3 qt4 quicktime rar readline realmedia reflection reiserfs rtsp scanner sdl session shout skins slang smp speex spell spl ssl stream subtitles tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb v4l2 vcd vlm vorbis wma wmp wxwindows xanim xine xinerama xml xorg xosd xpm xv xvid xvmc zlib" ALSA_CARDS="intel8x0 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB fr" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS embla temp # Please attach the new preprocessed file as well please. Try doing this before sending that though: cp preprocessed_file_name blah.ii g++ -O2 -march=athlon64 -pipe -c blah.ii Thanks g++ -c -o unixmake2.o -O2 -march=athlon64 -pipe -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/src/corelib/arch/generic -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/src/corelib/global -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/src/script -DQT_NO_PCRE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT generators/unix/unixmake2.cpp generators/unix/unixmake2.cpp: In member function 'void UnixMakefileGenerator::writeMakeParts(QTextStream&)': generators/unix/unixmake2.cpp:947: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/x11-libs/qt-4.3.2/temp/ccgFNbse.out file, please attach this to your bugreport. gmake: *** [unixmake2.o] Error 1 * * ERROR: x11-libs/qt-4.3.2 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * qt-4.3.2.ebuild, line 227: Called die * The specific snippet of code: * ./configure ${myconf} || die * The die message: * (no error message) * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-libs/qt-4.3.2/temp/build.log'. * # Yet another file name: ccgFNbse.out Sorry. /var/tmp was cleaned inbetween. embla portage # cd /var/tmp/portage/x11-libs/qt-4.3.2/temp/ embla temp # ll total 721 -rw-r--r-- 1 root root 8085 Nov 27 22:10 build.log -rw------- 1 root root 558603 Nov 27 22:10 ccgFNbse.out -rw-rw-r-- 1 root root 2432 Nov 27 22:09 eclass-debug.log -rw-rw-r-- 1 portage portage 163394 Nov 27 22:09 environment drwxrwxr-x 2 portage portage 48 Nov 27 22:10 logging embla temp # cp ccgFNbse.out blah.ii embla temp # ll total 1269 -rw------- 1 root root 558603 Nov 27 22:11 blah.ii -rw-r--r-- 1 root root 8085 Nov 27 22:10 build.log -rw------- 1 root root 558603 Nov 27 22:10 ccgFNbse.out -rw-rw-r-- 1 root root 2432 Nov 27 22:09 eclass-debug.log -rw-rw-r-- 1 portage portage 163394 Nov 27 22:09 environment drwxrwxr-x 2 portage portage 48 Nov 27 22:10 logging embla temp # g++ -O2 -march=athlon64 -pipe -c blah.ii generators/unix/unixmake2.cpp: In member function 'void UnixMakefileGenerator::writeMakeParts(QTextStream&)': generators/unix/unixmake2.cpp:947: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /tmp/ccCAgWH2.out file, please attach this to your bugreport. embla temp # Will attach both ccgFNbse.out and the newly generated /tmp/ccCAgWH2.out Created attachment 137161 [details]
Copied blah.ii
Created attachment 137162 [details]
Output from: g++ -O2 -march=athlon64 -pipe -c blah.ii
unable to reproduce with any of those files posted are you removing your portage tmpdir in between tries? I think this is more of a local issue than a widespread one. We've had lots of ICEs in qt throughout the years, but they've pretty much always ended up being isolated scenarios. "are you removing your portage tmpdir in between tries?" In Comment #6 the /var/tmp directory was cleaned between trials. "I think this is more of a local issue than a widespread one." Maybe. Am I not supposed to provide bug reports if there is anything that would make me think that it could be local? (Trying to adhere to best practices here.) "We've had lots of ICEs in qt throughout the years, but they've pretty much always ended up being isolated scenarios." I'm probably a pain somewhere, but I believe that a piece of software (g++) should not be allowed to _Segmentation fault_ due to a combination of data input. In this case '-O2 -march=athlon64 -pipe -c blah.ii'. I wouldn't report this if g++ said that it couldn't compile the file under certain circumstances. But I do report that it _SegFaults_, which IMHO no core system component should be allowed to do. you cant work around crappy hardware in software @SpanKY Lacking more precision, I guess "crappy hardware" refers to AMD64. A couple of days ago, a colleague of mine told me that he's having the very same problem in his AMD64 setup. I told him to sign up here, but he didn't want to risk getting yelled at for adding a "Me too" entry. Anyway, I will close this report as hardware related, CANTFIX. "Don't use Linux/Gentoo/gcc under AMD64." Sorry for all the mess I've apparently created. I'll be more careful in the future. no one said amd64 sucks. i run amd64 as my main machines and they work fine. i was pointing out your misinterpretation of Caleb's comments. (In reply to comment #14) > no one said amd64 sucks. i run amd64 as my main machines and they work fine. > i was pointing out your misinterpretation of Caleb's comments. > I'm actually having the same problems myself with this. My solution so far has been to mask qt-4.3.2 and above, I'm sure this will only work for so long. It's nice to know that I could probably remove the -O2 CFLAG. Is there something else I can look at to try to figure out what is going wrong? My computer errors in the same exact place. |