Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 187396

Summary: [3.4/ICE] media-video/ffmpeg fails w/ ICE in extract_insn, at recog.c:2083
Product: Gentoo Linux Reporter: Dmitriy Gorbenko <bazil>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dmitriy Gorbenko 2007-08-01 15:54:43 UTC
# USE="-a52 -aac -amr -imlib -encode -X -ieee1394 -oss -sdl -truetype -xvid -zlib" emerge -vp ffmpeg

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] media-video/ffmpeg-0.4.9_p20070616-r1  USE="-X -a52 -aac (-altivec) -amr -debug -doc -encode -ieee1394 -imlib -mmx -network -ogg -oss -sdl -test -theora -threads -truetype -v4l -vorbis -x264 -xvid -zlib" 0 kB

Then:

x86_64-pc-linux-gnu-gcc -O2 -pipe -march=k8 -DBROKEN_RELOCATIONS -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg"/libavutil -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg"/libavcodec -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg"/libavformat -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg"/libswscale -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -DHAVE_AV_CONFIG_H -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg"/libswscale -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg"/libavcodec  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg"/libavutil -O2 -pipe -march=k8 -DBROKEN_RELOCATIONS -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -fPIC -DPIC -c -o flacenc.o flacenc.c
In file included from flacenc.c:22:
avcodec.h:2252: warning: `ImgReSampleContext' is deprecated (declared at avcodec.h:2231)
avcodec.h:2258: warning: `ImgReSampleContext' is deprecated (declared at avcodec.h:2231)
Preprocessed source stored into /var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/temp/ccDCuRLs.out file, please attach this to your bugreport.
make[1]: *** [dsputil.o] Error 1
flacenc.c: In function `flac_encode_frame':
flacenc.c:756: warning: 'weight' might be used uninitialized in this function
motion_est.c: In function `check_input_motion':
motion_est.c:184: warning: 'uvdxy' might be used uninitialized in this function
motion_est.c:184: warning: 'uvdxy' might be used uninitialized in this function
motion_est.c:184: warning: 'uvdxy' might be used uninitialized in this function
motion_est.c:184: warning: 'uvdxy' might be used uninitialized in this function
motion_est.c:184: warning: 'uvdxy' might be used uninitialized in this function
motion_est.c:184: warning: 'uvdxy' might be used uninitialized in this function
motion_est.c:184: warning: 'uvdxy' might be used uninitialized in this function
make[1]: Leaving directory `/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg/libavcodec'
make: *** [lib] Error 2

!!! ERROR: media-video/ffmpeg-0.4.9_p20070616-r1 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_compile
  ebuild.sh, line 973:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ffmpeg-0.4.9_p20070616-r1.ebuild, line 149:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/temp/build.log'.

f3t libavcodec # cd /var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg/libavcodec
f3t libavcodec # make
x86_64-pc-linux-gnu-gcc -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg"/libswscale -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg"/libavcodec  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070616-r1/work/ffmpeg"/libavutil -O2 -pipe -march=k8 -DBROKEN_RELOCATIONS -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -fPIC -DPIC -c -o dsputil.o dsputil.c
In file included from dsputil.c:30:
avcodec.h:2252: warning: `ImgReSampleContext' is deprecated (declared at avcodec.h:2231)
avcodec.h:2258: warning: `ImgReSampleContext' is deprecated (declared at avcodec.h:2231)
dsputil.c: In function `dct264_sad8x8_c':
dsputil.c:3440: warning: passing arg 1 of pointer to function from incompatible pointer type
dsputil.c: In function `ff_check_alignment':
dsputil.c:3824: warning: cast from pointer to integer of different size
dsputil.c:3837: error: unrecognizable insn:
(insn 62 10 12 0 (set (reg:SI 0 ax [61])
        (subreg:SI (plus:DI (subreg:DI (reg:SI 7 sp) 0)
                (const_int -4 [0xfffffffffffffffc])) 0)) -1 (nil)
    (nil))
dsputil.c:3837: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccyVX0nX.out file, please attach this to your bugreport.
make: *** [dsputil.o] Error 1
f3t libavcodec #

File /tmp/ccyVX0nX.out is too big to put it here.


Reproducible: Always

Steps to Reproduce:
1.USE="-a52 -aac -amr -imlib -encode -X -ieee1394 -oss -sdl -truetype -xvid -zlib" emerge -v ffmpeg

Actual Results:  
make failed

Expected Results:  
successfull completion
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-01 16:03:21 UTC
emerge --info output is mandatory on bugs.
Comment 2 Dmitriy Gorbenko 2007-08-01 21:16:00 UTC
sure,

f3t ~ # emerge --info
Portage 2.1.2.9 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.5-r4, 2.6.22-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r2 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-52
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 31 Jul 2007 16:00:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo ftp://gentoo.inode.at/source/ http://gentoo.inode.at/ http://mirror.datapipe.net/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo"
LANG="ru_RU.utf8"
LINGUAS="ru ua uk"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X X11 a52 aac accessibility alsa amd64 amr apache2 arts audiofile bcmath berkdb bitmap-fonts bzip2 cli cpudetection cracklib crypt css cups dri dvd dvdr dvdread eds emboss encode exif ffmpeg firefox flac foomaticdb fortran ftp gd gif gpm gstreamer gtk gtk2 hash hda-intel iconv ieee1394 imagemagick imlib isdnlog javascript jpeg kde lzo lzw lzw-tiff mad md5sum midi mjpeg mozdevelop mp2 mp3 mpeg mudflap mysql nas ncurses nls nptl nptlonly nvidia opengl openmp oss pcntl pcre perl png posix pppd python qt qt3 qt4 quicktime rar rdesktop readline reflection rtc ru samba sasl scanner sdl session slang soap sockets spell spl ssl tcpd tga threadsafe tiff truetype truetype-fonts type1-fonts unicode usb vcd vnc xml xmlreader xmlrpc xmlwriter xorg xpm xsl xv xvid zip 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru ua uk" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

f3t ~ #  
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-01 21:27:58 UTC
Well, upgrade your gcc.

http://www.gentoo.org/doc/en/gcc-upgrading.xml
Comment 4 Dmitriy Gorbenko 2007-08-01 21:44:21 UTC
Yes, you are right. After upgrade ffmpeg library successfully compiled.
Very thanks.

P.S.: How I could forgot to do this..