lua-users home
lua-l archive

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


I recently installed a "non apple" gcc 4.6 from [1], and, when I use that compiler to build LuaJIT, I get a LuaJIT that panics on wrong code.  If I build with with the system's original gcc (4.2.1) LuaJIT works as expected.

I'm happy to believe this is a user error, and building with 4.2 is a perfectly acceptable workaround, but I thought it might be worth mentioning.

$ uname -v
Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386

$ gcc -v
Using built-in specs.
Target: x86_64-apple-darwin10.7.0
Configured with: ../gcc-4.6.0/configure --enable-languages=fortran,c++
Thread model: posix
gcc version 4.6.0 (GCC) 

$ luajit
LuaJIT 2.0.0-beta8 -- Copyright (C) 2005-2011 Mike Pall.
JIT: ON CMOV SSE2 SSE3 SSE4.1 fold cse dce fwd dse narrow loop abc fuse
> if true print("hello") end
PANIC: unprotected error in call to Lua API (stdin:1: 'then' expected near 'print')