lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Thanks, using -m32 worked. I don't know if there is a better way to do it, but I made two changes in the Makefiles First I added macosx10.6 as a platform (to Makefile and src/Makefile), then I added to src/Makefile:


and changed line 90 in src/Makefile to:
	$(CC) $(MYCFLAGS) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
	$(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)

I guess the bad part is the last compilation bit has -DLUA_USE_LINUX being passed to it that may break things on other platforms? Seems to work OK for me though.

On Oct 15, 2009, at 2:05 PM, Geoff Leyland wrote:

Hi all,

I get an architecture not supported error when trying to compile LuaJIT (dynasm) now that I have upgraded to Mac OS X 10.6. The LuaJIT binary I compiled before upgrading still works, but I'd like to stay up-to-date. Any idea how I go about fixing this? I'm guessing it might be as simple as changing some #defines or something like that. Thanks!

Have you tried adding either -m32 or -m64 to the compiler command line? I got a similar problem, and I think it was because I was building a 64 bit module and trying to link it to a 32 bit lua (a lua that I still had from before the upgrade to SL).

I suspect that if you rebuild everything, you'll end up with all 64 bit and you'll be ok, but Thomas has just pointed out that LuaJIT is 32 bit only, so perhaps you want to keep everything 32 bit.