Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 11-23-2009, 11:58 AM
prickle
Hill Giant
 
Join Date: Sep 2009
Posts: 147
Default

I compile on Ubuntu 9.10 with Perl 5.10 and gcc version 4.3.4. It compiles successfully for me all the time. However, I have to make 1 change to the makefiles to enable successful compiles:

1) Change -march=i686 to -march=athlon64 (if you're using gcc 4.3 you should be able to use -march=native)

I have to make this change because my system uses an Athlon64 x2 CPU where the default makefile appears to be for Intel CPUs. As I noted in parenthesis, you can use -march=native if your gcc version is 4.3 (or newer). Instead of editing all of the makefiles one by one by hand, you can use the following terminal command to hit all of them:

1) Make sure you are in the root of the build tree
2) Run:
grep -Ril i686 * | xargs perl -pi -e 's/i686/native/g'

Using -march=native enables more CPU based optimizations than selecting the actual CPU from the gcc mtune/march optimization flag. All of the mtune/march optimizations that are available can be found here:
http://gcc.gnu.org/onlinedocs/gcc/i3...4-Options.html

And like gaeorn mentioned, you should do a 'make clean' before you attempt to compile... if 'make clean' fails then you will most likely need to change the -march= option before you can do a successful 'make clean' and/or 'make'.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:37 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3