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

Mailing List Archive: MythTV: Dev

'bug' in mythtv register use?

 

 

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


martin at martinm-76

Apr 14, 2003, 2:03 PM

Post #1 of 8 (1905 views)
Permalink
'bug' in mythtv register use?

Hello all.

On my new SuSE Linux 8.2 setup, mythtv won't compile, it keeps giving
this error:

gcc -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC
-DNO_DEBUG -w -O3 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DMMX -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I../..
-I/usr/include -I/usr/lib/qt3/include -o imgresample.o imgresample.c
gcc -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC
-DNO_DEBUG -w -O3 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DMMX -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I../..
-I/usr/include -I/usr/lib/qt3/include -o msmpeg4.o msmpeg4.c
common.h: In function `msmpeg4_pred_dc':
msmpeg4.c:737: error: can't find a register in class `BREG' while
reloading `asm'
msmpeg4.c:737: error: can't find a register in class `BREG' while
reloading `asm'
make[2]: *** [msmpeg4.o] Fejl 1
make[2]: Leaving directory `/home/martin/CVS/mythtv/MC/libs/libavcodec'
make[1]: *** [sub-libavcodec] Fejl 2
make[1]: Leaving directory `/home/martin/CVS/mythtv/MC/libs'
make: *** [sub-libs] Fejl 2

A bit of searching on google got me this:
http://lists.debian.org/debian-gcc/2002/debian-gcc-200207/msg00094.html

Another suggested that removing PIC from the compilation should work
just fine. I'm trying to see if I can get that to happen right now:
http://lists.debian.org/debian-gcc/2002/debian-gcc-200207/msg00089.html

As you can see, it only seems to happen in libavcodec.
.. Okay, it seems everything compiles if i remove -fPIC from the
Makefile in the libavcodec catalog. At least that's a way around it for
now. Next is to see if it also works :)

Well, either the lack of -fPIC broke something or more things are
problematic with GCC 3.3:


g++ -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC
-DNO_DEBUG -Wall -W -O6 -march=pentiumpro -fomit-frame-pointer
-funroll-loops -fexpensive-optimizations `freetype-config --cflags`
-D_REENTRANT -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DPREFIX=\"/usr/local\" -DMMX -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/local/include -I../libmyth
-I.. -I../libavcodec -I../libavformat -I/usr/include
-I/usr/lib/qt3/include -o nuppeldecoder.o nuppeldecoder.cpp
nuppeldecoder.cpp: In function `void
release_nuppel_buffer(AVCodecContext*, AVFrame*)':
nuppeldecoder.cpp:399: error: `assert' undeclared (first use this
function)
nuppeldecoder.cpp:399: error: (Each undeclared identifier is reported
only once for each function it appears in.)
make[2]: *** [nuppeldecoder.o] Fejl 1
make[2]: Leaving directory `/home/martin/CVS/mythtv/MC/libs/libmythtv'
make[1]: *** [sub-libmythtv] Fejl 2
make[1]: Leaving directory `/home/martin/CVS/mythtv/MC/libs'
make: *** [sub-libs] Fejl 2

That seems to indicate some code needs altering in the future to work on
modern systems. Maybe it will even help stability?

I'm not sure what to do about this...

--
Martin Moeller <martin[at]martinm-76.dk>


ijr at po

Apr 14, 2003, 2:10 PM

Post #2 of 8 (1824 views)
Permalink
Re: 'bug' in mythtv register use? [In reply to]

On Monday 14 April 2003 05:03 pm, Martin Moeller wrote:
> That seems to indicate some code needs altering in the future to work on
> modern systems. Maybe it will even help stability?
>
> I'm not sure what to do about this...

The best thing would be to not use compilers that are not yet officially
released.

Isaac


mdz at debian

Apr 14, 2003, 3:05 PM

Post #3 of 8 (1861 views)
Permalink
Re: 'bug' in mythtv register use? [In reply to]

On Mon, Apr 14, 2003 at 11:03:14PM +0200, Martin Moeller wrote:

> On my new SuSE Linux 8.2 setup, mythtv won't compile, it keeps giving
> this error:
> [...]
> common.h: In function `msmpeg4_pred_dc':
> msmpeg4.c:737: error: can't find a register in class `BREG' while
> reloading `asm'
> msmpeg4.c:737: error: can't find a register in class `BREG' while
> reloading `asm'
> [...]
> As you can see, it only seems to happen in libavcodec.
> .. Okay, it seems everything compiles if i remove -fPIC from the
> Makefile in the libavcodec catalog. At least that's a way around it for
> now. Next is to see if it also works :)

That asm statement should be omitted if you are building with PIC. Try
using -DPIC in addition to -fPIC.

> nuppeldecoder.cpp: In function `void
> release_nuppel_buffer(AVCodecContext*, AVFrame*)':
> nuppeldecoder.cpp:399: error: `assert' undeclared (first use this
> function)
> nuppeldecoder.cpp:399: error: (Each undeclared identifier is reported
> only once for each function it appears in.)

Try adding #include <assert.h>

--
- mdz


mdz at debian

Apr 14, 2003, 3:17 PM

Post #4 of 8 (1823 views)
Permalink
Re: 'bug' in mythtv register use? [In reply to]

On Mon, Apr 14, 2003 at 06:05:28PM -0400, Matt Zimmerman wrote:

> On Mon, Apr 14, 2003 at 11:03:14PM +0200, Martin Moeller wrote:
> > As you can see, it only seems to happen in libavcodec.
> > .. Okay, it seems everything compiles if i remove -fPIC from the
> > Makefile in the libavcodec catalog. At least that's a way around it for
> > now. Next is to see if it also works :)
>
> That asm statement should be omitted if you are building with PIC. Try
> using -DPIC in addition to -fPIC.

How did you end up building with -fPIC in the first place? Did you try to
configure it to build a shared library? If so, don't do that.

> > nuppeldecoder.cpp: In function `void
> > release_nuppel_buffer(AVCodecContext*, AVFrame*)':
> > nuppeldecoder.cpp:399: error: `assert' undeclared (first use this
> > function)
> > nuppeldecoder.cpp:399: error: (Each undeclared identifier is reported
> > only once for each function it appears in.)
>
> Try adding #include <assert.h>

Fixed in CVS.

--
- mdz


martin at martinm-76

Apr 15, 2003, 12:16 PM

Post #5 of 8 (1825 views)
Permalink
Re: 'bug' in mythtv register use? [In reply to]

I ran ./configure without arguments, I even tried ./configure
--disable-shared, but it didn't seem to have any effect. The minute I
wrote 'make' after ./configure (either case) qmake inserted this -fPIC
business.. I even checked the config.mak file and it was not listed in
there, which have me fairly puzzled at this whole thing...

tir, 2003-04-15 kl. 00:17 skrev Matt Zimmerman:
> On Mon, Apr 14, 2003 at 06:05:28PM -0400, Matt Zimmerman wrote:
>
> > On Mon, Apr 14, 2003 at 11:03:14PM +0200, Martin Moeller wrote:
> > > As you can see, it only seems to happen in libavcodec.
> > > .. Okay, it seems everything compiles if i remove -fPIC from the
> > > Makefile in the libavcodec catalog. At least that's a way around it for
> > > now. Next is to see if it also works :)
> >
> > That asm statement should be omitted if you are building with PIC. Try
> > using -DPIC in addition to -fPIC.
>
> How did you end up building with -fPIC in the first place? Did you try to
> configure it to build a shared library? If so, don't do that.
>
> > > nuppeldecoder.cpp: In function `void
> > > release_nuppel_buffer(AVCodecContext*, AVFrame*)':
> > > nuppeldecoder.cpp:399: error: `assert' undeclared (first use this
> > > function)
> > > nuppeldecoder.cpp:399: error: (Each undeclared identifier is reported
> > > only once for each function it appears in.)
> >
> > Try adding #include <assert.h>
>
> Fixed in CVS.
--
Martin Moeller <martin[at]martinm-76.dk>


martin at martinm-76

Apr 15, 2003, 1:01 PM

Post #6 of 8 (1822 views)
Permalink
Re: 'bug' in mythtv register use? [In reply to]

Replying to my own message, I'd just like to say that I now got myth to
compile with libs/libavcodec stripped for any type of PICs and
avformatdecoder.cpp having an #include <assert.h> line in it (I put one
in nuppeldecoder.cpp as well, not sure if it was needed).
That is pretty doable for now and it seems Isaac is right and GCC 3.3 is
not yet official. I'm surprised SuSE has used it, then, but why complain
-- my system is quite a bit faster than before (as least it seams to
be).

/Martin.

tir, 2003-04-15 kl. 21:16 skrev Martin Moeller:
> I ran ./configure without arguments, I even tried ./configure
> --disable-shared, but it didn't seem to have any effect. The minute I
> wrote 'make' after ./configure (either case) qmake inserted this -fPIC
> business.. I even checked the config.mak file and it was not listed in
> there, which have me fairly puzzled at this whole thing...

--
Martin Moeller <martin[at]martinm-76.dk>


bjm at lvcm

Apr 15, 2003, 3:03 PM

Post #7 of 8 (1854 views)
Permalink
Re: 'bug' in mythtv register use? [In reply to]

Martin Moeller wrote:
> I ran ./configure without arguments, I even tried ./configure
> --disable-shared, but it didn't seem to have any effect. The minute I
> wrote 'make' after ./configure (either case) qmake inserted this -fPIC
> business.. I even checked the config.mak file and it was not listed in
> there, which have me fairly puzzled at this whole thing...

: bjm[at]moktoo ; ./configure
Please note that these settings only deal with libavcodec, not MythTV.
Install prefix /usr/local
...

-- bjm


martin at martinm-76

Apr 16, 2003, 10:27 AM

Post #8 of 8 (1859 views)
Permalink
Re: 'bug' in mythtv register use? [In reply to]

I am aware that configure only deals with libavcodec, but it has to be
run, does it not?

My 'problem' seems to lie with qmake, it seems:

#############################################################################
# Makefile for building: libavcodec.a
# Generated by qmake (1.04a) (Qt 3.1.1) on: Mon Apr 14 22:44:33 2003
# Project: libavcodec.pro
# Template: lib
# Command: $(QMAKE) -o Makefile libavcodec.pro
#############################################################################

This makefile is not generated by simply runing configure and the
options that ought to set -fPIC to on are not activated... ?!

ons, 2003-04-16 kl. 00:03 skrev Bruce Markey:
> Martin Moeller wrote:
> > I ran ./configure without arguments, I even tried ./configure
> > --disable-shared, but it didn't seem to have any effect. The minute I
> > wrote 'make' after ./configure (either case) qmake inserted this -fPIC
> > business.. I even checked the config.mak file and it was not listed in
> > there, which have me fairly puzzled at this whole thing...
>
> : bjm[at]moktoo ; ./configure
> Please note that these settings only deal with libavcodec, not MythTV.
> Install prefix /usr/local
> ...
>
> -- bjm
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev[at]snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-dev
--
Martin Moeller <martin[at]martinm-76.dk>

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.