Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421413 (PR53700) - [4.7/ICE] media-libs/libtheora-1.1.1 fails to build with internal compiler error: in reload_cse_simplify_operands, at postreload.c:403
Summary: [4.7/ICE] media-libs/libtheora-1.1.1 fails to build with internal compiler er...
Alias: PR53700
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
Whiteboard: pending patch? / resolved in future r...
Depends on:
Blocks: gcc-4.7
  Show dependency tree
Reported: 2012-06-16 14:29 UTC by Yixun Lan
Modified: 2012-09-30 06:15 UTC (History)
1 user (show)

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

full build log (build.log,25.87 KB, text/plain)
2012-06-16 14:31 UTC, Yixun Lan
reduced testcase (ice_421413.i,7.07 KB, text/plain)
2012-06-16 18:23 UTC, Kacper Kowalik (Xarthisius) (RETIRED)

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2012-06-16 14:29:49 UTC
libtool: link: (cd ".libs" && rm -f "" && ln -s "
1.1.4" "")
libtool: link: ( cd ".libs" && rm -f "" && ln -s "../libtheoradec
.la" "" )
analyze.c:2230:1: error: insn does not satisfy its constraints:
(insn 2081 2080 2082 41 (set (reg/f:SI 1784)
        (plus:SI (reg/f:SI 20 frame)
            (const_int -2112 [0xfffffffffffff7c0]))) 247 {*leasi_2}
     (expr_list:REG_EQUIV (plus:SI (reg/f:SI 20 frame)
            (const_int -2112 [0xfffffffffffff7c0]))
analyze.c:2230:1: internal compiler error: in reload_cse_simplify_operands, at p
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.
make[2]: *** [analyze.lo] Error 1
make[2]: Leaving directory `/var/build/portage/media-libs/libtheora-1.1.1/work/l
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/build/portage/media-libs/libtheora-1.1.1/work/l

Reproducible: Always

Portage 2.2.0_alpha110_p35 (default/linux/x86/10.0, gcc-4.7.1, glibc-2.15-r2, 3.5.0-rc2 i686)
System uname: Linux-3.5.0-rc2-i686-Intel-R-_Core-TM-2_Quad_CPU_Q8200_@_2.33GHz-with-gentoo-2.1
Timestamp of tree: Fri, 15 Jun 2012 00:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.1.5, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.5, 1.12.1
sys-devel/gcc:            4.5.3-r2, 4.6.3, 4.7.1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo xfce-dev enlightenment-niifaq dilfridge seden dustin bleeding-edge sunrise local gentoo-android gentoo-zh systemd ofree
Installed sets: 
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer -fprefetch-loop-arrays "
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news nostrip parallel-fetch parallel-install parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US zh zh_CN"
MAKEOPTS="-j7 -l7"
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"
PORTDIR_OVERLAY="/var/lib/layman/gentoo-zh /var/lib/layman/systemd /var/lib/layman/ofree"
USE="3dnow X acl alsa bash-completion berkdb bzip2 cairo cli cracklib crypt cups cxx dbus doc dri fortran gdbm gpm iconv imap introspection ipv6 jpeg jpeg2k libnotify maildir mmx modules mp3 mudflap mysql ncurses nls nptl opengl openmp pam pcre png pppd python readline session sse sse2 sse3 ssl ssse3 svg syslog tcpd truetype unicode vorbis x264 x86 xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 threads proxy_connect proxy_ftp proxy_http log proxy version" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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 keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US zh zh_CN" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev vesa intel" 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"
Comment 1 Yixun Lan archtester gentoo-dev 2012-06-16 14:31:58 UTC
Created attachment 315515 [details]
full build log
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-16 18:23:31 UTC
Created attachment 315537 [details]
reduced testcase

following flags are needed to trigger:

x86: CFLAGS="-O2 -fPIC"
amd64: CFLAGS="-O2 -fPIC -m32"
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-16 21:51:30 UTC
Fixed in GCC trunk by:

* ira-color.c (setup_left_conflict_sizes_p): Process all conflicting objects.

git-svn-id: svn+ssh:// 138bc75d-0d04-0410-961f-82ee72b054a4
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-20 11:57:20 UTC
Author: vmakarov
Date: Mon Jun 18 18:34:01 2012
New Revision: 188750

2012-06-18  Vladimir Makarov  <>

    PR rtl-optimization/53700

    Backport from mainline
    2012-03-29  Vladimir Makarov  <>

    * ira-color.c (setup_left_conflict_sizes_p): Process all
    conflicting objects.

Comment 5 Yixun Lan archtester gentoo-dev 2012-06-25 01:38:10 UTC
tested and confirmed, this patch works, both pass with the test case (from comment 2) and libtheora-1.1.1
so, will this patch apply to portage? thanks

(In reply to comment #4)
> Author: vmakarov
> Date: Mon Jun 18 18:34:01 2012
> New Revision: 188750
> URL:
> Log:
> 2012-06-18  Vladimir Makarov  <>
>     PR rtl-optimization/53700
>     Backport from mainline
>     2012-03-29  Vladimir Makarov  <>
>     * ira-color.c (setup_left_conflict_sizes_p): Process all
>     conflicting objects.
> Modified:
>     branches/gcc-4_7-branch/gcc/ChangeLog
>     branches/gcc-4_7-branch/gcc/ira-color.c
Comment 6 crabbed halo ablution 2012-08-02 05:09:15 UTC
Could we have this block bug 390247 please?
Comment 7 Andreas Sturmlechner gentoo-dev 2012-08-21 15:53:24 UTC
builds fine with 4.7.2-pre9999
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2012-09-30 06:15:52 UTC
Fixed in 4.7.2.