PDA

View Full Version : Amd64 compilation problem



Benjalien
May 26th, 2005, 09:55
Hi everyone,

I'm running Debian (linux) 2.6.11 on amd64.

I'm not using the binary because of 32/64 bits library problems, so I thought about compiling it, but I get that error:

benjalien@Autokrach:~/Desktop/emu64$ make
gcc -DX86 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon -Wall -pipe -c -o main/rom.o main/rom.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
main/rom.c:1: erreur: le processeur sélectionné ne supporte pas le jeu d'instructions x86-64
make: *** [main/rom.o] Erreur 1

that could be translated in: ... the choosne processor doesn't support x86-64 instruction set...

and thats quite annoying me...

If anyone had any idea, I would apreciate it!

Thanks

fbff
May 26th, 2005, 11:00
In Makefile

change


-mcpu

to


-march


It is on line 4 in my old version of the mupen source. Currently it says -mcpu=athlon. I would change it to -march=k8

Hacktarux
May 26th, 2005, 17:07
even if you compile it yourself, you should compile it as a 32 bit binary, mupen64 is not compatible with 64 bit architectures yet.