Comment 6 for bug 104630

Revision history for this message
Benjamin Herrenschmidt (benh-kernel) wrote : Re: [Bug 104630] Re: mplayer ppc crash due to incorrect use of fsqrt

On Sun, 2007-04-29 at 13:04 +0000, Unai Uribarri wrote:
> I've recompiled this package from the sources (with dpkg-buildpackage)
> and realized that it was being built for a G5 CPU. Look at the the GCC
> flags -mcpu=7450 & -mtune=7450. Therefore, this package doesn't work on
> G3 nor G4 cpus.

No, 7450 is G4. It will not work on G3 because of the use of altivec
though. There must be some other place causing generation of the
incorrect instruction, that can't be caused by mcpu-7450.

> cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil -Wdeclaration-after-statement
> -O4 -mcpu=7450 -mtune=7450 -pipe -ffast-math -fomit-frame-pointer
> -maltivec -mabi=altivec -D_REENTRANT -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include/directfb
> -I/usr/include -I/usr/include/ -I/usr/include/SDL -D_GNU_SOURCE=1
> -D_REENTRANT -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -D_REENTRANT -I/usr/include
> -I/usr/include/dvdnav -I/usr/include/freetype2 -I/usr/include
> -I/usr/include/liveMedia -I/usr/include/UsageEnvironment
> -I/usr/include/BasicUsageEnvironment
> -I/usr/include/groupsock -I/usr/include/gtk-2.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/include/freetype2
> -I/usr/include/libpng12 -c -o cavsdsp.o cavsdsp.c
>