Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136171 - ffmpeg-0.4.9_p20060530 fails with MMX-useflag
Summary: ffmpeg-0.4.9_p20060530 fails with MMX-useflag
Status: RESOLVED DUPLICATE of bug 142380
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-09 04:32 UTC by Simon Koenig
Modified: 2006-08-01 07:27 UTC (History)
4 users (show)

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 Simon Koenig 2006-06-09 04:32:56 UTC
Compiling ffmpeg with mmx useflag gives following error.
Disabling mmx useflag fixes this.

i686-gentoo-freebsd6.1-gcc -Wall -Wno-switch -march=athlon-xp -pipe -O2 -fomit-frame-pointer -fomit-frame-pointer -pthread -DHAVE_AV_CONFIG_H -I.. -I/var/tmp/portage/ffmpeg-0.4.9_p20060530/work/ffmpeg-0.4.9-p20060530-shared/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE  -fPIC -DPIC -c -o i386/idct_mmx_xvid.o i386/idct_mmx_xvid.c
i386/snowdsp_mmx.c: In function `ff_snow_vertical_compose97i_sse2':
i386/snowdsp_mmx.c:461: error: PIC register `%ebx' clobbered in `asm'
i386/snowdsp_mmx.c: In function `ff_snow_vertical_compose97i_mmx':
i386/snowdsp_mmx.c:568: error: PIC register `%ebx' clobbered in `asm'
i386/snowdsp_mmx.c: In function `inner_add_yblock_bw_8_obmc_16_mmx':
i386/snowdsp_mmx.c:869: error: PIC register `%ebx' clobbered in `asm'
gmake[1]: *** [i386/snowdsp_mmx.o] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_p20060530/work/ffmpeg-0.4.9-p20060530-shared/libavcodec'
gmake: *** [lib] Error 2
Comment 1 Nanouck 2006-07-16 11:17:05 UTC
i get the same error with via-c3 and asm inline, it seems ebx cannot be dynamicaly assigned. This error appears in "shared" mode only. Moreover, I do not understand why sse2 functions are activated by mmx flag. 

In the other hand you can disable support for SNOW encoder with  --disable-encoder=snow but some errors remain.



Comment 2 Jens Pranaitis 2006-08-01 06:25:43 UTC
I get the same error to with Linux, this doesn't seem to be a BSD issue
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2006-08-01 07:27:18 UTC

*** This bug has been marked as a duplicate of 142380 ***