Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Can't compile libavcodec in mythtv (v6754)

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


htpc at treblid

Jun 30, 2005, 8:19 PM

Post #1 of 9 (1190 views)
Permalink
Can't compile libavcodec in mythtv (v6754)

Dear all,

I have some problems compiling mythtv (version 6754). At the moment I'm
stuck while compiling libavcodec.

My OS is Mandrake 10.1 with GCC 4.0.0...

---
ccache gcc -c -pipe -march=pentium4 -w -O3 -Wall -Wno-switch
-fomit-frame-pointer -D_REENTRANT -DPIC -fPIC -DMMX -Di386
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
-DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -DHAVE_XVMC -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/lib/qt3/mkspecs/default -I. -I..
-I../.. -I/usr/lib/qt3//include -o dsputil_mmx.o i386/dsputil_mmx.c
i386/h264dsp_mmx.c: In function 'h264_h_loop_filter_luma_mmx2':
i386/dsputil_mmx.c:618: error: can't find a register in class
'GENERAL_REGS' while reloading 'asm'
i386/dsputil_mmx.c:618: error: can't find a register in class
'GENERAL_REGS' while reloading 'asm'
make[2]: *** [dsputil_mmx.o] Error 1
make[2]: Leaving directory `/home/tingjie/src/mythtv/libs/libavcodec'
make[1]: *** [sub-libavcodec] Error 2
make[1]: Leaving directory `/home/tingjie/src/mythtv/libs'
make: *** [sub-libs] Error 2
----

And if I manully take out "-march=pentium4 -O3" in the makefile, I hit
another error at "i386/fdct_mmx.c".. And here I'm stuck..
----
ccache gcc -c -pipe -w -Wall -Wno-switch -fomit-frame-pointer
-D_REENTRANT -DPIC -fPIC -DMMX -Di386 -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DHAVE_AV_CONFIG_H
-D_LARGEFILE_SOURCE -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-DQT_SHARED -I/usr/lib/qt3/mkspecs/default -I. -I.. -I../..
-I/usr/lib/qt3//include -o fdct_mmx.o i386/fdct_mmx.c
{standard input}: Assembler messages:
{standard input}:1597: Error: suffix or operands invalid for `pshufw'
make: *** [fdct_mmx.o] Error 1
-----

Any pointers will be appreciated.Thanks.


Regards,
Tj

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


ijr at case

Jun 30, 2005, 8:46 PM

Post #2 of 9 (1170 views)
Permalink
Re: Can't compile libavcodec in mythtv (v6754) [In reply to]

On Thursday 30 June 2005 11:19 pm, Tj wrote:
> Dear all,
>
> I have some problems compiling mythtv (version 6754). At the moment I'm
> stuck while compiling libavcodec.

Your errors show that you are _not_ compiling that revision.

Isaac
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


htpc at treblid

Jun 30, 2005, 8:59 PM

Post #3 of 9 (1188 views)
Permalink
Re: Can't compile libavcodec in mythtv (v6754) [In reply to]

Isaac Richards wrote:

>>Dear all,
>>
>>I have some problems compiling mythtv (version 6754). At the moment I'm
>>stuck while compiling libavcodec.
>>
>>
>Your errors show that you are _not_ compiling that revision.
>
>
>
Thanks for helping me.

Forgive me if I made any mistakes, I never used subversion before...

I run "svn update" from my mythtv sources directory, and I got the
following:
At revision 6754.

I then do a "make distclean"
and then:
"./configure \
--disable-audio-arts --disable-audio-jack --disable-lirc \
--disable-joystick-menu --disable-firewire --disable-ivtv \
--enable-dvb --enable-xvmc --disable-xvmc-vld
and then "make".
After a while, I got that "error: can't find a register in class
'GENERAL_REGS' while reloading 'asm'" error message.

Did I miss anything?

BTW, how can you tell I'm not running revision 6754? I will do a fresh
checkout and try again...

Thanks.

Regards,
Tj

PS: I also tried with the "--disable-xvmc" and still got the same results.

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


htpc at treblid

Jun 30, 2005, 9:56 PM

Post #4 of 9 (1170 views)
Permalink
Re: Can't compile libavcodec in mythtv (v6754) [In reply to]

Tj wrote:

> Isaac Richards wrote:
>
>> Your errors show that you are _not_ compiling that revision.
>
> BTW, how can you tell I'm not running revision 6754? I will do a fresh
> checkout and try again...

Dear Issac, and all,

Did a fresh checkout of head and still doesn't work.

When I checked out a older copy: "svn co
http://cvs.mythtv.org/svn/trunk/mythtv -r {2005-06-29}". That gave me
revision 6733 and everything compiled without a hitch.

Me suspect the "Ffmpeg resync. Shouldn't break anything, I don't think."
commit broke something on my machine.

Nobody getting the same problem?

Regards,
Tj



_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mark at dclabs

Jun 30, 2005, 11:58 PM

Post #5 of 9 (1178 views)
Permalink
Re: Can't compile libavcodec in mythtv (v6754) [In reply to]

I did an update this morning (10 hours ago) 6752
compiled fine after a distclean.
note that distclean doesnt do a real distclean as the config.mak and
config.h files are not deleted.
I posted a patch a while ago that does this if you are interested.
cheers
mark

> Dear Issac, and all,
>
> Did a fresh checkout of head and still doesn't work.
>
> When I checked out a older copy: "svn co
> http://cvs.mythtv.org/svn/trunk/mythtv -r {2005-06-29}". That gave me
> revision 6733 and everything compiled without a hitch.
>
> Me suspect the "Ffmpeg resync. Shouldn't break anything, I don't think."
> commit broke something on my machine.
>
> Nobody getting the same problem?
>
> Regards,
> Tj
>
>
>
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


htpc at treblid

Jul 1, 2005, 12:57 AM

Post #6 of 9 (1175 views)
Permalink
Re: Can't compile libavcodec in mythtv (v6754) [In reply to]

Mark Spieth wrote:

>I did an update this morning (10 hours ago) 6752
>compiled fine after a distclean.
>note that distclean doesnt do a real distclean as the config.mak and
>config.h files are not deleted.
>I posted a patch a while ago that does this if you are interested.
>
>
I still got the same error with 6752.... I know the problem is on my
side.. I just dunno what. ;p

CPU, gcc version? OS?



_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


awithers at anduin

Jul 1, 2005, 11:37 AM

Post #7 of 9 (1176 views)
Permalink
RE: Can't compile libavcodec in mythtv (v6754) [In reply to]

> i386/h264dsp_mmx.c: In function 'h264_h_loop_filter_luma_mmx2':
> i386/dsputil_mmx.c:618: error: can't find a register in class
> 'GENERAL_REGS' while reloading 'asm'
> i386/dsputil_mmx.c:618: error: can't find a register in class
> 'GENERAL_REGS' while reloading 'asm'
> make[2]: *** [dsputil_mmx.o] Error 1

I see the same thing (when I saw it initially, I did the same thing I always
do, go add -O2 and see if it works, it does). h264 is disabled with another
hack already, it looks like the last ffmpeg sync relocated much of the h264
mxx routines off into h264dsp_mmx.c, the most important change was that back
in 6468 h264_h_loop_filter_luma_mmx2 was implemented as #if 0 // code #endif
a highly optimized implementation that might be considered anew.

--
Anduin Withers


joelu.geo at yahoo

Jul 1, 2005, 10:20 PM

Post #8 of 9 (1172 views)
Permalink
RE: Can't compile libavcodec in mythtv (v6754) [In reply to]

On Fri, 2005-07-01 at 14:37 -0400, Anduin Withers wrote:
> > i386/h264dsp_mmx.c: In function 'h264_h_loop_filter_luma_mmx2':
> > i386/dsputil_mmx.c:618: error: can't find a register in class
> > 'GENERAL_REGS' while reloading 'asm'
> > i386/dsputil_mmx.c:618: error: can't find a register in class
> > 'GENERAL_REGS' while reloading 'asm'
> > make[2]: *** [dsputil_mmx.o] Error 1
>
> I see the same thing (when I saw it initially, I did the same thing I always
> do, go add -O2 and see if it works, it does). h264 is disabled with another
> hack already, it looks like the last ffmpeg sync relocated much of the h264
> mxx routines off into h264dsp_mmx.c, the most important change was that back
> in 6468 h264_h_loop_filter_luma_mmx2 was implemented as #if 0 // code #endif
> a highly optimized implementation that might be considered anew.

I get the same compile error - Using Fedora Core 4 with GCC 4.0

Everything worked fine until I did a fresh update using the new svn
repository today.

Bye - Joel.


htpc at treblid

Jul 2, 2005, 7:28 PM

Post #9 of 9 (1146 views)
Permalink
Re: Can't compile libavcodec in mythtv (v6754) [In reply to]

Anduin Withers wrote:

>I see the same thing (when I saw it initially, I did the same thing I always
>do, go add -O2 and see if it works, it does). h264 is disabled with another
>hack already, it looks like the last ffmpeg sync relocated much of the h264
>
>
Ah..saw ur ticket and now libavcodec compiles properly again...

i have to add a "#include <errno.h> in programs/mythbackend/main.cpp as
well though.

thanx.


_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.