Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357287 (PR43290) - [4.4/ICE] dwarf2out_frame_debug_expr, at dwarf2out.c with -mavx
Summary: [4.4/ICE] dwarf2out_frame_debug_expr, at dwarf2out.c with -mavx
Status: RESOLVED FIXED
Alias: PR43290
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR43290
Whiteboard:
Keywords:
: 360927 368111 373945 375471 378455 379339 393017 407013 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-03 23:24 UTC by A. Clark
Modified: 2014-01-24 04:14 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log.bz2,125.54 KB, application/x-bzip)
2011-03-03 23:28 UTC, A. Clark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description A. Clark 2011-03-03 23:24:45 UTC
Can't build gcc 4.4.5 here - fairly recent install and things are mostly stable in my setup.

libtool: compile:  /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include/x86_64-pc-linux-gnu -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -march=native -O2 -pipe -D_GNU_SOURCE -m32 -std=gnu++0x -c /var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/libstdc++-v3/src/fstream-inst.cc  -fPIC -DPIC -o .libs/fstream-inst.o
In file included from /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include/fstream:915,
                 from /var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/libstdc++-v3/src/fstream-inst.cc:30:
/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include/bits/fstream.tcc: In member function ‘typename std::basic_filebuf<_CharT, _Traits>::pos_type std::basic_filebuf<_CharT, _Traits>::seekpos(typename _Traits::pos_type, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]’:
/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include/bits/fstream.tcc:749: internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2out.c:2292
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
{standard input}: Assembler messages:
{standard input}:8510: Error: open CFI at the end of file; missing .cfi_endproc directive
make[8]: *** [fstream-inst.lo] Error 1


My emerge --info:

Portage 2.1.9.25 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-1.12.14
Timestamp of tree: Thu, 03 Mar 2011 10:30:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL AdobeFlash-10.1 googleearth"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com http:/ftp.ucsb.edu/pub/mirrors/linux/gentoo http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.isurf.ca/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran frei0r gdbm gdu gif gimp gtk hal iconv ieee1394 ipv6 jpeg kde lcms ldap libnotify live mad melt mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline rtsp sdl semantic-desktop session spell sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype udev unicode usb vdpau vorbis vpx x264 xcb xine xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

adam@throbber ~ $ clera
bash: clera: command not found
adam@throbber ~ $ su
Password: 
throbber adam # clear
throbber adam # emerge --info
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-1.12.14
Timestamp of tree: Thu, 03 Mar 2011 10:30:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL AdobeFlash-10.1 googleearth"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com http:/ftp.ucsb.edu/pub/mirrors/linux/gentoo http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.isurf.ca/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran frei0r gdbm gdu gif gimp gtk hal iconv ieee1394 ipv6 jpeg kde lcms ldap libnotify live mad melt mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline rtsp sdl semantic-desktop session spell sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype udev unicode usb vdpau vorbis vpx x264 xcb xine xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always

Steps to Reproduce:
1. emerge -uDN world or emerge gcc
2. 
3.
Comment 1 A. Clark 2011-03-03 23:28:16 UTC
Created attachment 264633 [details]
Build log
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2011-03-04 01:13:10 UTC
run `echo "" | gcc -march=native -v -E - 2>&1 | grep cc1`
Comment 3 A. Clark 2011-03-04 03:43:45 UTC
echo "" | gcc -march=native -v -E - 2>&1 | grep cc1
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.4/cc1 -E -quiet -v - -D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -mtune=core2
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2011-03-05 03:14:43 UTC
This patch is going to be difficult to backport to 4.4 - the code has changed a lot.  Unless upstream gets back to us we might just have to tell you to use -mno-avx with 4.4 or switch to 4.5.  The latter would be hard to do on stable right now though.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2011-03-30 02:13:27 UTC
*** Bug 360927 has been marked as a duplicate of this bug. ***
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2011-06-21 02:54:04 UTC
*** Bug 368111 has been marked as a duplicate of this bug. ***
Comment 7 Elmar Otter 2011-06-26 15:38:19 UTC
The -mno-avx did not work for me. The ebuild still fails.

This is what it tries to build:
Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-4.4.5  USE="fortran* mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libffi) (-multilib) -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" 0 kB


This is my make.conf:
CFLAGS="-O2 -march=native -pipe -mno-avx"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"

LINGUAS="nl nl_NL"

USE="apache2 acpi alsa autoipd avahi bonjour cdr curl cups dbus dvd exif expat fuse gd gs imagemagick imap jpeg jpeg2k libwww mdnsresponder-compat maildir mysql nls ntp pear pam pcre php python png $

APACHE2_MODULES="alias auth_basic auth_digest authn_default authn_file authz_user dav dav_fs dav_lock rewrite authz_host dir mime "

APACHE2_MPMS="prefork"

VIDEO_CARDS="radeon"

ALSA_CARDS="AC97"

GENTOO_MIRRORS="rsync://mirror.leaseweb.com/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://mirror.leaseweb.com/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os$

SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"


The complete build.log can be found here:
http://eotter1979.xs4all.nl/gentoobugs/gcc-4.4.5-build.log
Comment 8 Jens Pranaitis 2011-06-26 18:25:44 UTC
-mno-avx seems to get filtered from the ebuild. Try again with -march=core2 or whatever is appropriate for your cpu.
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2011-07-10 23:46:11 UTC
*** Bug 373945 has been marked as a duplicate of this bug. ***
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2011-07-12 23:16:29 UTC
*** Bug 373945 has been marked as a duplicate of this bug. ***
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2011-07-12 23:21:33 UTC
(In reply to comment #7)
> The -mno-avx did not work for me. The ebuild still fails.

It did work, you're getting a different error now:

xgcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
make[3]: *** [insn-attrtab.o] Error 1

Which usually indicates you ran out of memory during the build.

-mno-avx isn't stripped by the ebuild as you can see in the log.
Comment 12 Clemente Aguiar 2011-07-13 21:13:56 UTC
Referring specifically to what I reported in Bug 373945, sys-devel/gcc-4.4.5 does build with "-mno-avx".
Comment 13 Pacho Ramos gentoo-dev 2011-07-18 09:21:20 UTC
*** Bug 375471 has been marked as a duplicate of this bug. ***
Comment 14 Pacho Ramos gentoo-dev 2011-07-18 09:24:45 UTC
Only a question, should I set -mno-avx permanently on make.conf for all system or only for failing packages (gcc and libreoffice)? I mean, it's save have the system without that CFLAG and only specify it when a package fails?

Thanks for the info
Comment 15 Ryan Hill (RETIRED) gentoo-dev 2011-08-15 00:57:55 UTC
*** Bug 378455 has been marked as a duplicate of this bug. ***
Comment 16 Ryan Hill (RETIRED) gentoo-dev 2011-10-07 01:38:15 UTC
*** Bug 379339 has been marked as a duplicate of this bug. ***
Comment 17 Justin Lecher (RETIRED) gentoo-dev 2011-12-03 16:49:19 UTC
*** Bug 393017 has been marked as a duplicate of this bug. ***
Comment 18 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-05 20:58:02 UTC
*** Bug 407013 has been marked as a duplicate of this bug. ***
Comment 19 Ryan Hill (RETIRED) gentoo-dev 2012-09-29 05:50:17 UTC
4.5 is stable now.