Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 34084

Summary: mupen64 0.3 won't compile
Product: Gentoo Linux Reporter: Keith Lea <keith>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Keith Lea 2003-11-22 00:00:26 UTC
I don't think this is a duplicate of bug 29206. I run emerge mupen64 and I get:

g++ -pipe -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -pipe  -c -o
DaedalusRenderBase.o DaedalusRenderBase.cpp
In file included from stdafx.h:46,
                 from DaedalusRenderBase.cpp:20:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/xmmintrin.h:34:3: #error "SSE
instruction set not enabled"
In file included from stdafx.h:46,
                 from DaedalusGraphics.cpp:19:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/xmmintrin.h:34:3: #error "SSE
instruction set not enabled"
In file included from stdafx.h:79,
                 from DaedalusRenderBase.cpp:20:
typedefs.h:191: error: parse error before `[' token
...

I have a processor with SSE, and there is no "sse" use flag on mupen64 that I
can turn on or off. I'm using G++ (GCC) 3.3.2 20031022 (Gentoo Linux 3.3.2-r2,
propolice).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.20-gentoo-r8)
=================================================================
System uname: 2.4.20-gentoo-r8 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.noved.org/ ftp://gentoo.noved.org/
http://gentoo.seren.com/gentoo http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="avi crypt foomaticdb gif jpeg kde libg++ mikmod mpeg ncurses nls pdflib
quicktime spell xml2 xmms zlib gdbm berkdb slang arts tetex svga guile sdl tcpd
pam libwww imlib motif X gtk acl acpi apache2 cups cdr doc dvd emacs encode esd
ethereal fam gnome gphoto2 gpm gtk2 ipv6 java junit lirc mad mmx mozilla
oggvorbis opengl oss perl png python qt readline sse ssl tcltk unicode truetype
usb wmf xosd xv x86 gd gstreamer alsa bonobo xml javascript xine flac radeon
mozcalendar curl apm"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-11-24 23:25:04 UTC
Works fine for me with gcc 3.2.3.  Can anyone in gcc-porting confirm a
failure with gcc 3.3?
Comment 2 SpanKY gentoo-dev 2003-11-25 07:41:29 UTC
works fine on my gcc-3.3.2 ... but i use march=p4 ...
your mcpu=p4 does not enable sse instruction support :)
you may want to try out these CFLAGS instead:
-march=pentium4 -O2 -funroll-loops -pipe -fomit-frame-pointer -frename-registers

i'll add a small check to the build process ... if your current CXXFLAGS dont enable sse support then the riceplugin wont be built
Comment 3 SpanKY gentoo-dev 2003-11-25 07:59:00 UTC
fixed in cvsz0r