Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91469 - metisse build error
Summary: metisse build error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-04 11:57 UTC by zopar
Modified: 2005-07-11 21:53 UTC (History)
0 users

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


Attachments
metisse-0.3.5-r1.ebuild (metisse-0.3.5-r1.ebuild,1.24 KB, text/plain)
2005-05-16 23:42 UTC, Wormo (RETIRED)
Details
metisse-0.3.5-mmx-config.patch (metisse-0.3.5-mmx-config.patch,1.99 KB, patch)
2005-05-16 23:44 UTC, Wormo (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zopar 2005-05-04 11:57:49 UTC
On compiling metisse (ebuild 0.3.5 23 Apr 2005 and ebuild 0.3.4) ON PPC
(ibook g3)
i have this error:

if powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..
-I../../xserver/mi -I../../xserver/render -I../../xserver/include
-I../../xlibs/Xfont/include/X11/fonts/ -I../../xlibs/Xau
-I../../xserver/include/X11/Xtrans   -mmmx -Winline --param
inline-unit-growth=10000 --param large-function-growth=10000 -mcpu=750
-O3 -pipe -fsigned-char -mmultiple -mstring -mpowerpc-gfxopt -Wall -MT
fbmmx.o -MD -MP -MF ".deps/fbmmx.Tpo" -c -o fbmmx.o fbmmx.c; \
then mv -f ".deps/fbmmx.Tpo" ".deps/fbmmx.Po"; else rm -f
".deps/fbmmx.Tpo"; exit 1; fi
cc1: error: invalid option `mmx'
make: *** [fbmmx.o] Error 1



I have deleted option -mmmx on AC_FLAGS but i have this error:

if powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..
-I../../xserver/mi -I../../xserver/render -I../../xserver/include
-I../../xlibs/Xfont/include/X11/fonts/ -I../../xlibs/Xau
-I../../xserver/include/X11/Xtrans   -Winline --param
inline-unit-growth=10000 --param large-function-growth=10000 -mcpu=750
-O3 -pipe -fsigned-char -mmultiple -mstring -mpowerpc-gfxopt -Wall -MT
fbmmx.o -MD -MP -MF ".deps/fbmmx.Tpo" -c -o fbmmx.o fbmmx.c; \
then mv -f ".deps/fbmmx.Tpo" ".deps/fbmmx.Po"; else rm -f
".deps/fbmmx.Tpo"; exit 1; fi
fbmmx.c: In function `shift':
fbmmx.c:99: warning: implicit declaration of function
`__builtin_ia32_psllq'
fbmmx.c:101: warning: implicit declaration of function
`__builtin_ia32_psrlq'
fbmmx.c: In function `negate':
fbmmx.c:109: warning: implicit declaration of function
`__builtin_ia32_pxor'
fbmmx.c:111: error: can't convert between vector values of different
size
fbmmx.c: In function `pix_multiply':
fbmmx.c:119: warning: implicit declaration of function
`__builtin_ia32_pmullw'
fbmmx.c:119: error: incompatible types in assignment
fbmmx.c:120: warning: implicit declaration of function
`__builtin_ia32_paddw'
fbmmx.c:120: error: incompatible types in assignment
fbmmx.c:121: warning: implicit declaration of function
`__builtin_ia32_psrlw'
fbmmx.c:121: error: incompatible types in assignment
fbmmx.c: In function `expand_alpha':
fbmmx.c:170: warning: implicit declaration of function
`__builtin_ia32_por'
fbmmx.c: In function `invert_colors':
fbmmx.c:199: warning: implicit declaration of function
`__builtin_ia32_pand'
fbmmx.c: In function `over':
fbmmx.c:234: warning: implicit declaration of function
`__builtin_ia32_paddusb'
fbmmx.c:234: error: can't convert between vector values of different
size
fbmmx.c: In function `over_rev_non_pre':
fbmmx.c:241: error: can't convert between vector values of different
size
fbmmx.c: In function `load8888':
fbmmx.c:272: warning: implicit declaration of function
`__builtin_ia32_punpcklbw'
fbmmx.c:273: error: can't convert between vector values of different
size
fbmmx.c: In function `pack8888':
fbmmx.c:280: warning: implicit declaration of function
`__builtin_ia32_packuswb'
fbmmx.c:280: error: incompatible types in assignment
fbmmx.c: In function `expand565':
fbmmx.c:311: error: incompatible types in assignment
fbmmx.c:312: error: incompatible types in return
fbmmx.c: In function `expand8888':
fbmmx.c:319: error: can't convert between vector values of different
size
fbmmx.c:321: warning: implicit declaration of function
`__builtin_ia32_punpckhbw'
fbmmx.c:321: error: can't convert between vector values of different
size
fbmmx.c: In function `pack565':
fbmmx.c:351: error: can't convert between vector values of different
size
make: *** [fbmmx.o] Error 1






And with option -mno-mmx i have this error:

if powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..
-I../../xserver/mi -I../../xserver/render -I../../xserver/include
-I../../xlibs/Xfont/include/X11/fonts/ -I../../xlibs/Xau
-I../../xserver/include/X11/Xtrans   -mno-mmx -Winline --param
inline-unit-growth=10000 --param large-function-growth=10000 -mcpu=750
-O3 -pipe -fsigned-char -mmultiple -mstring -mpowerpc-gfxopt -Wall -MT
fbmmx.o -MD -MP -MF ".deps/fbmmx.Tpo" -c -o fbmmx.o fbmmx.c; \
then mv -f ".deps/fbmmx.Tpo" ".deps/fbmmx.Po"; else rm -f
".deps/fbmmx.Tpo"; exit 1; fi
cc1: error: invalid option `-mno-mmx'
make: *** [fbmmx.o] Error 1


My emerge info:

Portage 2.0.51.19 (default-linux/ppc/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.10-5-powerpc ppc)
=================================================================
System uname: 2.6.10-5-powerpc ppc 750FX
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 30 2005, 19:47:43)]
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.90.0.3-r4
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=750 -O3 -pipe -fsigned-char -mmultiple -mstring -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=750 -O3 -pipe -fsigned-char -mmultiple -mstring -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ngi.it"
LANG="it_IT@euro"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo-rsync.ngi.it/gentoo-portage"
USE="X aalib accessibility alsa altivec apm arts artswrappersuid audiofile berkdb bitmap-fonts bluetooth cdparanoia cdr crypt cups dba directfb dvd dvdread emacs emboss encode esd fam fbcon ffmpeg flac fortran gd ggi gif gnutls gpm gstreamer gtk hal icq ieee139 ieee1394 imlib ipv6 jabber jack java javascript jpeg jpeg2k jpg kde kdeenablefinal kig-scripting ldap libcaca libwww lirc logitech-mouse mad mp3 mpeg msn mysql nas ncurses nls nptl ogg oggvorbis opengl orinoco oss pam perl php pic png ppc python qt rdesktop readline rpm samba scanner sdl sndfile snmp ssl tcltk theora tiff truetype truetype-fonts type1-fonts unicode usb v4l vidix vorbis wifi wxwindows xine xinerama xml2 xmms xosd xprint xv xvid yahoo zlib linguas_it"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 1 Wormo (RETIRED) gentoo-dev 2005-05-13 17:41:50 UTC
I have reproduced the failure, and am working on tracking it down. It looks like the configure script decides whether or not to enable mmx based solely on whether you have gcc >= 3.4, whereas there should at least be flags to manually enable/disable it (in which case the ebuild could set the flag according to whether mmx is in USE).
Comment 2 Wormo (RETIRED) gentoo-dev 2005-05-16 23:42:21 UTC
Created attachment 59094 [details]
metisse-0.3.5-r1.ebuild
Comment 3 Wormo (RETIRED) gentoo-dev 2005-05-16 23:44:44 UTC
Created attachment 59096 [details, diff]
metisse-0.3.5-mmx-config.patch

adds --enable-mmx flag to control whether mmx is enabled
Comment 4 Wormo (RETIRED) gentoo-dev 2005-05-16 23:48:03 UTC
Please try this ebuild and the new patch that disables mmx unless it is in USE
flags.  
Comment 5 Joe Jezak (RETIRED) gentoo-dev 2005-07-02 07:17:13 UTC
Wormo, if you haven't heard back from the package maintainer yet, I'd go ahead
and apply your patch, it works for me.
Comment 6 Joe Jezak (RETIRED) gentoo-dev 2005-07-11 21:53:46 UTC
In CVS, nice work on the fix Wormo. :)