On Wed, Mar 23, 2011 at 08:51:08PM +0100, Igor Stasenko wrote:
On 23 March 2011 20:47, Frank Shearar frank.shearar@angband.za.org wrote:
Yes, I think. Well, I just blindly followed your instructions on a 64 bit machine :)
JIT won't run on 64 bits. But you can try building StackVM
You should be able to build the 32-bit JIT on a 64-bit machine. On Linux I was able to do it with Eliot's build as follows:
../platforms/unix/config/configure CC="gcc -m32" CFLAGS="-g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0" LDFLAGS="-m32" LIBS=-lpthread
The problem (on Linux at least) was just that libtool insists on linking to 64-bit libraries regardless of what you do with CFLAGS and LDFLAGS, so you have to trick it into submission with the CC="gcc -m32" hack.
It was not me that figured this out, but I can't recall who gets the credit.
The libtool issues go away with Ian's CMake build, and that may be the case with the new CMake build procedures also. In any case it certainly is possible to build and run Cog on 64-bit machines.
HTH, Dave