Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38408 - ffmpeg fails to compile
Summary: ffmpeg fails to compile
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-16 07:50 UTC by Nuno Alexandre
Modified: 2004-01-24 20:32 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 Nuno Alexandre 2004-01-16 07:50:56 UTC
[root@Genbox:ikaro]$emerge ffmpeg
Calculating dependencies  ...done!
>>> emerge (1 of 1) media-video/ffmpeg-0.4.7 to /
>>> md5 src_uri ;-) ffmpeg-0.4.7.tar.gz
>>> Unpacking source...
>>> Unpacking ffmpeg-0.4.7.tar.gz to /var/tmp/portage/ffmpeg-0.4.7/work
 * Applying ffmpeg-0.4.7-2.6.patch...                                                                                              [ ok ]
>>> Source unpacked.
Install prefix   /usr
Source path      /var/tmp/portage/ffmpeg-0.4.7/work/ffmpeg-0.4.7
C compiler       gcc
make             make
CPU              x86 (generic)
Big Endian       no
MMX enabled      yes
Vector Builtins  yes
gprof enabled    no
zlib enabled     yes
mp3lame enabled  yes
vorbis enabled   yes
faad enabled     no
faadbin enabled  no
a52 support      yes
a52 dlopened     no
pp support       yes
shared pp        no
Video hooking    yes
SDL support      yes
risky / patent encumbered codecs yes
optimize for size no
Imlib2 support   no
freetype support yes
Sun medialib support no
AMR-NB float support no
AMR-NB fixed support no
Creating config.mak and config.h
make -C libavcodec all
make[1]: Entering directory `/var/tmp/portage/ffmpeg-0.4.7/work/ffmpeg-0.4.7/libavcodec'
gcc -march=athlon-xp -O2 -pipe -fomit-frame-pointer -fstack-protector -Wall -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFIL                                        E_SOURCE -D_GNU_SOURCE -c -o common.o common.c 
gcc -march=athlon-xp -O2 -pipe -fomit-frame-pointer -fstack-protector -Wall -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFIL                                        E_SOURCE -D_GNU_SOURCE -c -o utils.o utils.c 

[snip]
mjpeg.c: In function `encode_picture_lossless':
mjpeg.c:696: warning: `pred' might be used uninitialized in this function
mjpeg.c:731: warning: `pred' might be used uninitialized in this function
mjpeg.c:765: warning: `pred' might be used uninitialized in this function
mjpeg.c: In function `ljpeg_decode_rgb_scan':
mjpeg.c:1190: warning: `pred' might be used uninitialized in this function
mjpeg.c: In function `ljpeg_decode_yuv_scan':
mjpeg.c:1252: warning: `pred' might be used uninitialized in this function
mjpeg.c:1292: warning: `pred' might be used uninitialized in this function
mjpeg.c: In function `mjpeg_decode_sos':
mjpeg.c:1367: warning: unused variable `ilv'

[snip]

h264.c: In function `decode_slice_header':
h264.c:2928: warning: unused variable `idr_pic_id'
h264.c:2991: warning: unused variable `sp_for_switch_flag'
h264.c:2994: warning: unused variable `slice_qs_delta'
h264.c: In function `decode_mb':
h264.c:3196: warning: `cbp' might be used uninitialized in this function
h264.c: In function `fill_caches':
h264.c:374: warning: `topleft_xy' might be used uninitialized in this function
h264.c:374: warning: `top_xy' might be used uninitialized in this function
h264.c:374: warning: `topright_xy' might be used uninitialized in this function
h264.c: At top level:
h264.c:1009: warning: `encode_nal' defined but not used
h264.c:1068: warning: `encode_rbsp_trailing' defined but not used
h264.c:1137: warning: `h264_luma_dc_dct_c' defined but not used
h264.c:1195: warning: `chroma_dc_dct_c' defined but not used
h264.c:1284: warning: `h264_diff_dct_c' defined but not used
h264.c:2333: warning: `decode_mb_cabac' defined but not used

[snip]

liba52/resample_mmx.c:10: warning: `magicF2W' defined but not used
liba52/resample_mmx.c:11: warning: `wm1010' defined but not used
liba52/resample_mmx.c:12: warning: `wm0101' defined but not used
liba52/resample_mmx.c:13: warning: `wm1100' defined but not used

[snip]
i386/dsputil_mmx_rnd.h:362: warning: `avg_no_rnd_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:409: warning: `avg_no_rnd_pixels16_l2_mmx' defined but not used
i386/dsputil_mmx_avg.h:57: warning: `put_pixels8_l2_3dnow' defined but not used
i386/dsputil_mmx_avg.h:129: warning: `put_pixels16_l2_3dnow' defined but not used
i386/dsputil_mmx_avg.h:57: warning: `put_pixels8_l2_mmx2' defined but not used
i386/dsputil_mmx_avg.h:129: warning: `put_pixels16_l2_mmx2' defined but not used

[snip]
gcc -march=athlon-xp -O2 -pipe -fomit-frame-pointer -fstack-protector -Wall -g -I. -I/var/tmp/portage/ffmpeg-0.4.7/work/ffmpeg-0.4.7 -I/v                                        ar/tmp/portage/ffmpeg-0.4.7/work/ffmpeg-0.4.7/libavcodec -I/var/tmp/portage/ffmpeg-0.4.7/work/ffmpeg-0.4.7/libavformat -D_FILE_OFFSET_BIT                                        S=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o ffmpeg.o ffmpeg.c 
In file included from ffmpeg.c:41:
/usr/include/ctype.h:190: parse error before "__attribute__"
/usr/include/ctype.h:196: parse error before "__attribute__"
make: *** [ffmpeg.o] Error 1

!!! ERROR: media-video/ffmpeg-0.4.7 failed.
!!! Function src_compile, Line 59, Exitcode 2
!!! make failed.




Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge ffmpeg
3. the error happens




Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.1)
=================================================================
System uname: 2.6.1 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.4.3.10
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/glftpd/etc /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs sandbox"
GENTOO_MIRRORS="http://gentoo.linux.no/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 apm avi berkdb bindist cdr crypt directfb emacs
encode fbcon foomaticdb gd gd-external gdbm ggi gif gpm gtk gtk2 imlib ipv6 java
jikes jpeg ldap libg++ libwww mad mikmod mmx motif mpeg mysql ncurses oggvorbis
opengl oss pam pdflib perl php pic png pnp python quicktime readline ruby sasl
sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xml2 xmms xv zlib"
Comment 1 Marc Hildebrand (RETIRED) gentoo-dev 2004-01-16 11:53:38 UTC
I'll have a look at this one over the weekend
Comment 2 Marc Hildebrand (RETIRED) gentoo-dev 2004-01-19 22:45:41 UTC
Could you please try to emerge ffmpeg-0.4.8?
I'm still trying to reproduce your error and have no luck...
Maybe -0.4.8 works for you too.
High time we mark it stable imho.
Comment 3 SpanKY gentoo-dev 2004-01-24 20:32:26 UTC
do you use linux-2.6.x headers ? if so, could you try re-emerging them and then see if ffmpeg works ?