Bug 151598 - dev-lang/pike-7.6.86-r1's mmx useflag is pointless
Bug#: 151598 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: araujo@gentoo.org Reported By: blubb@gentoo.org
Component: Ebuilds
URL: 
Summary: dev-lang/pike-7.6.86-r1's mmx useflag is pointless
Keywords:  
Status Whiteboard: 
Opened: 2006-10-16 08:16 0000
Description:   Opened: 2006-10-16 08:16 0000
pike's configure always returns no for the MMX check, thus always disabling it,
effectively ignoring the use flag:

configure:45222: checking for working MMX
configure:45262:
/var/tmp/portage/dev-lang/pike-7.6.86-r1/work/Pike-v7.6.86/src/smartlink gcc -o
conftest -g -O2 -pipe -Wa,--execstack 
-I/var/tmp/portage/dev-lang/pike-7.6.86-r1/work/Pike-v7.6.86/src/bundles/include
-I/var/tmp/portage/dev-lang/pike-7.6.86-r1/work/Pike-v7.6.86/src
-I/var/tmp/portage/dev-lang/pike-7.6.86-r1/work/Pike-v7.6.86/src
-L/var/tmp/portage/dev-lang/pike-7.6.86-r1/work/Pike-v7.6.86/src/bundles/lib -z
execstack -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib32
-L/usr/local/lib32 -R/usr/local/lib64 -L/usr/local/lib64 conftest.c -ldl -lrt
-lnsl -lm -lpthread -lcrypt >&5
conftest.c: In function 'main':
conftest.c:265: error: 'mm0' undeclared (first use in this function)
conftest.c:265: error: (Each undeclared identifier is reported only once
conftest.c:265: error: for each function it appears in.)
configure:45268: $? = 1
configure: failed program was:
<lots of defines here>
| int
| main ()
| {
|
|     {
|       int try_use_mmx;
|       char a[8];
|       movq_m2r( *a, mm0 );
|       paddb_r2r( mm0, mm0 );
|       movq_r2m( mm0, *a );
|       try_use_mmx=mmx_ok();
|     }
|
|   ;
|   return 0;
| }
configure:45295: result: no

I suggest you either fix the check or remove the USE flag :)

Portage 2.1.2_pre3-r2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1,
glibc-2.4-r3, 2.6.17-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r5 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.12.5
Last Sync: Unknown
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-ggdb -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/resin/conf /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"CXXFLAGS="-ggdb
-march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks installsources
metadata-transfer multilib-strict sandbox sfperms splitdebug"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa berkdb bitmap-fonts cairo cdr cli crypt cups dbus dlloader
dri dvd dvdr eds elibc_glibc emboss encode esd fam firefox fortran gdbm gif
gnome gpm gstreamer gtk gtk2 hal input_devices_evdev input_devices_keyboard
input_devices_mouse ipv6 isdnlog jpeg kernel_linux ldap libg++ mad mikmod mmx
mmxext mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre perl
png ppds pppd python quicktime readline reflection sdl session spell spl sse
sse2 ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU
video_cards_none vorbis xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS,
MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

------- Comment #1 From Luis F. Araujo 2006-10-20 14:57:50 0000 -------
Fixed. :-)