Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416991 - [4.4/4.6/4.7/graphite/ICE] media-libs/mlt-0.7.8 fails with CFLAGS='-O3 -fprefetch-loop-arrays' - In function ‘luma_render’: luma.c:92:11: internal compiler error: in build2_stat, at tree.c:3803
Summary: [4.4/4.6/4.7/graphite/ICE] media-libs/mlt-0.7.8 fails with CFLAGS='-O3 -fpref...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-21 22:40 UTC by David Heidelberg (okias)
Modified: 2012-07-18 11:56 UTC (History)
1 user (show)

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


Attachments
build log (failure.log,52.82 KB, text/plain)
2012-05-21 22:40 UTC, David Heidelberg (okias)
Details
luma.i (luma.i,127.31 KB, text/plain)
2012-06-01 07:26 UTC, David Heidelberg (okias)
Details
reduced testcase (ice_416991.i,177 bytes, text/plain)
2012-06-01 09:06 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details
new_luma.i (luma.i,245 bytes, text/plain)
2012-06-03 18:00 UTC, David Heidelberg (okias)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Heidelberg (okias) 2012-05-21 22:40:20 UTC
mlt fails to compile with O3, with O2 is fine.

Reproducible: Always




~ $ emerge --info
Portage 2.2.0_alpha107 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r2, 3.4.0-rc7_aWeSoM3 x86_64)
=================================================================
System uname: Linux-3.4.0-rc7_aWeSoM3-x86_64-AMD_A8-3870_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.1
Timestamp of tree: Mon, 21 May 2012 17:00:01 +0000
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo kde x11 qt gamerlay-stable mozilla sunrise FireBurn overlay-watzke-cz
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O3 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -O3 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS=""
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=metadata/cache/*"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/x11 /var/lib/layman/qt /var/lib/layman/gamerlay /var/lib/layman/mozilla /var/lib/layman/sunrise /var/lib/layman/FireBurn /var/lib/layman/overlay-watzke-cz"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apng bash-completion berkdb branding bzip2 cairo cdda cli consolekit cracklib crypt cxx dbus declarative dhcpcd dri drm dts dvd dvdr embedded emboss enca encode exif fam fftw firefox flac fontconfig g3dvl gallium gdbm gif git gles2 glew gnutls graphite gtk3 iconv inotify ipv6 jabber jpeg kde kipi lcms libass libkms libnl libnotify llvm lzma lzo mad minizip mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg openal opengl openmp openssl pam pango pcre pdf phonon plasma png policykit ppds pppd projectm python python3 qalculate qt3support qt4 r600-llvm-compiler rdp readline samba semantic-desktop session smp sse sse2 ssl startup-notification subversion svg symlink tcpd theora threads thumbnail tiff truetype udev udisks unicode upower usb vdpau video vlc vnc vorbis webkit webm wxwidgets x264 xcb xcomposite xinerama xml xorg xscreensaver 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" CALLIGRA_FEATURES="words tables krita" CAMERAS="ptp2" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, USE_PYTHON
Comment 1 David Heidelberg (okias) 2012-05-21 22:40:42 UTC
Created attachment 312609 [details]
build log
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2012-05-24 00:39:31 UTC
I can't make it fail here.  Go into /var/tmp/portage/media-libs/mlt-0.7.8/work/mlt-0.7.8/src/modules/lumas and run the failing command with -save-temps added.  Attach the .i file it produces.
Comment 3 David Heidelberg (okias) 2012-06-01 07:26:39 UTC
Created attachment 313791 [details]
luma.i

So, with O3 it fails even with 4.7.0 (tested right now)
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-01 08:30:45 UTC
Despite the fact that upstream reports mentions it happens even with 4.4 I was unable to reproduce it with 4.5. With 4.6 fails as described by original reporter
Comment 5 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-01 09:06:36 UTC
Created attachment 313795 [details]
reduced testcase
Comment 6 David Heidelberg (okias) 2012-06-03 18:00:08 UTC
Created attachment 314075 [details]
new_luma.i

so I pasted your test case into place of old code and here is output.
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2012-06-05 04:43:06 UTC
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188170

4.7.1 should be out shortly so we won't bother with a new patchset.
Comment 8 SpanKY gentoo-dev 2012-07-18 11:56:24 UTC
4.7.1 is in the tree now