Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62477 - ffmpeg-0.4.9_pre1 fails to compile
Summary: ffmpeg-0.4.9_pre1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-01 00:27 UTC by Arnaud Boudou
Modified: 2005-04-30 08:31 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud Boudou 2004-09-01 00:27:13 UTC
I'm trying to emerge ffmpeg-0.4.9_pre1, but I get this compile error :

gcc -Wall -march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer -mfpmath=sse,387 -fpic -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o msmpeg4.o msmpeg4.c
msmpeg4.c: Dans la fonction 
Comment 1 Arnaud Boudou 2004-09-01 00:27:13 UTC
I'm trying to emerge ffmpeg-0.4.9_pre1, but I get this compile error :

gcc -Wall -march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer -mfpmath=sse,387 -fpic -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o msmpeg4.o msmpeg4.c
msmpeg4.c: Dans la fonction « msmpeg4_pred_dc »:
msmpeg4.c:720: error: can't find a register in class `BREG' while reloading `asm'
msmpeg4.c:720: error: can't find a register in class `BREG' while reloading `asm'
wmv2.c: Hors de toute fonction :
wmv2.c:104: attention : `wmv2_encode_end' defined but not used
make[1]: *** [msmpeg4.o] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_pre1/work/ffmpeg-0.4.9-pre1/libavcodec'
make: *** [lib] Erreur 2

!!! ERROR: media-video/ffmpeg-0.4.9_pre1 failed.
!!! Function src_compile, Line 75, Exitcode 2
!!! make failed.



Reproducible: Always
Steps to Reproduce:
1. emerge ffmpeg-0.4.9_pre1
2.
3.

Actual Results:  
ffmpeg-0.4.9_pre1 fails to compile

Expected Results:  
ffmpeg-0.4.9_pre1 should emerge successfully

emerge --info

Portage 2.0.50-r10 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0,
2.6.7-ck5)
=================================================================
System uname: 2.6.7-ck5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer -mfpmath=sse,387
-fpic"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer
-mfpmath=sse,387 -fpic"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://gentoo.inode.at/source/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups dvd dvdr
encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib ipv6 java
jpeg kde ldap libg++ libwww linguas_fr mad mikmod mmx mmx2 motif mpeg ncurses
nls nptl nvidia offensive oggvorbis opengl oss pam pda pdflib perl png ppds
python qt quicktime readline rtc samba sdl slang spell sse sse2 ssl svga tcltk
tcpd truetype usb x86 xinerama xml2 xprint xv xvmc zlib"
Comment 2 Arnaud Boudou 2004-09-01 06:33:58 UTC
I found where comes my problem : it's the -fpic within the CFLAGS.
Comment 3 Jan Callewaert 2005-04-30 08:27:29 UTC
I am getting the same problem with ffmpeg-0.4.9_p20050226-r3. There is however no -fPIC in my CFLAGS.

compile error:
i386/dsputil_mmx.c: In function `dsputil_init_mmx':
i386/dsputil_mmx.c:3076: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c:3077: warning: assignment from incompatible pointer type
i386/dsputil_mmx_avg.h: In function `put_pixels4_l2_3dnow':
i386/dsputil_mmx_avg.h:58: error: can't find a register in class `BREG' while reloading `asm'
i386/dsputil_mmx.c: At top level:
i386/dsputil_mmx_rnd.h:59: warning: 'put_no_rnd_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: 'put_no_rnd_pixels16_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:300: warning: 'avg_no_rnd_pixels4_mmx' defined but not used
i386/dsputil_mmx_rnd.h:59: warning: 'put_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: 'put_pixels16_l2_mmx' defined but not used
make[1]: *** [i386/dsputil_mmx.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_p20050226-r3/work/ffmpeg-0.4.9-p20050226-shared/libavcodec'
make: *** [lib] Error 2

# emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 17:34:45)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="nl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bzip2 cdparanoia crypt cups curl dvd dvdr dvdread emboss encode fam ffmpeg foomaticdb fortran gdbm gif gpm gtk gtk2 imlib ipv6 java jpeg junit kde kdeenablefinal kdexdeltas libclamav libg++ libwww mad mikmod mmx mozilla moznomail moznoxft mp3 mpeg ncurses nls nptl nvidia ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse sse2 ssl svga tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs xml2 xv xvid zlib linguas_nl"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

So I am reopening this bug.
Comment 4 Jan Callewaert 2005-04-30 08:31:49 UTC
sorry, this is a duplicate of bug #86843.