Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519376 - >=media-video/ffmpeg-1.2.6-r1 - In file included from .../work/ffmpeg-1.2.6/libavcodec/motion_est.c:35: .../work/ffmpeg-1.2.6/libavcodec/x86/mathops.h:94:1: error: ‘asm’ operand has impossible constraints
Summary: >=media-video/ffmpeg-1.2.6-r1 - In file included from .../work/ffmpeg-1.2.6/l...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-08 09:05 UTC by Frank Krömmelbein
Modified: 2016-03-30 20:06 UTC (History)
1 user (show)

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


Attachments
ffmpeg-1.2.6-r1 build.log (build.log,748.06 KB, text/plain)
2014-08-08 09:06 UTC, Frank Krömmelbein
Details
ffmpeg-1.2.7 build.log (build.log,744.92 KB, text/plain)
2014-08-08 09:08 UTC, Frank Krömmelbein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Krömmelbein 2014-08-08 09:05:20 UTC
I rebuild my system with gcc-4.8.3 and got this problem with version 1.2.6-r1 and 1.2.7.

In file included from /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/mathops.h:45:0,
                 from /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/motion_est.c:35:
/var/tmp/portage/media-video/ffmpeg-1.2.6-r1/work/ffmpeg-1.2.6/libavcodec/x86/mathops.h:94:1: error: ‘asm’ operand has impossible constraints
 __asm__ volatile(\

...
make: *** [libavcodec/motion_est.o] Error 1


Reproducible: Always
Comment 1 Frank Krömmelbein 2014-08-08 09:06:18 UTC
Created attachment 382512 [details]
ffmpeg-1.2.6-r1 build.log
Comment 2 Frank Krömmelbein 2014-08-08 09:08:19 UTC
Created attachment 382514 [details]
ffmpeg-1.2.7 build.log

Last succesful build with gcc-4.7.3:

   * media-video/ffmpeg-1.2.6-r1
   Install date: Tue Jul 22 22:08:26 2014
   USE=""
   CFLAGS="-march=corei7 -O2 -pipe"


emerge --info ffmpeg
Portage 2.2.8-r1 (hardened/linux/amd64, gcc-4.8.3, glibc-2.19-r1, 3.15.8-hardened x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.15.8-hardened-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:    20578764 total,   6918548 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 07 Aug 2014 21:00:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo steam-overlay vdr-devel fouxlay lokal
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/usr/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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/steam /var/lib/layman/vdr-devel /var/lib/layman/fouxlay /usr/local/portage"
USE="X a52 aac aacs acl acpi alsa amd64 amrenc avx berkdb bluetooth bluray branding btrfs bzip2 cairo cdda cddb cdr cec chroma chromaprint clamav cli clucene corefonts cracklib crypt cryptsetup css cups cxx dbus declarative device-mapper dmraid dri dts dv dvb dvd dvdr ebook encode epub exif ext4 f2fs faac faad fam fat ffmpeg flac fontconfig fontforge fortran fuse gdbm gif gimp gpg gphoto2 gpm gtk gudev hardened iconv id3tag idn infinality inotify introspection ipv6 iscsi jfs jpeg jpeg2k justify kde kdecards kdepim kipi ladspa lame lcms ldap libkms libnotify libsamplerate libsoxr libvisual lirc llvm-shared-libs lm_sensors lvm lxc lz4 lzma lzo mad matroska mdadm mmx mng mobi mod modemmanager modplug modules mp3 mp4 mpeg mplayer mtp multilib multimedia musicbrainz mysql natspec ncurses networkmanager nfs nls nptl ntfs ogg opencl opencv openexr opengl openmp openrc opus pam pango pax_kernel pcmcia pcre pdf phonon pkcs11 plasma png policykit postscript ppds ppp pvr qt3support qt4 rar raw rdesktop readline reiser4 reiserfs rss samba scanner sdl semantic-desktop session sftp smartcard sna sndfile spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification subversion svg system-cairo system-icu system-jpeg system-sqlite systemd taglib tcpd threads thumbnail tiff truetype udev udisks unicode upnp upower urandom usb uvm v4l vaapi vcd vdpau vdr vlc vnc vorbis vpx webinterface wifi wxwidgets x264 x265 xa xattr xcb xcomposite xfs xinerama xkb xml xmp xpm xscreensaver xtpax xv xvid xvmc zeroconf zip zlib" ABI_X86="64 32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="*" 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 ublox ubx" GRUB_PLATFORMS="efi-64 pc qemu emu" INPUT_DEVICES="evdev keyboard mouse joystick synaptics vmmouse lirc" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer wiki-publisher" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="*" USERLAND="GNU" VIDEO_CARDS="intel vmware virtualbox modesetting vesa nouveau i915 i965" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-video/ffmpeg-1.2.6-r1 was built with the following:
USE="X aac alsa avx bluray bzip2 encode faac fontconfig hardcoded-tables iconv jpeg2k libsoxr mmx modplug mp3 network opus sdl ssse3 threads truetype v4l vaapi vdpau vorbis vpx x264 xvid zlib -3dnow -3dnowext -aacplus (-altivec) -amr -bindist -cdio (-celt) -cpudetection -debug -doc -examples -fdk -flite -frei0r -gnutls -gsm -iec61883 -ieee1394 -jack -libass -libcaca -libv4l -mmxext (-neon) -openal -openssl -oss -pic -pulseaudio -rtmp -schroedinger -speex -static-libs -test -theora -twolame (-vis)" ABI_X86="32 64 -x32" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"
Comment 3 Magnus Granberg gentoo-dev 2014-08-08 12:37:52 UTC
Try to build it with the pic use flag on
Comment 4 Frank Krömmelbein 2014-08-08 13:40:42 UTC
With PIC useflag enabled, ffmpeg-1.2.6-r1 compiles.
Thank you very much!

> media-video/ffmpeg:pic - Force shared libraries to be built as PIC (this is slower)

Can it be estimated how much speed this costs, or increases this just the compile time of ffmpeg?
Comment 5 Alexis Ballier gentoo-dev 2014-12-02 09:00:22 UTC
(In reply to Frank Krömmelbein from comment #4)
> > media-video/ffmpeg:pic - Force shared libraries to be built as PIC (this is slower)
> 
> Can it be estimated how much speed this costs, or increases this just the
> compile time of ffmpeg?

on amd64 nothing as this is mandatory
on x86, esp. with ffmpeg, a lot since this disables _all_ asm optimizations...


hardened should use.force pic for amd64 here since the failure comes from the x86 multilib build
Comment 6 Alexis Ballier gentoo-dev 2015-02-15 09:38:09 UTC
@jer: please read; i provided a solution which is to add something to hardened profiles; nothing to do for media-video herd here...