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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-02-2008, 08:07 PM
qwicfingers
Fire Beetle
 
Join Date: Jul 2008
Location: Boston
Posts: 16
Unhappy crc32.cpp compile error

I'm getting a compile error when I try to compile the world. :sad: Any help would be greatly appreciated.

lets see..
Intel p4
Ubuntu8.4 server
EQEmu-0.7.0-1118
tried both g++4.1 and 4.2

make clean and make depend work fine, but errors when I make

../common/crc32.cpp:105:2: warning: #warning "Comment out i386 define if your arch isn't x86"
../common/crc32.cpp: In static member function
Reply With Quote
  #2  
Old 07-02-2008, 09:25 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Looks like that is just a warning to me. You can ignore warnings, there are always tons of them. As long as you don't get an actual error, you are ok.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 07-02-2008, 10:43 PM
qwicfingers
Fire Beetle
 
Join Date: Jul 2008
Location: Boston
Posts: 16
Default

hmm just noticed that for some reason copy and paste failed me...

this is the error bit

../common/crc32.cpp:238: error: PIC register \‘bx\’ clobbered in \‘asm\’
make[1]: *** [../common/crc32.o] Error 1
Reply With Quote
  #4  
Old 07-02-2008, 11:44 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I don't know much about Ubuntu (I run debian), but if the compile is thinking you don't have x86 architecture, then maybe you are running the wrong kernel. I would check into upgrading your kernel to the right one for your P4.

You might also want to look over some of the wikis on Linux Servers from this page:

http://www.eqemulator.net/wiki/wikka...CategoryServer
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #5  
Old 07-03-2008, 02:37 AM
erde
Sarnak
 
Join Date: Sep 2006
Location: Germany
Posts: 82
Default

Remove the "-Di386" directive from the makefile and it should compile fine.
__________________
"Yes, the artwork is awful. I am an engineer, not an artist " - David H. Eberly
Reply With Quote
  #6  
Old 07-03-2008, 09:53 AM
qwicfingers
Fire Beetle
 
Join Date: Jul 2008
Location: Boston
Posts: 16
Default

cool thanks, I'll give that a try.
Reply With Quote
  #7  
Old 07-03-2008, 10:39 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

I noticed the newer the version distro I have, harder it gets to make a working EqEmu compile - I have one machine that compiles the emulator fine. it's Mandriva and has been updated for a few years now - it still uses gcc-3.4.6 and I 'think' this is why it still compiles. I have a machine with a new Mandriva (2008.1) which carrys gcc ver 4.2.3, and I've seen this error you have and a few others (using the same source). It became a challenge (for a while), and I actually got everything to compile void world and the 'clobbered' error. I did a lot of Googling on this error and it usually pointed to the new gcc version. I tried installing the 3.4.6 on my newer machine but then got other errors, really wasn't that important to me (since I already can compile on the older -version machine), so I gave it up.
If you want to try my version ( gcc-3.4.6.tar.gz ), I can post it for you- It's source, and will compile just about anywhere (unlike EqEmu).
Reply With Quote
  #8  
Old 07-03-2008, 11:21 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by Angelox View Post
I noticed the newer the version distro I have, harder it gets to make a working EqEmu compile - I have one machine that compiles the emulator fine. it's Mandriva and has been updated for a few years now - it still uses gcc-3.4.6 and I 'think' this is why it still compiles. I have a machine with a new Mandriva (2008.1) which carrys gcc ver 4.2.3, and I've seen this error you have and a few others (using the same source). It became a challenge (for a while), and I actually got everything to compile void world and the 'clobbered' error. I did a lot of Googling on this error and it usually pointed to the new gcc version. I tried installing the 3.4.6 on my newer machine but then got other errors, really wasn't that important to me (since I already can compile on the older -version machine), so I gave it up.
If you want to try my version ( gcc-3.4.6.tar.gz ), I can post it for you- It's source, and will compile just about anywhere (unlike EqEmu).
Hmmm. I'm using Fedora Core 8 with gcc 4.1.2 and I compiled the emu without any problems, including the bot code. So I don't think it's 4.1, but it might be 4.2 that's causing some issues. I'm not planning to go to FC9 anytime soon, so hopefully mine will continue to work.
Reply With Quote
  #9  
Old 07-03-2008, 03:17 PM
qwicfingers
Fire Beetle
 
Join Date: Jul 2008
Location: Boston
Posts: 16
Default

Gave removing -Di386 a go and I get the same error. Tried gcc3.4.6 compile fails much earlier at EMuShareMem with a different error. Everything other then the world compiles fine with 4.2

What about the -march=i686 flag? I know the ubuntu kernel version is i386.
Reply With Quote
  #10  
Old 07-03-2008, 04:52 PM
erde
Sarnak
 
Join Date: Sep 2006
Location: Germany
Posts: 82
Default

Quote:
Originally Posted by qwicfingers View Post
Gave removing -Di386 a go and I get the same error. Tried gcc3.4.6 compile fails much earlier at EMuShareMem with a different error. Everything other then the world compiles fine with 4.2

What about the -march=i686 flag? I know the ubuntu kernel version is i386.
I am on a 64bit platform and use a i386 chroot environment to compile and use eqemu.
to compile the i have to add #undef i386 in crc32.cpp

Code:
#include "crc32.h"
#include <assert.h>
#include <memory.h>
#undef i386
int32 CRC32Table[256] =
{
...
__________________
"Yes, the artwork is awful. I am an engineer, not an artist " - David H. Eberly
Reply With Quote
  #11  
Old 07-03-2008, 05:42 PM
qwicfingers
Fire Beetle
 
Join Date: Jul 2008
Location: Boston
Posts: 16
Default

adding #undef i386 to my crc32.cpp worked. Thank you.
Reply With Quote
  #12  
Old 07-09-2008, 12:53 AM
opyrus
Hill Giant
 
Join Date: Apr 2008
Location: in doors
Posts: 138
Default

Quote:
Originally Posted by qwicfingers View Post
adding #undef i386 to my crc32.cpp worked. Thank you.
this also worked for me.
Reply With Quote
Reply


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 08:12 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