Opened 10 years ago

Closed 10 years ago

#8263 closed defect (invalid)

Mythfrontend 0.22-fixes Crashes on Startup 'Illegal instruction'

Reported by: mpapet@… Owned by: janneg
Priority: minor Milestone: unknown
Component: MythTV - General Version: 0.22-fixes
Severity: high Keywords:
Cc: Ticket locked: no

Description

I get an 'illegal instruction' error after compiling mythtv-022-fixes from svn. The computer is a PPC, G3 iBook running Linux.

I used the following incantation to build the main programs. ./configure --prefix=/usr --tune=G3 --arch=ppc --enable-libfaad --disable-hdhomerun --disable-mmx --disable-mmx2 --disable-amd3dnow --disable-amd3dnowext --disable-altivec --enable-nonfree --enable-gpl

I probably applied the 'sophmore principle' to the configure options.

See attached debug file.

Attachments (2)

crash-log.txt (17.8 KB) - added by mpapet@… 10 years ago.
gdb-output
crash2-log.txt (17.1 KB) - added by anonymous 10 years ago.

Download all attachments as: .zip

Change History (12)

Changed 10 years ago by mpapet@…

Attachment: crash-log.txt added

gdb-output

comment:1 Changed 10 years ago by robertm

Status: newinfoneeded_new

These configure options are horrifying-- please try with *just* --enable-proc-opts, and NONE of the other stuff besides prefix.

comment:2 Changed 10 years ago by mpapet@…

Well, it would be nice if I didn't need those options to get it to build, but it took me a while to get to a consistent build. Also, it's a slow machine and never will run as a backend, so I turned off some stuff.

./configure --enable-proc-opt

* WARNING * Your CPU was not detected properly:

uname -m: ppc uname -p: unknown

pmac flags: 0000001f

cat /proc/cpuinfo

processor : 0 cpu : 745/755 temperature : 11-13 C (uncalibrated) clock : 400.000000MHz revision : 51.17 (pvr 0008 3311) bogomips : 26.52 timebase : 16640000 platform : PowerMac? model : PowerBook4,1 machine : PowerBook4,1 motherboard : PowerBook4,1 PowerBook2,2 MacRISC2 MacRISC Power Macintosh detected as : 67 (iBook FireWire?) pmac flags : 0000001f L2 cache : 256K unified pmac-generation : NewWorld?

comment:3 Changed 10 years ago by robertm

Status: infoneeded_newnew

comment:4 Changed 10 years ago by robertm

Owner: changed from Isaac Richards to janneg
Status: newassigned

Janne, don't know if there's any point in trying to do proc-opts for such an ancient processor, but passing to you, feel free to unassign as necessary.

comment:5 Changed 10 years ago by mpapet@…

I did a distclean before rebuilding mythtv per the new spec. Same illegal instruction error.

I discovered that if the client can't log into the database, the client config comes up and works as expected.

When I change permissions on the MySQL backend to allow the g3 iBook, I get the illegal instruction error.

Changed 10 years ago by anonymous

Attachment: crash2-log.txt added

comment:6 Changed 10 years ago by Janne Grunau

Version: unknown0.22-fixes

I'm not going to fix this for 0.22 without access to hardware.

./configure --prefix=/usr --cpu=g3 --enable-libfaad --disable-hdhomerun --enable-gpl

might be worth a try or if you want to try 0.23-rc --cpu=host

comment:7 Changed 10 years ago by mpapet@…

If it's the case you aren't interested in working on an old release, then just say so and close the bug. I'll start over with whatever version you would like me to work with. Whatever is most interesting to you works for me.

If you want to work on 0.22, I can give you access to the iBook via a hop from a public-facing ssh account. Will that work for you? My email address should be associated with this bug. I'll send you credentials directly.

comment:8 Changed 10 years ago by anonymous

On 0-22-fixes, disabling altivec returns the below build error. In plain english it looks like mythtranscode doesn't know about the --disable-altivec flag. Other than that, I'm out of my league.

I'll build the 0-23-rc2 and post those results in the next few days.

/usr/bin/qmake -unix QMAKE=/usr/bin/qmake -o Makefile replex.pro make[2]: Leaving directory `/home/mpapet/mythtv-0-22/mythtv/programs/mythtranscode/replex' make[2]: Entering directory `/home/mpapet/mythtv-0-22/mythtv/programs/mythtranscode/replex' ccache g++ -o mythreplex avi.o element.o mpg_common.o multiplex.o ringbuffer.o ts.o replex.o pes.o -L../../../libs/libavutil -L../../../libs/libavcodec -L../../../libs/libavformat -lmythavcodec-0.22 -lmythavformat-0.22 -lmythavutil-0.22 -lfreetype -lz -lraw1394 -liec61883 -lavc1394 -lrom1394 -L/usr/lib -ldirectfb -lfusion -ldirect -lpthread -L/usr/X11R6/lib -lXinerama -lX11 -lXext -lXxf86vm -lXv -lXrandr -lXvMCW -lXvMC -lGL -lGLU -lpulse ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `int_init_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `fdct_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `aac_decoder' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `ff_vp3_idct_put_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `dsputil_h264_init_ppc' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `has_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `idct_add_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `ff_vp3_idct_add_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `float_init_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `MPV_common_init_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `dsputil_init_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `vc1dsp_init_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `gmc1_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `ff_vp3_idct_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `idct_put_altivec' ../../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to `ff_fft_calc_altivec'

comment:9 Changed 10 years ago by mpapet@…

Close the bug.

I cleaned the system of every mythtv file and directory and started over.

The following incantation works for 0-22-fixes on a PPC ibook 500mhz.

./configure --prefix=/usr --cpu=G3 --arch=ppc. --prefix=/usr --enable-gpl --disable-altivec

By 'works' I mean the bug no longer exists.

Thanks for helping me work this out.

comment:10 Changed 10 years ago by robertm

Resolution: invalid
Status: assignedclosed
Note: See TracTickets for help on using tickets.