Debian 64bit error by compiling

Support forum for questions about compiling and running EQ2Emulator on Linux.

Moderator: Team Members

Post Reply
skilfin
Posts: 3
Joined: Sun Jul 24, 2011 3:46 pm

Debian 64bit error by compiling

Post by skilfin » Sun Jul 24, 2011 3:54 pm

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 !

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Debian 64bit error by compiling

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


skilfin
Posts: 3
Joined: Sun Jul 24, 2011 3:46 pm

Re: Debian 64bit error by compiling

Post by skilfin » Sun Jul 24, 2011 6:05 pm

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

skilfin
Posts: 3
Joined: Sun Jul 24, 2011 3:46 pm

Re: Debian 64bit error by compiling

Post by skilfin » Mon Jul 25, 2011 7:41 am

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 :)

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Debian 64bit error by compiling

Post by John Adams » Mon Jul 25, 2011 8:52 am

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

User avatar
dotslash
Posts: 6
Joined: Sun Oct 30, 2011 4:33 pm
EQ2Emu Server: PandaEQ2
Characters: Dotslash
Location: Arizona
Contact:

Re: Debian 64bit error by compiling - UPDATED

Post by dotslash » Thu Nov 17, 2011 8:50 pm

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
Last edited by dotslash on Sun Nov 27, 2011 2:59 pm, edited 2 times in total.
By reading this you are giving me brief control over your mind...

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Debian 64bit error by compiling

Post by John Adams » Sat Nov 26, 2011 8:20 am

I love linux people. Welcome :)

User avatar
dotslash
Posts: 6
Joined: Sun Oct 30, 2011 4:33 pm
EQ2Emu Server: PandaEQ2
Characters: Dotslash
Location: Arizona
Contact:

Re: Debian 64bit error by compiling

Post by dotslash » Sun Nov 27, 2011 4:12 am

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 ;)
By reading this you are giving me brief control over your mind...

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests