Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45967 - libavcodec fails to compile on mplayer MPlayer-1.0pre3 and transcode-0.6.12-r1
Summary: libavcodec fails to compile on mplayer MPlayer-1.0pre3 and transcode-0.6.12-r1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-28 03:37 UTC by psofa
Modified: 2004-03-28 13:23 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 psofa 2004-03-28 03:37:19 UTC
trying to compile on both of these gives me errors
ie for transcode:
  -c -o dsputil_mmx.o `test -f 'i386/dsputil_mmx.c' || echo './'`i386/dsputil_mmx.c; \
then mv -f ".deps/dsputil_mmx.Tpo" ".deps/dsputil_mmx.Po"; \
else rm -f ".deps/dsputil_mmx.Tpo"; exit 1; \
fi
i386/dsputil_mmx.c: In function `h263_h_loop_filter_mmx':
i386/dsputil_mmx.c:610: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
i386/dsputil_mmx.c: At top level:
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
make[4]: *** [dsputil_mmx.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/transcode-0.6.12-r1/work/transcode-0.6.12/ffmpeg/libavcodec'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/transcode-0.6.12-r1/work/transcode-0.6.12/ffmpeg/libavcodec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/transcode-0.6.12-r1/work/transcode-0.6.12/ffmpeg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/transcode-0.6.12-r1/work/transcode-0.6.12'
make: *** [all] Error 2

!!! ERROR: media-video/transcode-0.6.12-r1 failed.
!!! Function src_compile, Line 103, Exitcode 2
!!! (no error message)

im using gcc 3.3.3 and  my make.conf is

# These settings were set by the catalyst build script that automatically built this stage
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -msse -mmmx -m3dnow -momit-leaf-frame-pointer -funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -freduce-all-givs -finline-limit=600 -mfpmath=387 -fPIC -DPIC"
CHOST="i686-pc-linux-gnu"
USE="-gnome qt kde dvd alsa oss cdr X usb 3dnow opengl msn x86 xmms mpeg cups foomaticdb ppds usb fbcon truetype directfb svga radeon -matrox oggvorbis radeon nptl unicode sdl jpeg png sse mmx"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="~x86"
VIDEO_CARDS=radeon
DISTDIR="/downloads/portage/"

though i get the same errors after swithing off my cflags
but compiling the prevous version of mplayer (0.93 i think) doesnt cause any error
Comment 1 psofa 2004-03-28 06:47:06 UTC
though i think it might be a gcc issue bcause a week ago when i had an older gcc but older headers too (2.4.x-now i have the latest 2.6.x) mplayer compiled fine.
any ideas?
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-03-28 13:18:57 UTC
a) don't force PIC in CFLAGS
let the USE flag do it

b) lower your CFLAGS
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2004-03-28 13:23:34 UTC
closing

see bug 31087 for details