[Ffmpeg-devel] [PATCH] Compiling problems on CVS

Ramiro Polla ramiro86
Wed Apr 19 15:12:16 CEST 2006


Hi,

I think ffmpeg should be compilable for debug without the need of hacking 
Makefiles.

I suggest something such as a flag for the makefiles that is set when 
optimization is disabled. The specific files that require optimization could 
check that flag and add -O3.

Or just adding -O3 directly for all files that need optimization. This 
simple patch I'm submitting only fixes for libavcodec/i386/dsputil_mmx.o, 
which is the only error I get without adding any --enable-xxx.

Bye,
Ramiro Polla
btw, just -fomit-frame-pointer didn't do the trick...

>From: "Ronald S. Bultje" <rbultje at ronald.bitfreak.net>
>Reply-To: FFMpeg development discussions and patches 
><ffmpeg-devel at mplayerhq.hu>
>To: ffmpeg-devel at mplayerhq.hu
>Subject: Re: [Ffmpeg-devel] Compiling problems on CVS
>Date: Thu, 13 Apr 2006 11:53:49 -0400
>
>Hi,
>
>On Thu, 13 Apr 2006 09:36:51 -0300, Ramiro Polla wrote:
> > ./configure --disable-opts --prefix=/home/ramiro --disable-strip
>[..]
> > gcc -g -Wall -Wno-switch  -DHAVE_AV_CONFIG_H -I..
> > -I/home/ramiro/ffmpeg/libavutil -D_FILE_OFFSET_BITS=64 
>-D_LARGEFILE_SOURCE
> > -D_GNU_SOURCE   -c -o i386/dsputil_mmx.o i386/dsputil_mmx.c
> > i386/dsputil_mmx.c: In function `transpose4x4':
> > i386/dsputil_mmx.c:621: error: can't find a register in class 
>`GENERAL_REGS'
> > while reloading `asm'
>
>You'll need to add -fomit-frame-pointer to your CFLAGS to compile
>libavcodec/i386/*. --disable-opts removes it from the ffmpeg default
>CFLAGS.
>
>On Thu, 13 Apr 2006 14:42:53 +0200, Guillaume Poirier wrote:
> > It means GCC screwed up reg alloc...
>
>Some people need to learn to stop blaming gcc automatically.
>
>Ronald
>
>_______________________________________________
>ffmpeg-devel mailing list
>ffmpeg-devel at mplayerhq.hu
>http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.patch
Type: text/x-patch
Size: 416 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060419/11e6d0ed/attachment.bin>



More information about the ffmpeg-devel mailing list