Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44276 - MPlayer: configure fails to identify which optimizations to use for my G3 CPU
Summary: MPlayer: configure fails to identify which optimizations to use for my G3 CPU
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High minor (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-10 11:55 UTC by Simon Strandman
Modified: 2004-04-13 19:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
This patch fixes the problem. (configure-750FX-detect.patch,515 bytes, patch)
2004-03-10 12:04 UTC, Simon Strandman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Strandman 2004-03-10 11:55:39 UTC
Configure fails to identify which flags to use for my PowerPC 750FX CPU (G3) and therefore does not set any optimizations for it to the CFLAGS.

Detected operating system: Linux
Detected host architecture: ppc
Checking for gcc version ... 3.3.3, ok
Checking for CPU type ... 750FX
Checking for GCC & CPU optimization abilities ... none

Reproducible: Always
Steps to Reproduce:
1. Install gentoo on a G3 macintosh with a 750FX CPU
2. Emerge mplayer

Actual Results:  
It compiles but without any CPU optimizations. 

Expected Results:  
It should have compiled with CPU optimizations :) 

Portage 2.0.50-r1 (default-ppc-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.3-benh2) 
================================================================= 
System uname: 2.6.3-benh2 ppc 750FX 
Gentoo Base System version 1.4.3.13 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.8.2 
ACCEPT_KEYWORDS="ppc" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -pipe -mcpu=750 -mtune=750 -mpowerpc-gfxopt -fsigned-char 
-falign-functions=4 -fomit-frame-pointer -fforce-addr -frerun-loop-opt 
-fprefetch-loop-arrays -funroll-loops" 
CHOST="powerpc-unknown-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/lib/pbbuttonsd /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -pipe -mcpu=750 -mtune=750 -mpowerpc-gfxopt -fsigned-char 
-falign-functions=4 -fomit-frame-pointer -fforce-addr -frerun-loop-opt 
-fprefetch-loop-arrays -funroll-loops" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="ccache" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aalib alsa apm berkdb cdr dga dvd esd fbconv foomaticdb gdbm gif gnome 
gphoto2 gpm gtk gtk2 imlib jpeg libwww linguas_sv mad mikmod mitshm mng mostif 
motif mozilla mpeg ncurses nls nptl offensive oggvorbis opengl oss pam pcmcia 
perl png pnp ppc python quicktime readline samba sdl slang ssl tcltk tcpd tiff 
truetype unicode usb video_cards_radeon xine xml2 xmms xv xvid"
Comment 1 Simon Strandman 2004-03-10 12:04:14 UTC
Created attachment 27167 [details, diff]
This patch fixes the problem.

This small patch makes configure set the correct optimizations when a G3 750FX
CPU is detected.
Comment 2 Luca Barbato gentoo-dev 2004-04-03 15:23:10 UTC
looks nice, btw which compiler version are you using with such heavy cflags?
Comment 3 Simon Strandman 2004-04-13 10:59:04 UTC
I'm using gcc 3.3.3 20040217, from gcc-3.3.3.ebuild. I doesent have ppc in it's keywords but it's working just fine even with those optimizations.
Comment 4 Luca Barbato gentoo-dev 2004-04-13 19:13:30 UTC
seems I forgot to close the bug, it should be fixed now