Nasm error

With recent cvs checkouts I’ve been getting this error while compiling
if I don’t disable nasm. Is anyone else seeing this problem or knows
how to fix it?

Windows XP SP1
mingw
winapi 2.5
gcc 3.3.3
nasm .98

gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION=""
-DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE=“SDL”
-DVERSION=“1.2.8” -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -I. -I. -O3 -mmmx
-msse -msse2 -m3dnow -march=athlon-xp -Id:/dev/local/include/msdx -Wall
-DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -I…/…/src/video/wincommon
-DENABLE_WINDIB -DENABLE_DIRECTX -DUSE_ASMBLIT -I./hermes
-I…/…/src/hermes -I…/…/include -I…/…/include/SDL -I…/…/src
-I…/…/src/main/win32 -I…/…/src/audio -I…/…/src/video
-I…/…/src/video/XFree86/extensions -I…/…/src/events
-I…/…/src/joystick -I…/…/src/cdrom -I…/…/src/thread
-I…/…/src/timer -I…/…/src/endian -I…/…/src/file -I…/…/src/thread
-MT SDL_yuv_mmx.lo -MD -MP -MF .deps/SDL_yuv_mmx.Tpo -c SDL_yuv_mmx.c
-DDLL_EXPORT -DPIC -o .libs/SDL_yuv_mmx.o
SDL_yuv_mmx.c: In function ColorRGBDitherYV12MMX1X': SDL_yuv_mmx.c:242: error:_MMX_0080w’ undeclared (first use in this
function)
SDL_yuv_mmx.c:242: error: (Each undeclared identifier is reported only once
SDL_yuv_mmx.c:242: error: for each function it appears in.)
SDL_yuv_mmx.c:243: error: _MMX_00FFw' undeclared (first use in this function) SDL_yuv_mmx.c:244: error:_MMX_FF00w’ undeclared (first use in this
function)
SDL_yuv_mmx.c:245: error: _MMX_VgrnRGB' undeclared (first use in this function) SDL_yuv_mmx.c:246: error:_MMX_VredRGB’ undeclared (first use in this
function)
SDL_yuv_mmx.c:247: error: _MMX_UgrnRGB' undeclared (first use in this function) SDL_yuv_mmx.c:248: error:_MMX_UbluRGB’ undeclared (first use in this
function)
SDL_yuv_mmx.c: In function Color565DitherYV12MMX1X': SDL_yuv_mmx.c:423: error:_MMX_0080w’ undeclared (first use in this
function)
SDL_yuv_mmx.c:424: error: _MMX_Ugrn565' undeclared (first use in this function) SDL_yuv_mmx.c:425: error:_MMX_Ublu5x5’ undeclared (first use in this
function)
SDL_yuv_mmx.c:426: error: _MMX_00FFw' undeclared (first use in this function) SDL_yuv_mmx.c:427: error:_MMX_Vgrn565’ undeclared (first use in this
function)
SDL_yuv_mmx.c:428: error: _MMX_Vred5x5' undeclared (first use in this function) SDL_yuv_mmx.c:429: error:_MMX_Ycoeff’ undeclared (first use in this
function)
SDL_yuv_mmx.c:430: error: _MMX_red565' undeclared (first use in this function) SDL_yuv_mmx.c:431: error:_MMX_grn565’ undeclared (first use in this
function)
SDL_yuv_mmx.c: At top level:
SDL_yuv_mmx.c:39: warning: MMX_0080w' defined but not used SDL_yuv_mmx.c:40: warning:MMX_00FFw’ defined but not used
SDL_yuv_mmx.c:41: warning: MMX_FF00w' defined but not used SDL_yuv_mmx.c:43: warning:MMX_Ycoeff’ defined but not used
SDL_yuv_mmx.c:45: warning: MMX_UbluRGB' defined but not used SDL_yuv_mmx.c:46: warning:MMX_VredRGB’ defined but not used
SDL_yuv_mmx.c:47: warning: MMX_UgrnRGB' defined but not used SDL_yuv_mmx.c:48: warning:MMX_VgrnRGB’ defined but not used
SDL_yuv_mmx.c:50: warning: MMX_Ublu5x5' defined but not used SDL_yuv_mmx.c:51: warning:MMX_Vred5x5’ defined but not used
SDL_yuv_mmx.c:52: warning: MMX_Ugrn555' defined but not used SDL_yuv_mmx.c:53: warning:MMX_Vgrn555’ defined but not used
SDL_yuv_mmx.c:54: warning: MMX_Ugrn565' defined but not used SDL_yuv_mmx.c:55: warning:MMX_Vgrn565’ defined but not used
SDL_yuv_mmx.c:57: warning: MMX_red555' defined but not used SDL_yuv_mmx.c:58: warning:MMX_red565’ defined but not used
SDL_yuv_mmx.c:59: warning: MMX_grn555' defined but not used SDL_yuv_mmx.c:60: warning:MMX_grn565’ defined but not used
SDL_yuv_mmx.c:61: warning: MMX_blu5x5' defined but not used make[3]: *** [SDL_yuv_mmx.lo] Error 1 make[3]: Leaving directory/src/SDL12/src/video’
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /src/SDL12/src/video' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/src/SDL12/src’
make: *** [all-recursive] Error 1

bkropf at FLAARSVILLE /src/SDL12
$

With recent cvs checkouts I’ve been getting this error while compiling
if I don’t disable nasm. Is anyone else seeing this problem or knows
how to fix it?

Try this patch :
http://twomix.devolution.com/pipermail/sdl/2004-June/062602.html

Stephane

Stephane Marchesin wrote:

With recent cvs checkouts I’ve been getting this error while compiling
if I don’t disable nasm. Is anyone else seeing this problem or knows
how to fix it?

Try this patch :
http://twomix.devolution.com/pipermail/sdl/2004-June/062602.html

Stephane


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Thant worked nicely!! So is this error a Mingw specific error or are
other compilers affected as well? Along the same line as well; what is
the status of merging this patch into the main cvs tree?

Brian Kropf wrote:

Thant worked nicely!! So is this error a Mingw specific error or are
other compilers affected as well? Along the same line as well; what
is the status of merging this patch into the main cvs tree?

Hmm, it seems that patch was forgotten somewhere along the way (by Sam
and by me as well :slight_smile:

Sam, could you apply please ?

Stephane