Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407741 - media-plugins/gst-plugins-ffmpeg-0.10.13-r1 fails to compile with GCC 4.7
Summary: media-plugins/gst-plugins-ffmpeg-0.10.13-r1 fails to compile with GCC 4.7
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GStreamer package maintainers
Depends on:
Blocks: gcc-4.7
  Show dependency tree
Reported: 2012-03-11 01:24 UTC by Ryan Hill (RETIRED)
Modified: 2012-06-15 14:58 UTC (History)
6 users (show)

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

gst-plugins-ffmpeg-0.10.13-r1:20120311-012921.log.gz (gst-plugins-ffmpeg-0.10.13-r1:20120311-012921.log.gz,37.87 KB, application/x-gzip)
2012-03-11 01:24 UTC, Ryan Hill (RETIRED)
Fix from ffmpeg git repo (gst-ffmpeg-Fix-build-with-gcc-4.7.patch,2.61 KB, patch)
2012-04-24 20:23 UTC, Groggy
Details | Diff
gst-plugins-ffmpeg 0.10.13 (gst-plugins-ffmpeg-0.10.13-gcc47.patch,1.94 KB, patch)
2012-04-29 21:18 UTC, Jimmy.Jazz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2012-03-11 01:24:32 UTC
Created attachment 304873 [details]

gcc -I. -I"/var/tmp/portage/media-plugins/gst-plugins-ffmpeg-0.10.13-r1/work/gst-ffmpeg-0.10.13/gst-libs/ext/libav" -D_FORTIFY_SOURCE=2 -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DHAVE_AV_CONFIG_H -O2 -march=native -g -pipe -D_FORTIFY_SOURCE=2 -fno-strict-aliasing   -std=c99 -fomit-frame-pointer -fPIC -pthread -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=implicit-function-declaration -Werror=missing-prototypes  -MMD -MF libavcodec/x86/dsputil_mmx.d -MT libavcodec/x86/dsputil_mmx.o -c -o libavcodec/x86/dsputil_mmx.o libavcodec/x86/dsputil_mmx.c
libavcodec/x86/h264_qpel_mmx.c: Assembler messages:
libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for `cmp'
libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for `cmp'
libavcodec/x86/h264_qpel_mmx.c:1298: Error: operand type mismatch for `cmp'
libavcodec/x86/h264_qpel_mmx.c:1298: Error: operand type mismatch for `cmp'
libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp'
libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp'
libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp'
make[5]: *** [libavcodec/x86/dsputil_mmx.o] Error 1

Portage 2.2.0_alpha90 (default/linux/amd64/10.0/developer, gcc-4.7.0-pre9999, glibc-2.14.1-r2, 3.2.6-gentoo x86_64)
System uname: Linux-3.2.6-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-2.1
Timestamp of tree: Sun, 11 Mar 2012 00:00:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.7-r2, 2.7.2-r3
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.3.6-r1, 4.4.6-r1, 4.5.3-r2, 4.5.4_pre9999::toolchain, 4.6.2, 4.6.4_pre9999::toolchain, 4.7.0_pre9999::toolchain
sys-devel/gcc-config:     1.5.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo tundra gcc-porting toolchain dirtyepic
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -march=native -g -pipe -D_FORTIFY_SOURCE=2"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -g -pipe -D_FORTIFY_SOURCE=2"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
FEATURES="assume-digests binpkg-logs ccache clean-logs compress-build-logs compressdebug distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict test test-fail-continue unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_CA en_US"
MAKEOPTS="-j16 V=1"
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="/home/dirtyepic/overlay /home/dirtyepic/svn/gcc-porting /home/dirtyepic/svn/toolchain /home/dirtyepic/svn/dirtyepic"
USE="X a52 aac acl acpi alsa amd64 archive bash-completion berkdb branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cscope curl cvs cxx dbus dri dts dvd dvdr emboss encode exif fam fat ffmpeg fftw firefox flac fontconfig gdbm gdu gif git gmp graphite gs gstreamer gtk hdaps highlight iconv icu inotify jpeg lastfm libffi libnotify lto lzma lzo mad menubar mms mmx mmxext modules mp3 mp4 mpeg mplayer multilib ncurses network network-cron nntp nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf pgo pixbuf png policykit ppds pppd qt3support rar readline sdl session snmp spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification subversion svg sysfs syslog tcpd theora threads threadsafe thumbnail thunar tiff tremor truetype tsmuxer udev unicode usb utempter vaapi vdpau vim vim-syntax vorbis webkit wicd wifi wxwidgets x264 xattr xcb xcomposite xml xorg xulrunner xv xvfb xvid xvmc zlib" ALSA_CARDS="hda-intel" 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="kexi words flow plan 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_CA en_US" 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"
Comment 1 Groggy 2012-04-24 20:23:59 UTC
Created attachment 309957 [details, diff]
Fix from ffmpeg git repo
Comment 2 Groggy 2012-04-24 20:26:21 UTC
Comment on attachment 309957 [details, diff]
Fix from ffmpeg git repo

It is fixed on the ffmpeg git repository with this commit :;a=commitdiff;h=5f654897e325349dacf2546674e0510bb72ecb50;hp=250cebeb3b348c3da71f9972eb500d6005dc01f1

I manually apply the patch from the commit and everything went fine.
Comment 3 Jimmy.Jazz 2012-04-29 21:18:28 UTC
Created attachment 310453 [details, diff]
gst-plugins-ffmpeg 0.10.13
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2012-06-04 12:19:51 UTC
Okay to commit?
Comment 5 Xavier Miller (RETIRED) gentoo-dev 2012-06-15 13:21:39 UTC
(In reply to comment #3)
> Created attachment 310453 [details, diff] [details, diff]
> gst-plugins-ffmpeg 0.10.13

This patch worked for me (~x86)
Comment 6 Arun Raghavan (RETIRED) gentoo-dev 2012-06-15 13:42:57 UTC
(In reply to comment #4)
> @gstreamer
> Okay to commit?

Go for it.
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2012-06-15 14:58:30 UTC
+  15 Jun 2012; Justin Lecher <>
+  gst-plugins-ffmpeg-0.10.13-r1.ebuild, +files/0.10.13-gcc-4.7.patch,
+  metadata.xml:
+  Add fix for gcc-4.7: #407741, move to EAPI=4