PDA

View Full Version : Compilation on AMD64



srasher
2007-05-07, 10:34
I am running Gentoo Linux on an AMD64 machine (OS also in 64 bit mode). Unfortunately it seems that some portion of the make process does not work on AMD64 (or at least on my system):


...

gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_gfx\" -DVERSION=\"2.0.15\" -DBUILD_DLL -I. -I. -I/build/linux/include -I/build/linux/include/SDL -I/build/linux/include/freetype2 -g -DUSE_MMX -I/build/linux/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT SDL_imageFilter.lo -MD -MP -MF .deps/SDL_imageFilter.Tpo -c SDL_imageFilter.c -fPIC -DPIC -o .libs/SDL_imageFilter.lo
/tmp/ccYPXlgg.s: Assembler messages:
/tmp/ccYPXlgg.s:50: Error: `pusha' is not supported in 64-bit mode
/tmp/ccYPXlgg.s:54: Error: `popa' is not supported in 64-bit mode

...

make[1]: *** [SDL_imageFilter.lo] Error 1
make[1]: Leaving directory `/home/srasher/Hobbykeller/Slim/Jive/trunk/jive/src/pkg/SDL_gfx-2.0.15'
make: *** [sdl-gfx] Error 2

Anyone experienced something similar? Any ideas?

Thanks very much in advance!

Cheers,
Sebastian

rtitmuss
2007-05-07, 12:26
I have not had this error myself, but googling suggests adding --disable-mmx to the configure options for the SDL_gfx package (see http://www.ferzkopp.net/joomla/content/view/19/14/). You can add this option by editing Makefile.linux. To make sure that the configure script is run again make sure you also run 'make distclean' in the SDL_gfx package.

Richard