Page 1 of 1

Debian 64bit error by compiling

Posted: Sun Jul 24, 2011 3:54 pm
by skilfin
hey guys

dont know how to fix the followring problem ....

i downloaded the source via svn and wanted to compilier the source with "make"

but i became this error message

g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include client.cpp -o client.o
client.cpp:1: error: CPU you selected does not support x86-64 instruction set
make: *** [client.o] Fehler 1

unname - a says

Linux xxxxxxxxxxxxx 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64 GNU/Linux

thanks 4 helping ;)

regards !

Re: Debian 64bit error by compiling

Posted: Sun Jul 24, 2011 4:14 pm
by John Adams

Re: Debian 64bit error by compiling

Posted: Sun Jul 24, 2011 6:05 pm
by skilfin
thanks 4 ur fast answer


now i have changed march=i686 to march=generic
and it says

Rules/Rules.cpp:1: error: generic CPU can be used only for -mtune= switch
Rules/Rules.cpp:1: error: bad value (generic) for -march= switch
Rules/Rules.cpp:1: error: bad value (generic) for -march= switch

i dont know a fast answer on it. if somebody knows sth ;) pls help :)

thanks & good night :P

Re: Debian 64bit error by compiling

Posted: Mon Jul 25, 2011 7:41 am
by skilfin
problem fixed

just installed 32 bit :D:D

compilied succesfull ....

the big problem is that the server admin guides arent up to date ?

http://eq2emulator.net/wiki/index.php/A ... ver:Ubuntu

the folders doesnt match?!

or is there a new tutorial?!

thanks 4 answering ;)

regards :)

Re: Debian 64bit error by compiling

Posted: Mon Jul 25, 2011 8:52 am
by John Adams
WIKI is updated by the community, not a responsibility of the Devs unless we are putting something there specific.

Feel free to update it, or submit your changes and I'll see about updating the guide.

Only major change is /trunk

Re: Debian 64bit error by compiling - UPDATED

Posted: Thu Nov 17, 2011 8:50 pm
by dotslash
If you get stuck with the following error:

client.cpp:1: error: CPU you selected does not support x86-64 instruction set

Try this to fix your problem on 64-bit systems. I've tested this on multiple AMD's but not on an Intel.

1.)Locate and edit the makefile in SVN/Source/World (use your favorite editor nano, vim, vi, w/e).
2.)Search for -march=i686 and change it to -march=athlon64, ave your document, exit editor.
3.)type make and watch it compile.

**NOTE** On newer Ubuntu/Debian systems, you will encounter the LUA5.1 problem during compile. This is due to an incorrect symbolic link for LUA51. You will need to rename your LUA .so's or create a symbolic link for the LUA 51 libraries (problem on 10.04 LTS and 11.10).

E.g)

lrwxrwxrwx 1 root root 12 2011-11-17 00:28 liblua-5.1.so -> liblua5.1.so
lrwxrwxrwx 1 root root 11 2011-11-17 00:28 liblua-5.1.a -> liblua5.1.a

The system level 5.1 had a - (symbolic link of liblua-5.a.X to liblua5.1.X) in it which broke the makefile. You can also change the reference in the makefile but I found this a more compatible fix. I have not tried this on anything but debian builds.

**UPDATE** Ubuntu 10.04 LTS does not seem to suffer this issue. sudo apt-get install liblua5.1-0 liblua5.1-0-dev

Re: Debian 64bit error by compiling

Posted: Sat Nov 26, 2011 8:20 am
by John Adams
I love linux people. Welcome :)

Re: Debian 64bit error by compiling

Posted: Sun Nov 27, 2011 4:12 am
by dotslash
Send em my way. I'm so stoked about this project. Anything I can do to help, just ask :D Not much of a coder but been a linux analyst for about 12 years, among running my own hosting companies and such... Also a fellow AZ geek ;)