project-navigation
Personal tools

Author Topic: Tiny bug - [svn 14056], configure mmx option  (Read 3509 times)

benv

  • Guest
Tiny bug - [svn 14056], configure mmx option
« on: January 20, 2008, 03:40:38 pm »
Hej guys,

I just noticed this project (saw it on happypenguin.org) and I love it already :)
Keep up the great work!

Anyway, I checked out the svn tree and tried to build it.
With configure I used the --enable-release --enable-mmx options.
But make barfs:

 * [UFO] src/game/q_shared.c
In file included from src/game/q_shared.c:33:
/usr/lib/gcc/i486-slackware-linux/4.1.2/include/xmmintrin.h:34:3: error: #error "SSE instruction set not enabled"
src/game/q_shared.c: In function 'VectorScale':
src/game/q_shared.c:840: error: '__m128' undeclared (first use in this function)
src/game/q_shared.c:840: error: (Each undeclared identifier is reported only once
src/game/q_shared.c:840: error: for each function it appears in.)
src/game/q_shared.c:840: error: expected ';' before 'xmm_in'
src/game/q_shared.c:842: error: 'xmm_in' undeclared (first use in this function)
src/game/q_shared.c:842: warning: implicit declaration of function '_mm_load_ss'
src/game/q_shared.c:843: error: 'xmm_scale' undeclared (first use in this function)
src/game/q_shared.c:844: error: 'xmm_out' undeclared (first use in this function)
src/game/q_shared.c:844: warning: implicit declaration of function '_mm_mul_ss'
src/game/q_shared.c:845: warning: implicit declaration of function '_mm_store_ss'
make: *** [release-linux-gnu-i386/client/game/q_shared.o] Error 1

A quick search revealed the solution.
Changing CFLAGS in the Makefile to this:
CFLAGS=-g -O2 -msse3
(-msse3 added)

For the record, I'm running Slackware current (32 bit distro) on my AMD 64 machine.