Compiling with x264 fails on MacOS 10.5.5 (Leopard)
Hi, After upgrading from MacOS 10.4.11 to 10.5.5 (Leopard/Intel) I can't build ffmpeg (r15935) with x264: $ ./configure --enable-gpl --enable-nonfree \ --disable-network --disable-ffserver --disable-vhook --disable-ffplay \ --enable-shared \ --enable-postproc \ --enable-libfaad --enable-libfaac \ --enable-libx264 --enable-libxvid \ --enable-libmp3lame \ --extra-cflags="-I/sw/include" --extra-libs="-L/sw/lib" && make [...] gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/Users/chris/src/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -I/sw/include -std=c99 -pipe -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavcodec/i386/cavsdsp_mmx.o libavcodec/i386/cavsdsp_mmx.c libavcodec/i386/cavsdsp_mmx.c: In function ?ff_put_cavs_qpel8_mc01_3dnow?: libavcodec/i386/cavsdsp_mmx.c:448: error: can't find a register in class ?GENERAL_REGS? while reloading ?asm? make: *** [libavcodec/i386/cavsdsp_mmx.o] Error 1 This error happens regardless of whether I compiled x264 against yasm or nasm or --disable-assembly. $ sw_vers ProductName: Mac OS X ProductVersion: 10.5.5 BuildVersion: 9F33 $ uname -a Darwin krille.blacktrash.org 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386 $ x264 --version x264 0.65.1032 8215f79 Let me know if I can provide more info. TIA c -- \black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_ Ein deutscher Western/A German Western -->> http://www.blacktrash.org/underdogma/ccc.html -->> http://www.blacktrash.org/underdogma/ccc-en.html
Hello Christian, Le 25 nov. 08 ? 10:56, Christian Ebert a ?crit :
$ ./configure --enable-gpl --enable-nonfree \ --disable-network --disable-ffserver --disable-vhook --disable- ffplay \ --enable-shared \ --enable-postproc \ --enable-libfaad --enable-libfaac \ --enable-libx264 --enable-libxvid \ --enable-libmp3lame \ --extra-cflags="-I/sw/include" --extra-libs="-L/sw/lib" && make [...] gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE - I. -I"/Users/chris/src/ffmpeg" -D_ISOC99_SOURCE - D_POSIX_C_SOURCE=200112 -I/sw/include -std=c99 -pipe - force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g - Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled- optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign - Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavcodec/i386/cavsdsp_mmx.o libavcodec/i386/cavsdsp_mmx.c libavcodec/i386/cavsdsp_mmx.c: In function ?ff_put_cavs_qpel8_mc01_3dnow?: libavcodec/i386/cavsdsp_mmx.c:448: error: can't find a register in class ?GENERAL_REGS? while reloading ?asm? make: *** [libavcodec/i386/cavsdsp_mmx.o] Error 1
I got exactly the same problem on OSX. It is due to --enable-shared I have found two ways to get rid of the compiler (gcc 4.0 or gcc 4.2) error : --enable-shared --extra-cflags="-mdynamic-no-pic" or --enable-shared --disable-mmx With the first you got lots of (perhaps dangerous warnings) and with the second you don't benefit from MMX speedup. They both pass "make test". David
Salut David, * David Geldreich on Tuesday, November 25, 2008 at 11:12:57 +0100
I got exactly the same problem on OSX. It is due to --enable-shared
I have found two ways to get rid of the compiler (gcc 4.0 or gcc 4.2) error : --enable-shared --extra-cflags="-mdynamic-no-pic" or --enable-shared --disable-mmx
With the first you got lots of (perhaps dangerous warnings) and with the second you don't benefit from MMX speedup.
They both pass "make test".
Thank you. Works for me as well. However I would call this a long-term solution exactly -- what the hell do I have a faster machine for ;-) Is the mmx speedup architecturally impossible? Or will ffmpeg be compilable that way at some point? c -- \black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_ Ein deutscher Western/A German Western -->> http://www.blacktrash.org/underdogma/ccc.html -->> http://www.blacktrash.org/underdogma/ccc-en.html
* Christian Ebert on Tuesday, November 25, 2008 at 15:17:26 +0100
* David Geldreich on Tuesday, November 25, 2008 at 11:12:57 +0100
I got exactly the same problem on OSX. It is due to --enable-shared
I have found two ways to get rid of the compiler (gcc 4.0 or gcc 4.2) error : --enable-shared --extra-cflags="-mdynamic-no-pic" or --enable-shared --disable-mmx
With the first you got lots of (perhaps dangerous warnings) and with the second you don't benefit from MMX speedup.
They both pass "make test".
Thank you. Works for me as well.
However I would call this a long-term solution exactly -- what the hell do I have a faster machine for ;-)
Is the mmx speedup architecturally impossible? Or will ffmpeg be compilable that way at some point?
Perhaps this points to a way of fixing: libavcodec/i386/mmx.h:24:2: warning: #warning Everything in this header is deprecated, use plain __asm__()! New code using this header will be rejected. c -- \black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_ Ein deutscher Western/A German Western -->> http://www.blacktrash.org/underdogma/ccc.html -->> http://www.blacktrash.org/underdogma/ccc-en.html
* David Geldreich on Tuesday, November 25, 2008 at 11:12:57 +0100
Le 25 nov. 08 ? 10:56, Christian Ebert a ?crit :
$ ./configure --enable-gpl --enable-nonfree \ --disable-network --disable-ffserver --disable-vhook --disable- ffplay \ --enable-shared \ --enable-postproc \ --enable-libfaad --enable-libfaac \ --enable-libx264 --enable-libxvid \ --enable-libmp3lame \ --extra-cflags="-I/sw/include" --extra-libs="-L/sw/lib" && make [...] gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE - I. -I"/Users/chris/src/ffmpeg" -D_ISOC99_SOURCE - D_POSIX_C_SOURCE=200112 -I/sw/include -std=c99 -pipe - force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g - Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled- optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign - Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavcodec/i386/cavsdsp_mmx.o libavcodec/i386/cavsdsp_mmx.c libavcodec/i386/cavsdsp_mmx.c: In function ?ff_put_cavs_qpel8_mc01_3dnow?: libavcodec/i386/cavsdsp_mmx.c:448: error: can't find a register in class ?GENERAL_REGS? while reloading ?asm? make: *** [libavcodec/i386/cavsdsp_mmx.o] Error 1
I got exactly the same problem on OSX. It is due to --enable-shared
I have found two ways to get rid of the compiler (gcc 4.0 or gcc 4.2) error : --enable-shared --extra-cflags="-mdynamic-no-pic" or --enable-shared --disable-mmx
With the first you got lots of (perhaps dangerous warnings) and with the second you don't benefit from MMX speedup.
I wonder whether one could first install the *.dylibs with --enable-shared --disable-mmx (for other apps to link against) and then install a static linked ffmpeg excutable over it -- ffmpeg using the *.a libs then ... sounds veeery dirty. c -- \black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_ Ein deutscher Western/A German Western -->> http://www.blacktrash.org/underdogma/ccc.html -->> http://www.blacktrash.org/underdogma/ccc-en.html
On Tue, Nov 25, 2008 at 1:56 AM, Christian Ebert <blacktrash at gmx.net> wrote:
Hi,
After upgrading from MacOS 10.4.11 to 10.5.5 (Leopard/Intel) I can't build ffmpeg (r15935) with x264:
$ ./configure --enable-gpl --enable-nonfree \ --disable-network --disable-ffserver --disable-vhook --disable-ffplay \ --enable-shared \ --enable-postproc \ --enable-libfaad --enable-libfaac \ --enable-libx264 --enable-libxvid \ --enable-libmp3lame \ --extra-cflags="-I/sw/include" --extra-libs="-L/sw/lib" && make [...] gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/Users/chris/src/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -I/sw/include -std=c99 -pipe -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavcodec/i386/cavsdsp_mmx.o libavcodec/i386/cavsdsp_mmx.c libavcodec/i386/cavsdsp_mmx.c: In function 'ff_put_cavs_qpel8_mc01_3dnow': libavcodec/i386/cavsdsp_mmx.c:448: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' make: *** [libavcodec/i386/cavsdsp_mmx.o] Error 1
This error happens regardless of whether I compiled x264 against yasm or nasm or --disable-assembly.
Sure, that's because the error has nothing to do with x264. Dark Shikari
participants (3)
-
blacktrash@gmx.net -
darkshikari@gmail.com -
david.geldreich@free.fr