Scorpio 2.4 & MacOsX
Posted:
12 Jan 2010, 04:57
by nepossiver
hi,
I am trying to compile Scorpio 2.4 on a macbook pro with snow leopard and I get the following error:
g++ -Wall -pedantic -O3 -c attack.cpp
In file included from scorpio.h:730,
from attack.cpp:1:
/usr/lib/gcc/i686-apple-darwin10/4.2.1/include/nmmintrin.h:35:3: error: #error "SSE4.2 instruction set not enabled"
make: *** [attack.o] Error 1
Scorpio 1.91 compiles fine, and 2.3 compiles after changing a couple of "static const enum" to just enum. My skills are google-based, and for this one google let me down.
thanks,
Re: Scorpio 2.4 & MacOsX
Posted:
12 Jan 2010, 05:29
by nepossiver
ok, I think I got it, adding -msse4 to the compiler flags.
Re: Scorpio 2.4 & MacOsX
Posted:
12 Jan 2010, 07:51
by Volker Pittlik
nepossiver wrote:ok, I think I got it, adding -msse4 to the compiler flags.
That does not help here for Linux. Still the nmmintrin.h is missing.
vp
Re: Scorpio 2.4 & MacOsX
Posted:
12 Jan 2010, 18:30
by Daniel Shawul
Comment out #define HAS_POPCNT in scorpio.h.
It will default to the software implementaion of popcnt in that case.
regards
Daniel
Re: Scorpio 2.4 & MacOsX
Posted:
13 Jan 2010, 17:18
by nepossiver
Volker Pittlik wrote:nepossiver wrote:ok, I think I got it, adding -msse4 to the compiler flags.
That does not help here for Linux. Still the nmmintrin.h is missing.
vp
humm, it compiled here on my Ubuntu 9.10, but then it crashed when it had to move - I guess because my cpu is old (Pentium M) and doesn't have SSE4 instructions. What version of gcc did you use? Commenting out #define HAS_POPCNT gives me a working exe, though.
Re: Scorpio 2.4 & MacOsX
Posted:
13 Jan 2010, 20:32
by Volker Pittlik
nepossiver wrote:Volker Pittlik wrote:nepossiver wrote:ok, I think I got it, adding -msse4 to the compiler flags.
That does not help here for Linux. Still the nmmintrin.h is missing.
vp
humm, it compiled here on my Ubuntu 9.10, but then it crashed when it had to move - I guess because my cpu is old (Pentium M) and doesn't have SSE4 instructions. What version of gcc did you use? Commenting out #define HAS_POPCNT gives me a working exe, though.
I use gcc 4.2.4. Unfortunately commenting HAS_POPCNT out only leads to other errors.
Unfortunately I don't have so much time for bug hunting these days.
vp