[mythtv-users] GCC 4.1 & 4.3 fails to build Mythtv svn trunk

Sam Logen starz909 at yahoo.com
Mon Jun 1 23:19:22 UTC 2009




--- On Mon, 6/1/09, Jean-Yves Avenard <jyavenard at gmail.com> wrote:

> From: Jean-Yves Avenard <jyavenard at gmail.com>
> Subject: Re: [mythtv-users] GCC 4.1 & 4.3 fails to build Mythtv svn trunk
> To: "Discussion about mythtv" <mythtv-users at mythtv.org>
> Date: Monday, June 1, 2009, 3:41 PM
> Hi
> 
> 2009/6/2 Sam Logen <starz909 at yahoo.com>:
> > gcc -c -pipe -march=athlon-xp -fomit-frame-pointer -O3
> -DNDEBUG -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm
> -std=c99 -pthread -g -Wall -Wno-switch
> -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
> -Wno-pointer-sign -Wcast-qual -funit-at-a-time
> -Wwrite-strings -fno-math-errno -w -D_REENTRANT -DPIC -fPIC
> -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
> -DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -DHAVE_XVMC
> -I/usr/share/qt4/mkspecs/linux-g++ -I. -I.. -I../.. -I. -o
> dsputil_mmx.o i386/dsputil_mmx.c
> > i386/h264dsp_mmx.c: In function
> 'put_h264_qpel4_h_lowpass_3dnow':
> > i386/h264dsp_mmx.c:1891: error: can't find a register
> in class 'GENERAL_REGS' while reloading 'asm'
> > make[2]: *** [dsputil_mmx.o] Error 1
> > -------------------------
> 
> I had this error yesterday trying to compile ffmpeg.
> 
> The issue was with -DPIC -fPIC
> 
> The configure line started was:
> CFLAGS="-g -O2 -fPIC -DPIC" ./configure
> --compile-type=debug
> --prefix=/usr --enable-lirc --enable-audio-alsa
> --enable-audio-oss
> --enable-audio-jack --enable-dvb --enable-ivtv
> --enable-firewire
> --enable-joystick-menu --enable-opengl-vsync
> --with-bindings=perl
> --enable-opengl-video --enable-ffmpeg-pthreads
> --enable-vdpau
> --enable-xvmc --enable-xvmc-vld --enable-xvmc-pro
> --enable-glx-procaddrarb --enable-libfaad --enable-libfaac
> --enable-libmp3lame --enable-libxvid --enable-libfftw3
> --enable-hdpvr
> 
> I changed it to:
>  ./configure --compile-type=debug --prefix=/usr
> --enable-lirc
> --enable-audio-alsa --enable-audio-oss --enable-audio-jack
> --enable-dvb --enable-ivtv --enable-firewire
> --enable-joystick-menu
> --enable-opengl-vsync --with-bindings=perl
> --enable-opengl-video
> --enable-ffmpeg-pthreads --enable-vdpau 
> --enable-xvmc
> --enable-xvmc-vld --enable-xvmc-pro
> --enable-glx-procaddrarb
> --enable-libfaad --enable-libfaac --enable-libmp3lame
> --enable-libxvid
> --enable-libfftw3 --enable-hdpvr
> 
> and it compiled just fine after that.

So is it something that should be fixed upstream with mythtv, or with ffmpeg?

It's my understanding that mythtv uses internal ffmpeg libraries instead of linking to ffmpeg libs in the system, so would it be detrimental to the entire mythtv build to omit these flags, just so that the ffmpeg libraries will compile correctly?


      


More information about the mythtv-users mailing list