Mailing List Archive

Compile Mythtv on PS3
after using this ./configure

./configure --disable-altivec --disable-audio-arts --disable-audio-jack
--disable-valgrind --disable-firewire --disable-freebox --disable-dbox2
--disable-hdhomerun --disable-crciprec --disable-ivtv
--disable-xvmc-opengl --disable-mmx --disable-xv --disable-iwmmxt

I get this error

make[2]: Entering directory `/tmp/mythtv-0.20/libs/libmythmpeg2'
gcc -c -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common -D_REENTRANT
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
-DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED
-I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
-I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
cpu_accel.c
{standard input}: Assembler messages:
{standard input}:60: Error: unsupported relocation against v0
{standard input}:60: Error: unsupported relocation against v0
{standard input}:60: Error: unsupported relocation against v0
make[2]: *** [cpu_accel.o] Error 1

I'm disabling as many options as possible just to get it to compile and
then work up from there. Any help or direction would be appriciated.

Thanks

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
whats your output from configure? what CPU did it detect?

On 12/19/06, crsheaves@catnetsolutions.com
<crsheaves@catnetsolutions.com> wrote:
> after using this ./configure
>
> ./configure --disable-altivec --disable-audio-arts --disable-audio-jack
> --disable-valgrind --disable-firewire --disable-freebox --disable-dbox2
> --disable-hdhomerun --disable-crciprec --disable-ivtv
> --disable-xvmc-opengl --disable-mmx --disable-xv --disable-iwmmxt
>
> I get this error
>
> make[2]: Entering directory `/tmp/mythtv-0.20/libs/libmythmpeg2'
> gcc -c -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common -D_REENTRANT
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED
> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
> cpu_accel.c
> {standard input}: Assembler messages:
> {standard input}:60: Error: unsupported relocation against v0
> {standard input}:60: Error: unsupported relocation against v0
> {standard input}:60: Error: unsupported relocation against v0
> make[2]: *** [cpu_accel.o] Error 1
>
> I'm disabling as many options as possible just to get it to compile and
> then work up from there. Any help or direction would be appriciated.
>
> Thanks
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
powerpc (ppc64)

> whats your output from configure? what CPU did it detect?
>
> On 12/19/06, crsheaves@catnetsolutions.com
> <crsheaves@catnetsolutions.com> wrote:
>> after using this ./configure
>>
>> ./configure --disable-altivec --disable-audio-arts --disable-audio-jack
>> --disable-valgrind --disable-firewire --disable-freebox --disable-dbox2
>> --disable-hdhomerun --disable-crciprec --disable-ivtv
>> --disable-xvmc-opengl --disable-mmx --disable-xv --disable-iwmmxt
>>
>> I get this error
>>
>> make[2]: Entering directory `/tmp/mythtv-0.20/libs/libmythmpeg2'
>> gcc -c -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common
>> -D_REENTRANT
>> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
>> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
>> -DQT_SHARED
>> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
>> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
>> cpu_accel.c
>> {standard input}: Assembler messages:
>> {standard input}:60: Error: unsupported relocation against v0
>> {standard input}:60: Error: unsupported relocation against v0
>> {standard input}:60: Error: unsupported relocation against v0
>> make[2]: *** [cpu_accel.o] Error 1
>>
>> I'm disabling as many options as possible just to get it to compile and
>> then work up from there. Any help or direction would be appriciated.
>>
>> Thanks
>>
>> _______________________________________________
>> mythtv-dev mailing list
>> mythtv-dev@mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>




_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
is that right for a ps3?

maybe force it to be something else (not really sure what thou.. :))

cutting edge hey?

On 12/19/06, crsheaves@catnetsolutions.com
<crsheaves@catnetsolutions.com> wrote:
> powerpc (ppc64)
>
> > whats your output from configure? what CPU did it detect?
> >
> > On 12/19/06, crsheaves@catnetsolutions.com
> > <crsheaves@catnetsolutions.com> wrote:
> >> after using this ./configure
> >>
> >> ./configure --disable-altivec --disable-audio-arts --disable-audio-jack
> >> --disable-valgrind --disable-firewire --disable-freebox --disable-dbox2
> >> --disable-hdhomerun --disable-crciprec --disable-ivtv
> >> --disable-xvmc-opengl --disable-mmx --disable-xv --disable-iwmmxt
> >>
> >> I get this error
> >>
> >> make[2]: Entering directory `/tmp/mythtv-0.20/libs/libmythmpeg2'
> >> gcc -c -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common
> >> -D_REENTRANT
> >> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
> >> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> >> -DQT_SHARED
> >> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
> >> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
> >> cpu_accel.c
> >> {standard input}: Assembler messages:
> >> {standard input}:60: Error: unsupported relocation against v0
> >> {standard input}:60: Error: unsupported relocation against v0
> >> {standard input}:60: Error: unsupported relocation against v0
> >> make[2]: *** [cpu_accel.o] Error 1
> >>
> >> I'm disabling as many options as possible just to get it to compile and
> >> then work up from there. Any help or direction would be appriciated.
> >>
> >> Thanks
> >>
> >> _______________________________________________
> >> mythtv-dev mailing list
> >> mythtv-dev@mythtv.org
> >> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >>
> > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev@mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >
>
>
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
Yes, to be honest, I can install off of atrpm and it will install
myth-suite fine. But when I run it I get a strange library error with
libmythavcodec. I can then run just /.configure and make and it will
fail, BUT it has created the libmythavcodec and I can put that file in
place of the lib file that was installed from atrpm. Mythtv runs ALMOST
100% after doing this. Mythtv fails to probe the card and I get no
selections for input connections. I have verified the WinTV-PVR-USB2 is
totally working fine. Also what is strange is if I save the card config,
and go back in to edit the device, it actually does list Television at the
bottom, but still says failed to probe card.

Soooooo, after all that....I'm juts trying to ccompile from source to get
this failed to probe working. I saw this type of error on the forums for
another ppc and a build from scratch worked.

LOL, quite cutting edge. BTW, I'm stuck running 2.6.16, but have got
2.6.16.34 working with no change.

Thanks

> is that right for a ps3?
>
> maybe force it to be something else (not really sure what thou.. :))
>
> cutting edge hey?
>
> On 12/19/06, crsheaves@catnetsolutions.com
> <crsheaves@catnetsolutions.com> wrote:
>> powerpc (ppc64)
>>
>> > whats your output from configure? what CPU did it detect?
>> >
>> > On 12/19/06, crsheaves@catnetsolutions.com
>> > <crsheaves@catnetsolutions.com> wrote:
>> >> after using this ./configure
>> >>
>> >> ./configure --disable-altivec --disable-audio-arts
>> --disable-audio-jack
>> >> --disable-valgrind --disable-firewire --disable-freebox
>> --disable-dbox2
>> >> --disable-hdhomerun --disable-crciprec --disable-ivtv
>> >> --disable-xvmc-opengl --disable-mmx --disable-xv --disable-iwmmxt
>> >>
>> >> I get this error
>> >>
>> >> make[2]: Entering directory `/tmp/mythtv-0.20/libs/libmythmpeg2'
>> >> gcc -c -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common
>> >> -D_REENTRANT
>> >> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
>> >> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
>> >> -DQT_SHARED
>> >> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
>> >> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
>> >> cpu_accel.c
>> >> {standard input}: Assembler messages:
>> >> {standard input}:60: Error: unsupported relocation against v0
>> >> {standard input}:60: Error: unsupported relocation against v0
>> >> {standard input}:60: Error: unsupported relocation against v0
>> >> make[2]: *** [cpu_accel.o] Error 1
>> >>
>> >> I'm disabling as many options as possible just to get it to compile
>> and
>> >> then work up from there. Any help or direction would be appriciated.
>> >>
>> >> Thanks
>> >>
>> >> _______________________________________________
>> >> mythtv-dev mailing list
>> >> mythtv-dev@mythtv.org
>> >> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>> >>
>> > _______________________________________________
>> > mythtv-dev mailing list
>> > mythtv-dev@mythtv.org
>> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>> >
>>
>>
>>
>>
>> _______________________________________________
>> mythtv-dev mailing list
>> mythtv-dev@mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
Are you trying trunk from SVN? or just .20-fixes?

On 12/19/06, crsheaves@catnetsolutions.com
<crsheaves@catnetsolutions.com> wrote:
> Yes, to be honest, I can install off of atrpm and it will install
> myth-suite fine. But when I run it I get a strange library error with
> libmythavcodec. I can then run just /.configure and make and it will
> fail, BUT it has created the libmythavcodec and I can put that file in
> place of the lib file that was installed from atrpm. Mythtv runs ALMOST
> 100% after doing this. Mythtv fails to probe the card and I get no
> selections for input connections. I have verified the WinTV-PVR-USB2 is
> totally working fine. Also what is strange is if I save the card config,
> and go back in to edit the device, it actually does list Television at the
> bottom, but still says failed to probe card.
>
> Soooooo, after all that....I'm juts trying to ccompile from source to get
> this failed to probe working. I saw this type of error on the forums for
> another ppc and a build from scratch worked.
>
> LOL, quite cutting edge. BTW, I'm stuck running 2.6.16, but have got
> 2.6.16.34 working with no change.
>
> Thanks
>
> > is that right for a ps3?
> >
> > maybe force it to be something else (not really sure what thou.. :))
> >
> > cutting edge hey?
> >
> > On 12/19/06, crsheaves@catnetsolutions.com
> > <crsheaves@catnetsolutions.com> wrote:
> >> powerpc (ppc64)
> >>
> >> > whats your output from configure? what CPU did it detect?
> >> >
> >> > On 12/19/06, crsheaves@catnetsolutions.com
> >> > <crsheaves@catnetsolutions.com> wrote:
> >> >> after using this ./configure
> >> >>
> >> >> ./configure --disable-altivec --disable-audio-arts
> >> --disable-audio-jack
> >> >> --disable-valgrind --disable-firewire --disable-freebox
> >> --disable-dbox2
> >> >> --disable-hdhomerun --disable-crciprec --disable-ivtv
> >> >> --disable-xvmc-opengl --disable-mmx --disable-xv --disable-iwmmxt
> >> >>
> >> >> I get this error
> >> >>
> >> >> make[2]: Entering directory `/tmp/mythtv-0.20/libs/libmythmpeg2'
> >> >> gcc -c -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common
> >> >> -D_REENTRANT
> >> >> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
> >> >> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> >> >> -DQT_SHARED
> >> >> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
> >> >> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
> >> >> cpu_accel.c
> >> >> {standard input}: Assembler messages:
> >> >> {standard input}:60: Error: unsupported relocation against v0
> >> >> {standard input}:60: Error: unsupported relocation against v0
> >> >> {standard input}:60: Error: unsupported relocation against v0
> >> >> make[2]: *** [cpu_accel.o] Error 1
> >> >>
> >> >> I'm disabling as many options as possible just to get it to compile
> >> and
> >> >> then work up from there. Any help or direction would be appriciated.
> >> >>
> >> >> Thanks
> >> >>
> >> >> _______________________________________________
> >> >> mythtv-dev mailing list
> >> >> mythtv-dev@mythtv.org
> >> >> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >> >>
> >> > _______________________________________________
> >> > mythtv-dev mailing list
> >> > mythtv-dev@mythtv.org
> >> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >> >
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> mythtv-dev mailing list
> >> mythtv-dev@mythtv.org
> >> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >>
> > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev@mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
.20-fixes

> Are you trying trunk from SVN? or just .20-fixes?
>
> On 12/19/06, crsheaves@catnetsolutions.com
> <crsheaves@catnetsolutions.com> wrote:
>> Yes, to be honest, I can install off of atrpm and it will install
>> myth-suite fine. But when I run it I get a strange library error with
>> libmythavcodec. I can then run just /.configure and make and it will
>> fail, BUT it has created the libmythavcodec and I can put that file in
>> place of the lib file that was installed from atrpm. Mythtv runs ALMOST
>> 100% after doing this. Mythtv fails to probe the card and I get no
>> selections for input connections. I have verified the WinTV-PVR-USB2 is
>> totally working fine. Also what is strange is if I save the card
>> config,
>> and go back in to edit the device, it actually does list Television at
>> the
>> bottom, but still says failed to probe card.
>>
>> Soooooo, after all that....I'm juts trying to ccompile from source to
>> get
>> this failed to probe working. I saw this type of error on the forums
>> for
>> another ppc and a build from scratch worked.
>>
>> LOL, quite cutting edge. BTW, I'm stuck running 2.6.16, but have got
>> 2.6.16.34 working with no change.
>>
>> Thanks
>>
>> > is that right for a ps3?
>> >
>> > maybe force it to be something else (not really sure what thou.. :))
>> >
>> > cutting edge hey?
>> >
>> > On 12/19/06, crsheaves@catnetsolutions.com
>> > <crsheaves@catnetsolutions.com> wrote:
>> >> powerpc (ppc64)
>> >>
>> >> > whats your output from configure? what CPU did it detect?
>> >> >
>> >> > On 12/19/06, crsheaves@catnetsolutions.com
>> >> > <crsheaves@catnetsolutions.com> wrote:
>> >> >> after using this ./configure
>> >> >>
>> >> >> ./configure --disable-altivec --disable-audio-arts
>> >> --disable-audio-jack
>> >> >> --disable-valgrind --disable-firewire --disable-freebox
>> >> --disable-dbox2
>> >> >> --disable-hdhomerun --disable-crciprec --disable-ivtv
>> >> >> --disable-xvmc-opengl --disable-mmx --disable-xv --disable-iwmmxt
>> >> >>
>> >> >> I get this error
>> >> >>
>> >> >> make[2]: Entering directory `/tmp/mythtv-0.20/libs/libmythmpeg2'
>> >> >> gcc -c -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common
>> >> >> -D_REENTRANT
>> >> >> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
>> >> >> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
>> >> >> -DQT_SHARED
>> >> >> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
>> >> >> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
>> >> >> cpu_accel.c
>> >> >> {standard input}: Assembler messages:
>> >> >> {standard input}:60: Error: unsupported relocation against v0
>> >> >> {standard input}:60: Error: unsupported relocation against v0
>> >> >> {standard input}:60: Error: unsupported relocation against v0
>> >> >> make[2]: *** [cpu_accel.o] Error 1
>> >> >>
>> >> >> I'm disabling as many options as possible just to get it to
>> compile
>> >> and
>> >> >> then work up from there. Any help or direction would be
>> appriciated.
>> >> >>
>> >> >> Thanks
>> >> >>
>> >> >> _______________________________________________
>> >> >> mythtv-dev mailing list
>> >> >> mythtv-dev@mythtv.org
>> >> >> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>> >> >>
>> >> > _______________________________________________
>> >> > mythtv-dev mailing list
>> >> > mythtv-dev@mythtv.org
>> >> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>> >> >
>> >>
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> mythtv-dev mailing list
>> >> mythtv-dev@mythtv.org
>> >> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>> >>
>> > _______________________________________________
>> > mythtv-dev mailing list
>> > mythtv-dev@mythtv.org
>> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>> >
>>
>>
>> _______________________________________________
>> mythtv-dev mailing list
>> mythtv-dev@mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
> I get this error
>
> make[2]: Entering directory `/tmp/mythtv-0.20/libs/libmythmpeg2'
> gcc -c -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common -
> D_REENTRANT
>> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
>> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -
>> DQT_SHARED
>> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
>> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
>> cpu_accel.c
> {standard input}: Assembler messages:
> {standard input}:60: Error: unsupported relocation against v0
> {standard input}:60: Error: unsupported relocation against v0
> {standard input}:60: Error: unsupported relocation against v0
> make[2]: *** [cpu_accel.o] Error 1

Could you send us the output of the preprocessor on that file?
e.g.

gcc -E -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common -
D_REENTRANT
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
-DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -
DQT_SHARED
-I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
-I../../libs/libavcodec -I/usr/lib/qt-3.3/include
cpu_accel.c

--
Nigel Pearson, nigel@ind.tansu.com.au|"I haven't tested it yet, but
Telstra Net. Eng., Sydney, Australia | it should be perfectly safe."
Office: 9202 3900 Fax: 9261 3912 |"Just a bit or harmless brain
Mobile: 0408 664435 Home: 9792 6998 | manipulation, that's all" -
Wallace

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
>> I get this error
>>
>> make[2]: Entering directory `/tmp/mythtv-0.20/libs/libmythmpeg2'
>> gcc -c -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common -
>> D_REENTRANT
>>> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
>>> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -
>>> DQT_SHARED
>>> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
>>> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
>>> cpu_accel.c
>> {standard input}: Assembler messages:
>> {standard input}:60: Error: unsupported relocation against v0
>> {standard input}:60: Error: unsupported relocation against v0
>> {standard input}:60: Error: unsupported relocation against v0
>> make[2]: *** [cpu_accel.o] Error 1
>
> Could you send us the output of the preprocessor on that file?
> e.g.
>
> gcc -E -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common -
> D_REENTRANT
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -
> DQT_SHARED
> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include
> cpu_accel.c
>
> --
> Nigel Pearson, nigel@ind.tansu.com.au|"I haven't tested it yet, but
> Telstra Net. Eng., Sydney, Australia | it should be perfectly safe."
> Office: 9202 3900 Fax: 9261 3912 |"Just a bit or harmless brain
> Mobile: 0408 664435 Home: 9792 6998 | manipulation, that's all" -
> Wallace
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>


I'm sorry but I've never needed to pull this info before. What exactly do
I need to do with that file? Thanks for the help

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
>> I get this error
>>
>> make[2]: Entering directory `/tmp/mythtv-0.20/libs/libmythmpeg2' gcc -c
-pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common - D_REENTRANT
>>> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
>>> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -
DQT_SHARED
>>> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
>>> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
cpu_accel.c
>> {standard input}: Assembler messages:
>> {standard input}:60: Error: unsupported relocation against v0
>> {standard input}:60: Error: unsupported relocation against v0
>> {standard input}:60: Error: unsupported relocation against v0
>> make[2]: *** [cpu_accel.o] Error 1
>
> Could you send us the output of the preprocessor on that file?
> e.g.
>
> gcc -E -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common -
> D_REENTRANT
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -
> DQT_SHARED
> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include
> cpu_accel.c
>
> --
> Nigel Pearson, nigel@ind.tansu.com.au|"I haven't tested it yet, but
Telstra Net. Eng., Sydney, Australia | it should be perfectly safe."
Office: 9202 3900 Fax: 9261 3912 |"Just a bit or harmless brain
Mobile: 0408 664435 Home: 9792 6998 | manipulation, that's all" -
Wallace
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>


>I'm sorry but I've never needed to pull this info before. What exactly
do >I need to do with that file? Thanks for the help

Duh, I see what you want me to do. My question is do you want me to
attach the entire output in file or just post the output? The output is
extremely long.

Thanks


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
> I'm sorry but I've never needed to pull this info before. What
> exactly do
> I need to do with that file?

Running gcc -E will list everything that the
compiler/assembler is trying to compiler.
The error says line 60 has some errors,
so we need to look at line 60 of a file.

gcc -E ... cpu_accel.c > cpu_accel.pp.c

will generate a file that resembles
what the compiler tried to compile.
Attach that to an email message.


Note that the line numbers may change,
so you may need to mail both this file,
and the result of running gcc on it.

--
Nigel Pearson, nigel@ind.tansu.com.au|"I haven't tested it yet, but
Telstra Net. Eng., Sydney, Australia | it should be perfectly safe."
Office: 9202 3900 Fax: 9261 3912 |"Just a bit or harmless brain
Mobile: 0408 664435 Home: 9792 6998 | manipulation, that's all" -
Wallace

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
I have it sent, but it was 47K in size, so it's waiting on a mod to
approve it.

On Tue, 2006-12-19 at 16:58 +1100, Nigel Pearson wrote:
> > I'm sorry but I've never needed to pull this info before. What
> > exactly do
> > I need to do with that file?
>
> Running gcc -E will list everything that the
> compiler/assembler is trying to compiler.
> The error says line 60 has some errors,
> so we need to look at line 60 of a file.
>
> gcc -E ... cpu_accel.c > cpu_accel.pp.c
>
> will generate a file that resembles
> what the compiler tried to compile.
> Attach that to an email message.
>
>
> Note that the line numbers may change,
> so you may need to mail both this file,
> and the result of running gcc on it.
>
> --
> Nigel Pearson, nigel@ind.tansu.com.au|"I haven't tested it yet, but
> Telstra Net. Eng., Sydney, Australia | it should be perfectly safe."
> Office: 9202 3900 Fax: 9261 3912 |"Just a bit or harmless brain
> Mobile: 0408 664435 Home: 9792 6998 | manipulation, that's all" -
> Wallace
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
> gcc -c -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common -
> D_REENTRANT
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -
> DQT_SHARED
> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
> cpu_accel.c
> {standard input}: Assembler messages:
> {standard input}:60: Error: unsupported relocation against v0
> {standard input}:60: Error: unsupported relocation against v0
> {standard input}:60: Error: unsupported relocation against v0
> make[2]: *** [cpu_accel.o] Error 1

From your preprocessor output, I can't see much wrong.
It is including the correct function (the PPC one at line 150).
Only strange thing is that it seems to be using the __APPLE__
version of the VAND macro:

#if defined(HAVE_ALTIVEC_H) && !defined(__APPLE__) /* gnu */
#define VAND(a,b,c) "vand " #a "," #b "," #c "\n\t"
#else /* apple */
#define VAND(a,b,c) "vand v" #a ",v" #b ",v" #c "\n\t"
#endif
asm volatile ("mtspr 256, %0\n\t"
VAND (0, 0, 0)
:
: "r" (-1));

which is being expanded as:

asm volatile ("mtspr 256, %0\n\t"
"vand v" "0" ",v" "0" ",v" "0" "\n\t"
:
: "r" (-1));




My suggested workarounds:

1) Turn off the CPU detection in libmythmpeg2.
Edit the file mythtv/libs/libmythmpeg2/config.h
and comment out the #define ACCEL_DETECT line.
That should get you compiling up to the next error.


2) Find if, and where __APPLE__ is being defined,
and rectify that. Write a test program:

% cat test.cpp
#ifdef __APPLE__
#error This is not an Apple!
#endif
%

and run gcc on it. If it fails with the error,
then that may be the problem. Try putting
something like

#undef __APPLE__

in MythTV's top level config.h,
and see if that gives you a non-error result?



Good luck.

--
Nigel Pearson, nigel@ind.tansu.com.au|"People say I'm strange,
Telstra Net. Eng., Sydney, Australia | does it make me a stranger?
Office: 9202 3900 Fax: 9261 3912 | My best friend was born
Mobile: 0408 664435 Home: 9792 6998 | in a manger" -DC Talk

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
>> gcc -c -pipe -w -O3 -Wall -Wno-switch -DPIC -fPIC -fno-common -
>> D_REENTRANT
>> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\"
>> -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -
>> DQT_SHARED
>> -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
>> -I../../libs/libavcodec -I/usr/lib/qt-3.3/include -o cpu_accel.o
>> cpu_accel.c
>> {standard input}: Assembler messages:
>> {standard input}:60: Error: unsupported relocation against v0
>> {standard input}:60: Error: unsupported relocation against v0
>> {standard input}:60: Error: unsupported relocation against v0
>> make[2]: *** [cpu_accel.o] Error 1
>
> From your preprocessor output, I can't see much wrong.
> It is including the correct function (the PPC one at line 150).
> Only strange thing is that it seems to be using the __APPLE__
> version of the VAND macro:
>
> #if defined(HAVE_ALTIVEC_H) && !defined(__APPLE__) /* gnu */
> #define VAND(a,b,c) "vand " #a "," #b "," #c "\n\t"
> #else /* apple */
> #define VAND(a,b,c) "vand v" #a ",v" #b ",v" #c "\n\t"
> #endif
> asm volatile ("mtspr 256, %0\n\t"
> VAND (0, 0, 0)
> :
> : "r" (-1));
>
> which is being expanded as:
>
> asm volatile ("mtspr 256, %0\n\t"
> "vand v" "0" ",v" "0" ",v" "0" "\n\t"
> :
> : "r" (-1));
>
>
>
>
> My suggested workarounds:
>
> 1) Turn off the CPU detection in libmythmpeg2.
> Edit the file mythtv/libs/libmythmpeg2/config.h
> and comment out the #define ACCEL_DETECT line.
> That should get you compiling up to the next error.
>
>
> 2) Find if, and where __APPLE__ is being defined,
> and rectify that. Write a test program:
>
> % cat test.cpp
> #ifdef __APPLE__
> #error This is not an Apple!
> #endif
> %
>
> and run gcc on it. If it fails with the error,
> then that may be the problem. Try putting
> something like
>
> #undef __APPLE__
>
> in MythTV's top level config.h,
> and see if that gives you a non-error result?
>
>
>
> Good luck.
>
> --
> Nigel Pearson, nigel@ind.tansu.com.au|"People say I'm strange,
> Telstra Net. Eng., Sydney, Australia | does it make me a stranger?
> Office: 9202 3900 Fax: 9261 3912 | My best friend was born
> Mobile: 0408 664435 Home: 9792 6998 | in a manger" -DC Talk
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>


I have found something interesting. No idea what affect this may have if
any. During the ./configuration there is a check done on /proc/cpuinfo.
The layout of this file on the ps3 is way different then the layout on
other machines, ie there is no model names or flags line to check against.
Could this cause any issues?

Thanks

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Compile Mythtv on PS3 [ In reply to ]
The compile error on cpu_accel.c was
caused by __APPLE__ being defined.
I think the one in cpu_state.c seems to
be due to CONFIG_DARWIN being defined.

I have no idea why these Apple-specific
symbols are being defined for you.

1) Try a #undef CONFIG_DARWIN in either the
libmythmpeg2 config.h, or the top Myth one?


> I have found something interesting. No idea what affect this may
> have if
> any. During the ./configuration there is a check done on /proc/
> cpuinfo.
> The layout of this file on the ps3 is way different then the layout on
> other machines, ie there is no model names or flags line to check
> against.
> Could this cause any issues?

Possible, although from a cursory glance,
those checks only affect tuning?

2) What does /proc/cpuinfo contain?

3) What is in libs/libmyth/mythconfig.h ?

4) We might need to add a block in
configure especially for the PS3.
Does uname -a reveal anything uniquely
PlayStation-ish?

5) Does adding this block help?

% svn diff configure
Index: configure
===================================================================
--- configure (revision 12283)
+++ configure (working copy)
@@ -484,6 +484,16 @@
fi
fi
+# PS3, Yellow Dog Linux:
+if test -n "`cat /proc/cpuinfo | egrep 'cpu.* Cell Broadband
Engine'`"; then
+ echo "PlayStation 3!"
+ if test x"$processor" = x"" -o x"$processor" = x"$cpu_raw" -o \
+ x"$processor" = x"unknown" -o x"$processor" =
x"powerpc" ; then
+ processor=ppc64
+ tune=ppc64
+ fi
+fi
+
# These have to be looked up early for some types of cross-compiling
to work
cpu_overide="no"
for opt do

--
Nigel Pearson, nigel@ind.tansu.com.au|"I haven't tested it yet, but
Telstra Net. Eng., Sydney, Australia | it should be perfectly safe."
Office: 9202 3900 Fax: 9261 3912 |"Just a bit or harmless brain
Mobile: 0408 664435 Home: 9792 6998 | manipulation, that's all" -
Wallace

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev