lua-users home
lua-l archive

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


On Nov 2, 2009, at 3:05 PM, Mike Pall wrote:

YangFan wrote:
Hi, Mike Pall

LuaJIT 2.0 requires iuplua failed with the error messages shown below:

-- LuaJIT 2.0.0-beta1 -- Copyright (C) 2005-2009 Mike Pall. http://luajit.org/
-- JIT: ON CMOV SSE2 fold cse dce fwd dse narrow loop fuse
-- > require "iuplua"
-- attempt to call a nil value
-- stack traceback:
--         [C]: ?
--         [C]: in function 'require'
--         stdin:1: in main chunk
--         [C]: ?

The IUP binaries (esp. imlua51.dll) apparently include hardcoded,
bytecode-compiled Lua files. And they do not properly check for
returned errors from luaL_loadbuffer().

So what happens is that (obviously) loading the bytecode fails
(it's incompatible), the errors get ignored and the initialization
of the library fails with the above message.

Solution: file a bug against IUP.

To what extent did you change the instruction set v to what extent did you change the encoding of the instruction set? (I'm thinking about whether a bytecode translator is even reasonable to consider.)

Mark