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 |
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.
|
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 |
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 |
Remove the "-Di386" directive from the makefile and it should compile fine.
|
cool thanks, I'll give that a try.
|
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). |
Quote:
|
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. |
Quote:
to compile the i have to add #undef i386 in crc32.cpp Code:
#include "crc32.h" |
adding #undef i386 to my crc32.cpp worked. Thank you.
|
Quote:
|
All times are GMT -4. The time now is 12:06 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.